X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Futils%2Flustreapi_internal.h;h=3b94298fa7818566c9c9e469e78ee4c2cd8f6552;hb=refs%2Fchanges%2F46%2F25246%2F12;hp=5e05c9c2fbaa5fbaec39246babac9e083c536f82;hpb=d10200a80770f0029d1d665af954187b9ad883df;p=fs%2Flustre-release.git diff --git a/lustre/utils/lustreapi_internal.h b/lustre/utils/lustreapi_internal.h index 5e05c9c..3b94298 100644 --- a/lustre/utils/lustreapi_internal.h +++ b/lustre/utils/lustreapi_internal.h @@ -36,8 +36,16 @@ #ifndef _LUSTREAPI_INTERNAL_H_ #define _LUSTREAPI_INTERNAL_H_ +#include +#include + +#include #include -#include + +#include +#include + +#define MAX_IOC_BUFLEN 8192 #define WANT_PATH 0x1 #define WANT_FSNAME 0x2 @@ -53,6 +61,11 @@ int get_root_path(int want, char *fsname, int *outfd, char *path, int index); int root_ioctl(const char *mdtname, int opc, void *data, int *mdtidxp, int want_error); +int obd_ioctl_pack(struct obd_ioctl_data *data, char **pbuf, int max_len); +int obd_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, + unsigned int *ssize, unsigned int *soffset); /** * Often when determining the parameter path in sysfs/procfs we