linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mke2fs: enable bigalloc if -C is specified
@ 2012-05-31 16:52 Eric Sandeen
  2012-05-31 20:44 ` Eric Sandeen
  0 siblings, 1 reply; 2+ messages in thread
From: Eric Sandeen @ 2012-05-31 16:52 UTC (permalink / raw)
  To: ext4 development

If -C is specified w/o -O bigalloc it has no effect and generates
no error.  If a cluster size is specified, that should imply
bigalloc.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
---

diff --git a/misc/mke2fs.c b/misc/mke2fs.c
index 7ec8cc2..d1944dc 100644
--- a/misc/mke2fs.c
+++ b/misc/mke2fs.c
@@ -1351,6 +1351,8 @@ profile_error:
 					optarg);
 				exit(1);
 			}
+			fs_param.s_feature_ro_compat |=
+					EXT4_FEATURE_RO_COMPAT_BIGALLOC;
 			break;
 		case 'D':
 			direct_io = 1;



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-05-31 20:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-31 16:52 [PATCH] mke2fs: enable bigalloc if -C is specified Eric Sandeen
2012-05-31 20:44 ` Eric Sandeen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).