Lines Matching defs:bootblock

58  * BIOS bootblock installation:
182 /* loader bootblock has version built in */
186 BOOT_DEBUG("bootblock in-memory buffer size is %d\n",
214 BOOT_DEBUG("bootblock file size is %d\n", bblock->file_size);
260 BOOT_DEBUG("Error reading bootblock area\n");
265 /* No multiboot means no chance of knowing bootblock size */
292 " the extra bootblock from the disk\n");
299 BOOT_DEBUG("Error reading the bootblock\n");
326 ib_bootblock_t *bblock_file = &data->bootblock;
337 BOOT_DEBUG("Unable to read bootblock from %s\n", path);
350 * loader bootblock is versioned. missing version means
355 gettext("ERROR: non versioned bootblock in file\n"));
367 "versioned bootblock that is going to be overwritten by a "
373 BOOT_DEBUG("Forcing update of %s bootblock\n", device->path);
399 /* Fill bootblock hashing source information. */
410 * set up location and size of bootblock
432 (uint16_t)(data->bootblock.buf_size / SECTOR_SIZE);
466 bblock = &data->bootblock;
473 * the loader bootblock has built in version, if custom
486 ib_bootblock_t *bblock = &data->bootblock;
495 * ZFS bootblock area is 3.5MB, make sure we can fit.
499 (void) fprintf(stderr, gettext("bootblock is too large\n"));
522 BOOT_DEBUG("Error writing the ZFS bootblock "
527 (void) fprintf(stdout, gettext("bootblock written for %s,"
987 device->stage.fd = -1; /* bootblock partition fd */
1165 * Propagate the bootblock on the source disk to the destination disk and
1173 ib_bootblock_t *src_bblock = &src->bootblock;
1174 ib_bootblock_t *dest_bblock = &dest->bootblock;
1206 (void) fprintf(stdout, gettext("Propagating %s bootblock to %s\n"),
1218 (void) fprintf(stderr, gettext("Error updating the bootblock "
1230 (void) fprintf(stderr, gettext("Error writing bootblock to "
1239 * Install a new bootblock on the given device. handle_install() expects argv
1241 * bootblock.
1254 ib_bootblock_t *bblock = &install_data.bootblock;
1256 char *bootblock = NULL;
1261 bootblock = strdup(argv[1]);
1264 if (!device_path || !bootblock || !stage1) {
1270 BOOT_DEBUG("device path: %s, stage1 path: %s bootblock path: %s\n",
1271 device_path, stage1, bootblock);
1285 if (read_bootblock_from_file(bootblock, bblock) != BC_SUCCESS) {
1287 bootblock);
1294 * if a non-versioned update is attempted over a versioned bootblock.
1297 (void) fprintf(stderr, gettext("bootblock version installed "
1312 free(bootblock);
1368 (void) fprintf(stderr, gettext("Error reading bootblock from "
1376 "bootblock?) \n", device_path);
1409 * Attempt to mirror (propagate) the current bootblock over the attaching disk.
1414 * - BC_NOEXTRA (it is not possible to dump the current bootblock since
1424 ib_bootblock_t *bblock_curr = &curr_data.bootblock;
1425 ib_bootblock_t *bblock_attach = &attach_data.bootblock;
1464 BOOT_DEBUG("Error reading bootblock from %s\n", path);
1471 " the bootblock\n", path);