Skip to contentSkip to conversation

Allow tune2fs -I if only one group per flex

PATCH-e2fsprogs Peng Tao 2 participants 2 messages Mar 2, 2009

lore
Share & tools
lore

Peng Tao

author
#0 lore raw

This can be caused by tune2fs -O flex_bg. And tune2fs -I should work okay for such partitions.

---
 misc/tune2fs.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
misc/tune2fs.c +2 -1
index 887a702..ee982e5 100644
@@ -1715,7 +1715,8 @@ retry_open:
 			exit(1);
 		}
 		if (fs->super->s_feature_incompat &
-		    EXT4_FEATURE_INCOMPAT_FLEX_BG) {
+		    EXT4_FEATURE_INCOMPAT_FLEX_BG &&
+		    fs->super->s_log_groups_per_flex) {
 			fputs(_("Changing the inode size not supported for "
 				"filesystems with the flex_bg\n"
 				"feature enabled.\n"),
Signature · 1 line
1.6.1.3
#1 lore raw
Quoted 2 lines · Peng Tao

This can be caused by tune2fs -O flex_bg. And tune2fs -I should work okay for such partitions.

It will *probably* work, but again, it would be better to check to make sure it really was caused by an accidental "tune2fs -O flex_bg".

- Ted