Whamcloud - gitweb
LU-7718 utils: lfs getstripe does not work on bind mount
[fs/lustre-release.git] / lustre / utils / liblustreapi.c
index 15ad55b..1ee277e 100644 (file)
@@ -855,11 +855,11 @@ int get_root_path(int want, char *fsname, int *outfd, char *path, int index)
         int rc = -ENODEV;
 
         /* get the mount point */
-        fp = setmntent(MOUNTED, "r");
+        fp = setmntent(PROC_MOUNTS, "r");
         if (fp == NULL) {
                 rc = -EIO;
                 llapi_error(LLAPI_MSG_ERROR, rc,
-                            "setmntent(%s) failed", MOUNTED);
+                            "setmntent(%s) failed", PROC_MOUNTS);
                 return rc;
         }
         while (1) {