Whamcloud - gitweb
git://git.whamcloud.com
/
tools
/
e2fsprogs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
515268b
)
mke2fs: disable orphan_file if the fs is too small to support a journal
author
Theodore Ts'o
<tytso@mit.edu>
Thu, 1 Sep 2022 19:15:33 +0000
(15:15 -0400)
committer
Theodore 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
patch
|
blob
|
history
diff --git
a/misc/mke2fs.c
b/misc/mke2fs.c
index
76b8b8c
..
c111393
100644
(file)
--- a/
misc/mke2fs.c
+++ b/
misc/mke2fs.c
@@
-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) {