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:
685d544
)
If the filesystem supports extents create an extent-based journal inode
author
Theodore Ts'o
<tytso@mit.edu>
Wed, 27 Aug 2008 19:50:44 +0000
(15:50 -0400)
committer
Theodore Ts'o
<tytso@mit.edu>
Wed, 27 Aug 2008 21:47:39 +0000
(17:47 -0400)
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
lib/ext2fs/mkjournal.c
patch
|
blob
|
history
diff --git
a/lib/ext2fs/mkjournal.c
b/lib/ext2fs/mkjournal.c
index
cd3df07
..
c112be9
100644
(file)
--- a/
lib/ext2fs/mkjournal.c
+++ b/
lib/ext2fs/mkjournal.c
@@
-298,6
+298,12
@@
static errcode_t write_journal_inode(ext2_filsys fs, ext2_ino_t journal_ino,
es.err = 0;
es.zero_count = 0;
+ if (fs->super->s_feature_incompat & EXT3_FEATURE_INCOMPAT_EXTENTS) {
+ inode.i_flags |= EXT4_EXTENTS_FL;
+ if ((retval = ext2fs_write_inode(fs, journal_ino, &inode)))
+ return retval;
+ }
+
/*
* Set the initial goal block to be roughly at the middle of
* the filesystem. Pick a group that has the largest number