2001-04-16 Theodore Tso <tytso@valinux.com>
+ * util.c (parse_journal_opts): Remove code which allowed a bare
+ number to be treated as a journal size.
+
* mke2fs.c, tune2fs.c: Add newlines to error messages so that they
look nicer.
+ * mke2fs.c (create_journal_dev): Call
+ ext2fs_create_journal_superblock() first, so if it's going
+ to error out, the user finds out before waiting for the
+ entire device to get zero'ed.
+
2001-03-26 Theodore Tso <tytso@valinux.com>
* mke2fs.8.in, tune2fs.8.in: Change man paegs to document that the
blk_t blk;
int count;
+ retval = ext2fs_create_journal_superblock(fs,
+ fs->super->s_blocks_count, 0, &buf);
+ if (retval) {
+ com_err("create_journal_dev", retval,
+ _("while initializing journal superblock"));
+ exit(1);
+ }
if (quiet)
memset(&progress, 0, sizeof(progress));
else
}
zero_blocks(0, 0, 0, 0, 0, 0);
- retval = ext2fs_create_journal_superblock(fs,
- fs->super->s_blocks_count, 0, &buf);
- if (retval) {
- com_err("create_journal_dev", retval,
- _("while initialization journal superblock"));
- exit(1);
- }
retval = io_channel_write_blk(fs->io,
fs->super->s_first_data_block+1,
1, buf);
} else if (strcmp(token, "v1_superblock") == 0) {
journal_flags |= EXT2_MKJOURNAL_V1_SUPER;
continue;
- } else {
- journal_size = strtoul(token, &p, 0);
- if (*p)
- journal_usage++;
- }
+ } else
+ journal_usage++;
}
if (journal_usage) {
fprintf(stderr, _("\nBad journal options specified.\n\n"