Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/makefs/cd9660.c
Show First 20 Lines • Show All 2,115 Lines • ▼ Show 20 Lines | err(EXIT_FAILURE, "%s: lstat(\"%s\")", __func__, | ||||
diskStructure->generic_bootimage); | diskStructure->generic_bootimage); | ||||
if (stbuf.st_size > 32768) { | if (stbuf.st_size > 32768) { | ||||
warnx("Error: Boot image must be no greater than 32768 bytes"); | warnx("Error: Boot image must be no greater than 32768 bytes"); | ||||
return 0; | return 0; | ||||
} | } | ||||
if (diskStructure->verbose_level > 0) { | if (diskStructure->verbose_level > 0) { | ||||
printf("Generic boot image image has size %lld\n", | printf("Generic boot image has size %lld\n", | ||||
(long long)stbuf.st_size); | (long long)stbuf.st_size); | ||||
} | } | ||||
diskStructure->has_generic_bootimage = 1; | diskStructure->has_generic_bootimage = 1; | ||||
return 1; | return 1; | ||||
} | } |