Lines Matching defs:bootblock

48  * SPARC bootblock installation:
50 * The bootblock resides in blocks 1 to 15 (disk label is at block 0).
54 * header at the end of the bootblock, followed by the extra payload area and
91 ib_bootblock_t *bblock = &data->bootblock;
114 BOOT_DEBUG("bootblock file size is %x\n", bblock->file_size);
127 (void) fprintf(stderr, gettext("WARNING, bootblock size"
135 BOOT_DEBUG("bootblock in-memory buffer size is %x\n",
153 BOOT_DEBUG("Reading of the bootblock done\n");
192 * The ZFS bootblock is divided in two parts, but the fake multiboot
203 /* No multiboot means no chance of knowing bootblock size */
223 " the extra bootblock from the disk\n");
233 BOOT_DEBUG("Error reading first %d bytes of the bootblock\n",
267 ib_bootblock_t *bblock_file = &data->bootblock;
274 /* Nothing to do if we are not updating a ZFS bootblock. */
281 BOOT_DEBUG("Unable to read bootblock from %s\n", device->path);
293 "versioned bootblock that is going to be overwritten by a "
299 BOOT_DEBUG("Forcing update of %s bootblock\n", device->path);
325 /* Fill bootblock hashing source information. */
339 ib_bootblock_t *bblock = &data->bootblock;
365 * the size of the bootblock.
387 ib_bootblock_t *bblock = &data->bootblock;
396 * - write the first 15 blocks of the bootblock to the reserved disk
416 BOOT_DEBUG("Error writing the second part of ZFS bootblock "
427 ib_bootblock_t *bblock = &data->bootblock;
439 BOOT_DEBUG("Error writing bootblock to %s\n",
516 * Propagate the bootblock on the source disk to the destination disk and
524 ib_bootblock_t *src_bblock = &src->bootblock;
525 ib_bootblock_t *dest_bblock = &dest->bootblock;
557 (void) fprintf(stdout, gettext("Propagating %s bootblock to %s\n"),
569 (void) fprintf(stderr, gettext("Error updating the bootblock "
575 (void) fprintf(stderr, gettext("Error writing bootblock to "
585 * Install a new bootblock on the given device. handle_install() expects argv
587 * bootblock.
600 char *bootblock = NULL;
604 bootblock = strdup(argv[0]);
607 if (!device_path || !bootblock) {
613 BOOT_DEBUG("device path: %s, bootblock file path: %s\n", device_path,
614 bootblock);
623 if (read_bootblock_from_file(bootblock, &install_data) != BC_SUCCESS) {
625 bootblock);
628 /* Versioning is only supported for the ZFS bootblock. */
638 * if a non-versioned update is attempted over a versioned bootblock.
641 (void) fprintf(stderr, gettext("bootblock version installed "
655 free(bootblock);
662 * installed bootblock.
674 ib_bootblock_t *bblock = &data.bootblock;
707 (void) fprintf(stderr, gettext("Error reading bootblock from "
715 "bootblock?) \n", device_path);
750 * Attempt to mirror (propagate) the current bootblock over the attaching disk.
755 * - BC_NOEXTRA (it is not possible to dump the current bootblock since
765 ib_bootblock_t *bblock_curr = &curr_data.bootblock;
766 ib_bootblock_t *bblock_attach = &attach_data.bootblock;
810 BOOT_DEBUG("Error reading bootblock from %s\n",
818 " the bootblock\n", curr_device->path);