#include <stdint.h>
#include <lustre/lustre_user.h>
-#define ARRAY_SIZE(a) ((sizeof(a)) / (sizeof((a)[0])))
-
extern bool liblustreapi_initialized;
/* 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 */
#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 ********************/