]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
mke2fs: disable orphan_file if the fs is too small to support a journal
authorTheodore Ts'o <tytso@mit.edu>
Thu, 1 Sep 2022 19:15:33 +0000 (15:15 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 1 Sep 2022 19:44:31 +0000 (15:44 -0400)
Otherwise, e2fsck will complain that resulting file system has the
orphan_file feature set without the journal being enabled.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/mke2fs.c

index 76b8b8c6f199bc3dea24a9607e5bab4507aca48e..c111393aa6e73c7741b6de8999c1667cb958be1c 100644 (file)
@@ -3478,6 +3478,9 @@ int main (int argc, char *argv[])
 
                if (!jparams.num_journal_blocks) {
                        ext2fs_clear_feature_journal(fs->super);
+                       ext2fs_clear_feature_orphan_file(fs->super);
+                       ext2fs_clear_feature_journal(&fs_param);
+                       ext2fs_clear_feature_orphan_file(&fs_param);
                        goto no_journal;
                }
                if (!quiet) {