From a620baddee647faf42c49ee2e04ee3f667149d68 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Tue, 31 Mar 2009 07:42:24 -0400 Subject: [PATCH] mke2fs: Don't try to create the journal in super-only mode Since we aren't initializing the inode table, creating the journal will just fail. Signed-off-by: "Theodore Ts'o" --- misc/mke2fs.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/misc/mke2fs.c b/misc/mke2fs.c index e69e5ce..4f50ffa 100644 --- a/misc/mke2fs.c +++ b/misc/mke2fs.c @@ -2079,6 +2079,12 @@ int main (int argc, char *argv[]) EXT3_FEATURE_COMPAT_HAS_JOURNAL)) { journal_blocks = figure_journal_size(journal_size, fs); + if (super_only) { + printf(_("Skipping journal creation in super-only mode\n")); + fs->super->s_journal_inum = EXT2_JOURNAL_INO; + goto no_journal; + } + if (!journal_blocks) { fs->super->s_feature_compat &= ~EXT3_FEATURE_COMPAT_HAS_JOURNAL; -- 1.8.3.1