From: Andreas Dilger Date: Tue, 28 Feb 2017 19:02:31 +0000 (-0700) Subject: LU-9161 utils: don't load bitmaps when checking features X-Git-Tag: 2.9.55~66 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=153c25f280d3db722005619ea0db6fbd3d26bc97 LU-9161 utils: don't load bitmaps when checking features Change is_feature_enabled() to avoid loading the bitmaps from disk when checking the filesystem features. Test-Parameters: trivial Signed-off-by: Andreas Dilger Change-Id: I7017e3ffce4ce745b1746229a5c219886c479bf9 Reviewed-on: https://review.whamcloud.com/25671 Tested-by: Jenkins Reviewed-by: Artem Blagodarenko Tested-by: Maloo Reviewed-by: Yang Sheng Reviewed-by: John L. Hammond Reviewed-by: Oleg Drokin --- diff --git a/lustre/utils/mount_utils_ldiskfs.c b/lustre/utils/mount_utils_ldiskfs.c index 6e566ba..d93a483 100644 --- a/lustre/utils/mount_utils_ldiskfs.c +++ b/lustre/utils/mount_utils_ldiskfs.c @@ -215,7 +215,7 @@ static int is_feature_enabled(const char *feature, const char *devpath) char enabled_features[4096] = ""; int ret = 1; - snprintf(cmd, sizeof(cmd), "%s -R features %s 2>&1", + snprintf(cmd, sizeof(cmd), "%s -c -R features %s 2>&1", DEBUGFS, devpath); /* Using popen() instead of run_command() since debugfs does