Whamcloud - gitweb
LU-4931 ladvise: Add willread advice support for ladvise
[fs/lustre-release.git] / lustre / include / lustre / lustreapi.h
index 3f0cf97..a1cc6e5 100644 (file)
@@ -46,8 +46,6 @@
 #include <stdint.h>
 #include <lustre/lustre_user.h>
 
-#define ARRAY_SIZE(a) ((sizeof(a)) / (sizeof((a)[0])))
-
 extern bool liblustreapi_initialized;
 
 
@@ -410,7 +408,7 @@ int llapi_group_unlock(int fd, int gid);
 
 /* Ladvise */
 int llapi_ladvise(int fd, unsigned long long flags, int num_advise,
-                 struct lu_ladvise *ladvise);
+                 struct llapi_lu_ladvise *ladvise);
 /** @} llapi */
 
 /* llapi_layout user interface */
@@ -491,6 +489,16 @@ void llapi_layout_free(struct llapi_layout *layout);
 #define LLAPI_LAYOUT_RAID0     0
 
 /**
+* The layout includes a specific set of OSTs on which to allocate.
+*/
+#define LLAPI_LAYOUT_SPECIFIC  0x2000000000000000ULL
+
+/**
+ * A valid ost index should be less than maximum valid OST index (UINT_MAX).
+ */
+#define LLAPI_LAYOUT_IDX_MAX   0x00000000FFFFFFFFULL
+
+/**
  * Flags to modify how layouts are retrieved.
  */
 /******************** Stripe Count ********************/