Whamcloud - gitweb
LU-10026 csdc: DoM pattern could be a combined value
[fs/lustre-release.git] / lustre / utils / lustreapi_internal.h
index 502fb8b..38ce395 100644 (file)
@@ -44,6 +44,8 @@
 #include <linux/lustre/lustre_kernelcomm.h>
 
 #define MAX_IOC_BUFLEN 8192
+#define MAX_LINE_LEN    256
+#define MAX_INSTANCE_LEN  32
 
 #define WANT_PATH   0x1
 #define WANT_FSNAME 0x2
@@ -66,6 +68,7 @@
 int get_root_path(int want, char *fsname, int *outfd, char *path, int index,
                  dev_t *dev, char *nid);
 int llapi_ioctl_pack(struct obd_ioctl_data *data, char **pbuf, int max_len);
+int llapi_ioctl_dev(int dev_id, unsigned int cmd, void *buf);
 int llapi_ioctl_unpack(struct obd_ioctl_data *data, char *pbuf, int max_len);
 int sattr_cache_get_defaults(const char *const fsname,
                             const char *const pathname, unsigned int *scount,
@@ -182,6 +185,15 @@ int libcfs_ukuc_get_rfd(struct lustre_kernelcomm *link);
 int libcfs_ukuc_msg_get(struct lustre_kernelcomm *l, char *buf, int maxsize,
                        int transport);
 
+enum lctl_param_flags {
+       PARAM_FLAGS_YAML_FORMAT         = 0x0001,
+       PARAM_FLAGS_SHOW_SOURCE         = 0x0002,
+       PARAM_FLAGS_EXTRA_DETAILS       = 0x0004,
+};
+
+int llapi_param_display_value(char *path, int version,
+                             enum lctl_param_flags flags, FILE *fp);
+
 enum get_lmd_info_type {
        GET_LMD_INFO = 1,
        GET_LMD_STRIPE = 2,