Whamcloud - gitweb
LU-15833 llapi: don't use realpath in llapi_search_fsname()
[fs/lustre-release.git] / lustre / utils / lustreapi_internal.h
index 7284ea9..41b7087 100644 (file)
@@ -50,6 +50,7 @@
 #define WANT_FD     0x4
 #define WANT_INDEX  0x8
 #define WANT_ERROR  0x10
+#define WANT_DEV    0x20
 
 /* Define a fixed 4096-byte encryption unit size */
 #define LUSTRE_ENCRYPTION_BLOCKBITS   12
@@ -61,7 +62,8 @@
 #define PROC_MOUNTS "/proc/mounts"
 #endif
 
-int get_root_path(int want, char *fsname, int *outfd, char *path, int index);
+int get_root_path(int want, char *fsname, int *outfd, char *path, int index,
+                 dev_t *dev);
 int llapi_ioctl_pack(struct obd_ioctl_data *data, char **pbuf, int max_len);
 int llapi_ioctl_unpack(struct obd_ioctl_data *data, char *pbuf, int max_len);
 int sattr_cache_get_defaults(const char *const fsname,