+2001-02-17 Theodore Tso <tytso@valinux.com>
+
+ * mke2fs.c (main): Flush out the "creating journal" message.
+ Also handle the case where the default journal size
+ returns zero blocks == no journal. Print out how often
+ the filesystem will be checked.
+
2001-02-08 Theodore Tso <tytso@valinux.com>
* e2image.c (main): Add code to write the e2image header.
journal_device);
exit(1);
}
- if (!quiet)
+ if (!quiet) {
printf(_("Creating journal on device %s: "),
journal_device);
+ fflush(stdout);
+ }
retval = ext2fs_add_journal_device(fs, jfs);
if(retval) {
com_err (program_name, retval,
else
journal_blocks = journal_size * 1024 /
(fs->blocksize / 1024);
- if (!quiet)
+
+ if (!journal_blocks) {
+ fs->super->s_feature_compat &=
+ ~EXT3_FEATURE_COMPAT_HAS_JOURNAL;
+ goto no_journal;
+ }
+ if (!quiet) {
printf(_("Creating journal (%d blocks): "),
journal_blocks);
+ fflush(stdout);
+ }
retval = ext2fs_add_journal_inode(fs, journal_blocks,
journal_flags);
if (retval) {
if (!quiet)
printf(_("done\n"));
}
-
+no_journal:
+
if (!quiet)
printf(_("Writing superblocks and "
"filesystem accounting information: "));
if (retval) {
printf(_("\nWarning, had trouble writing out superblocks."));
}
- if (!quiet)
+ if (!quiet) {
printf(_("done\n"));
+ printf(_("e2fsck will be run every %d mounts or %4g days"),
+ fs->super->s_max_mnt_count,
+ (double)fs->super->s_checkinterval / (3600 * 24));
+ }
ext2fs_close(fs);
return 0;
}