Whamcloud - gitweb
LU-1366 utils: disable ldiskfs extents feature for MDT
authorBobi Jam <bobijam@whamcloud.com>
Tue, 15 May 2012 16:03:03 +0000 (00:03 +0800)
committerOleg Drokin <green@whamcloud.com>
Fri, 18 May 2012 17:21:26 +0000 (13:21 -0400)
Explicitly disable "extents" for MDT filesystem if it's based on ext4,
it provides no benifit for MDT.

Signed-off-by: Bobi Jam <bobijam@whamcloud.com>
Change-Id: I284c6c207fb8cc79537bebd60b6ab8d836fd4ed9
Reviewed-on: http://review.whamcloud.com/2798
Tested-by: Hudson
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/utils/mkfs_lustre.c

index b7c25cf..1fd219e 100644 (file)
@@ -569,6 +569,7 @@ static void enable_default_ext4_features(struct mkfs_opts *mop, char *anchor,
                 append_unique(anchor, user_spec ? "," : " -O ",
                               "dirdata", NULL, maxbuflen);
                 append_unique(anchor, ",", "uninit_bg", NULL, maxbuflen);
+               append_unique(anchor, ",", "^extents", NULL, maxbuflen);
         } else {
                 append_unique(anchor, user_spec ? "," : " -O ",
                               "uninit_bg", NULL, maxbuflen);