Patchwork [3/3] mke2fs, tune2fs: Adding support for the itree flag

login
register
mail settings
Submitter Radek Pazdera
Date May 4, 2013, 9:35 p.m.
Message ID <1367703310-3842-4-git-send-email-rpazdera@redhat.com>
Download mbox | patch
Permalink /patch/241492/
State Changes Requested
Headers show

Comments

Radek Pazdera - May 4, 2013, 9:35 p.m.
This commit enables the itree feature flag for the mke2fs and tune2fs.

Signed-off-by: Radek Pazdera <rpazdera@redhat.com>
---
 misc/mke2fs.c  | 3 ++-
 misc/tune2fs.c | 6 ++++--
 2 files changed, 6 insertions(+), 3 deletions(-)

Patch

diff --git a/misc/mke2fs.c b/misc/mke2fs.c
index bbf477a..4bc11b0 100644
--- a/misc/mke2fs.c
+++ b/misc/mke2fs.c
@@ -914,7 +914,8 @@  static __u32 ok_features[3] = {
 #ifdef CONFIG_QUOTA
 		EXT4_FEATURE_RO_COMPAT_QUOTA|
 #endif
-		EXT4_FEATURE_RO_COMPAT_METADATA_CSUM
+		EXT4_FEATURE_RO_COMPAT_METADATA_CSUM|
+		EXT4_FEATURE_RO_COMPAT_ITREE
 };
 
 
diff --git a/misc/tune2fs.c b/misc/tune2fs.c
index 66fbc54..b9173fc 100644
--- a/misc/tune2fs.c
+++ b/misc/tune2fs.c
@@ -148,7 +148,8 @@  static __u32 ok_features[3] = {
 #ifdef CONFIG_QUOTA
 		EXT4_FEATURE_RO_COMPAT_QUOTA |
 #endif
-		EXT4_FEATURE_RO_COMPAT_METADATA_CSUM
+		EXT4_FEATURE_RO_COMPAT_METADATA_CSUM|
+		EXT4_FEATURE_RO_COMPAT_ITREE
 };
 
 static __u32 clear_ok_features[3] = {
@@ -169,7 +170,8 @@  static __u32 clear_ok_features[3] = {
 #ifdef CONFIG_QUOTA
 		EXT4_FEATURE_RO_COMPAT_QUOTA |
 #endif
-		EXT4_FEATURE_RO_COMPAT_METADATA_CSUM
+		EXT4_FEATURE_RO_COMPAT_METADATA_CSUM|
+		EXT4_FEATURE_RO_COMPAT_ITREE
 };
 
 /*