Whamcloud - gitweb
LU-9161 utils: don't load bitmaps when checking features 71/25671/3
authorAndreas Dilger <andreas.dilger@intel.com>
Tue, 28 Feb 2017 19:02:31 +0000 (12:02 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 14 Mar 2017 02:59:23 +0000 (02:59 +0000)
Change is_feature_enabled() to avoid loading the bitmaps from disk
when checking the filesystem features.

Test-Parameters: trivial
Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Change-Id: I7017e3ffce4ce745b1746229a5c219886c479bf9
Reviewed-on: https://review.whamcloud.com/25671
Tested-by: Jenkins
Reviewed-by: Artem Blagodarenko <artem.blagodarenko@seagate.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Yang Sheng <yang.sheng@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/utils/mount_utils_ldiskfs.c

index 6e566ba..d93a483 100644 (file)
@@ -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