Whamcloud - gitweb
LU-9424 tools: v1/v3 as composite layout
[fs/lustre-release.git] / lustre / utils / lustreapi_internal.h
index deb77fc..ba2a847 100644 (file)
@@ -4,6 +4,8 @@
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * (C) Copyright 2012 Commissariat a l'energie atomique et aux energies
+ *
+ * Copyright (c) 2016, Intel Corporation.
  *     alternatives
  *
  * All rights reserved. This program and the accompanying materials
@@ -24,8 +26,7 @@
  *
  * lustre/utils/lustreapi_internal.h
  *
- */
-/*
+ * Copyright (c) 2016 Intel Corporation.
  *
  * Author: Aurelien Degremont <aurelien.degremont@cea.fr>
  * Author: JC Lafoucriere <jacques-charles.lafoucriere@cea.fr>
 #ifndef _LUSTREAPI_INTERNAL_H_
 #define _LUSTREAPI_INTERNAL_H_
 
+#include <limits.h>
+#include <stdint.h>
+
+#include <libcfs/util/ioctl.h>
 #include <libcfs/util/param.h>
+
+#include <linux/lustre_ioctl.h>
 #include <uapi_kernelcomm.h>
 
 #define WANT_PATH   0x1
 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
@@ -65,6 +77,7 @@ int root_ioctl(const char *mdtname, int opc, void *data, int *mdtidxp,
  *                   path as is.
  */
 enum param_filter {
+       FILTER_BY_NONE,
        FILTER_BY_EXACT,
        FILTER_BY_FS_NAME,
        FILTER_BY_PATH
@@ -127,5 +140,4 @@ int libcfs_ukuc_stop(struct lustre_kernelcomm *l);
 int libcfs_ukuc_get_rfd(struct lustre_kernelcomm *link);
 int libcfs_ukuc_msg_get(struct lustre_kernelcomm *l, char *buf, int maxsize,
                        int transport);
-
 #endif /* _LUSTREAPI_INTERNAL_H_ */