Lines Matching defs:bootblock

58  * BIOS bootblock installation:
161 ib_bootblock_t *bblock = &data->bootblock;
184 /* loader bootblock has version built in */
188 BOOT_DEBUG("bootblock in-memory buffer size is %d\n",
216 BOOT_DEBUG("bootblock file size is %d\n", bblock->file_size);
262 BOOT_DEBUG("Error reading bootblock area\n");
267 /* No multiboot means no chance of knowing bootblock size */
294 " the extra bootblock from the disk\n");
301 BOOT_DEBUG("Error reading the bootblock\n");
328 ib_bootblock_t *bblock_file = &data->bootblock;
339 BOOT_DEBUG("Unable to read bootblock from %s\n", path);
352 * loader bootblock is versioned. missing version means
357 gettext("ERROR: non versioned bootblock in file\n"));
369 "versioned bootblock that is going to be overwritten by a "
375 BOOT_DEBUG("Forcing update of %s bootblock\n", device->path);
401 /* Fill bootblock hashing source information. */
412 * set up location and size of bootblock
434 (uint16_t)(data->bootblock.buf_size / SECTOR_SIZE);
468 bblock = &data->bootblock;
475 * the loader bootblock has built in version, if custom
488 ib_bootblock_t *bblock = &data->bootblock;
497 * ZFS bootblock area is 3.5MB, make sure we can fit.
501 (void) fprintf(stderr, gettext("bootblock is too large\n"));
524 BOOT_DEBUG("Error writing the ZFS bootblock "
529 (void) fprintf(stdout, gettext("bootblock written for %s,"
957 device->stage.fd = -1; /* bootblock partition fd */
1135 * Propagate the bootblock on the source disk to the destination disk and
1143 ib_bootblock_t *src_bblock = &src->bootblock;
1144 ib_bootblock_t *dest_bblock = &dest->bootblock;
1176 (void) fprintf(stdout, gettext("Propagating %s bootblock to %s\n"),
1188 (void) fprintf(stderr, gettext("Error updating the bootblock "
1200 (void) fprintf(stderr, gettext("Error writing bootblock to "
1209 * Install a new bootblock on the given device. handle_install() expects argv
1211 * bootblock.
1225 char *bootblock = NULL;
1230 bootblock = strdup(argv[1]);
1233 if (!device_path || !bootblock || !stage1) {
1239 BOOT_DEBUG("device path: %s, stage1 path: %s bootblock path: %s\n",
1240 device_path, stage1, bootblock);
1254 if (read_bootblock_from_file(bootblock, &install_data) != BC_SUCCESS) {
1256 bootblock);
1263 * if a non-versioned update is attempted over a versioned bootblock.
1266 (void) fprintf(stderr, gettext("bootblock version installed "
1281 free(bootblock);
1300 ib_bootblock_t *bblock = &data.bootblock;
1326 (void) fprintf(stderr, gettext("Error reading bootblock from "
1334 "bootblock?) \n", device_path);
1366 * Attempt to mirror (propagate) the current bootblock over the attaching disk.
1371 * - BC_NOEXTRA (it is not possible to dump the current bootblock since
1381 ib_bootblock_t *bblock_curr = &curr_data.bootblock;
1382 ib_bootblock_t *bblock_attach = &attach_data.bootblock;
1421 BOOT_DEBUG("Error reading bootblock from %s\n", path);
1428 " the bootblock\n", path);