Lines Matching refs:mac_boot
29 gen_mac_label(defer *mac_boot)
44 if (mac_boot->name) {
45 if (stat(mac_boot->name, &stat_buf) < 0) {
47 "unable to stat HFS boot file %s", mac_boot->name);
52 if ((fp = fopen(mac_boot->name, "rb")) == NULL) {
54 "unable to open HFS boot file %s", mac_boot->name);
60 "unable to read HFS boot file %s", mac_boot->name);
70 mac_boot->name);
78 "unable to seek HFS boot file %s", mac_boot->name);
85 "unable to read HFS boot block %s", mac_boot->name);
94 "%s does not contain a valid boot block", mac_boot->name);
100 mac_boot->size = stat_buf.st_size - SECTOR_SIZE - 2*HFS_BLOCKSZ;
101 mac_boot->off = SECTOR_SIZE;
102 mac_boot->pad = 0;
105 mpm[mpc].size = ROUND_UP(mac_boot->size)/SECTOR_SIZE;
109 mpm[mpc].start = mac_boot->extent = last_extent;
132 fprintf(stderr, "Creating HFS Label %s %s\n", mac_boot->name ?
133 "with boot file" : "", mac_boot->name ? mac_boot->name : "" );