Changeset View
Changeset View
Standalone View
Standalone View
head/usr.sbin/makefs/msdos.c
Show First 20 Lines • Show All 197 Lines • ▼ Show 20 Lines | msdos_makefs(const char *image, const char *dir, fsnode *root, fsinfo_t *fsopts) | ||||
/* populate image */ | /* populate image */ | ||||
printf("Populating `%s'\n", image); | printf("Populating `%s'\n", image); | ||||
TIMER_START(start); | TIMER_START(start); | ||||
if (msdos_populate_dir(dir, VTODE(&rootvp), root, root, fsopts) == -1) | if (msdos_populate_dir(dir, VTODE(&rootvp), root, root, fsopts) == -1) | ||||
errx(1, "Image file `%s' not created.", image); | errx(1, "Image file `%s' not created.", image); | ||||
TIMER_RESULTS(start, "msdos_populate_dir"); | TIMER_RESULTS(start, "msdos_populate_dir"); | ||||
if (msdosfs_fsiflush(pmp) != 0) | |||||
errx(1, "Unable to update FSInfo block."); | |||||
if (debug & DEBUG_FS_MAKEFS) | if (debug & DEBUG_FS_MAKEFS) | ||||
putchar('\n'); | putchar('\n'); | ||||
/* ensure no outstanding buffers remain */ | /* ensure no outstanding buffers remain */ | ||||
if (debug & DEBUG_FS_MAKEFS) | if (debug & DEBUG_FS_MAKEFS) | ||||
bcleanup(); | bcleanup(); | ||||
printf("Image `%s' complete\n", image); | printf("Image `%s' complete\n", image); | ||||
▲ Show 20 Lines • Show All 58 Lines • Show Last 20 Lines |