#define OBD_FAIL_OST_READ_SIZE 0x234
#define OBD_FAIL_OST_LADVISE_NET 0x235
#define OBD_FAIL_OST_PAUSE_PUNCH 0x236
+#define OBD_FAIL_OST_LADVISE_PAUSE 0x237
#define OBD_FAIL_LDLM 0x300
#define OBD_FAIL_LDLM_NAMESPACE_NEW 0x301
#define OBD_FAIL_LLITE_LOST_LAYOUT 0x1407
#define OBD_FAIL_LLITE_NO_CHECK_DEAD 0x1408
#define OBD_FAIL_GETATTR_DELAY 0x1409
+#define OBD_FAIL_LLITE_CREATE_FILE_PAUSE 0x1409
+#define OBD_FAIL_LLITE_NEWNODE_PAUSE 0x140a
+#define OBD_FAIL_LLITE_SETDIRSTRIPE_PAUSE 0x140b
+
#define OBD_FAIL_FID_INDIR 0x1501
#define OBD_FAIL_FID_INLMA 0x1502
#define OBD_FAIL_DT_DECLARE_DELETE 0x2016
#define OBD_FAIL_DT_DELETE 0x2017
#define OBD_FAIL_DT_LOOKUP 0x2018
+#define OBD_FAIL_DT_TXN_STOP 0x2019
#define OBD_FAIL_OSP_CHECK_INVALID_REC 0x2100
#define OBD_FAIL_OSP_CHECK_ENOMEM 0x2101
#define OBD_FAIL_OSP_FAKE_PRECREATE 0x2102
+ /* barrier */
+#define OBD_FAIL_MGS_BARRIER_READ_NET 0x2200
+#define OBD_FAIL_MGS_BARRIER_NOTIFY_NET 0x2201
+
+#define OBD_FAIL_BARRIER_DELAY 0x2202
+#define OBD_FAIL_BARRIER_FAILURE 0x2203
+
/* Assign references to moved code to reduce code changes */
#define OBD_FAIL_PRECHECK(id) CFS_FAIL_PRECHECK(id)
#define OBD_FAIL_CHECK(id) CFS_FAIL_CHECK(id)
if (unlikely((ptr) == NULL)) { \
CERROR("vmalloc of '" #ptr "' (%d bytes) failed\n", \
(int)(size)); \
- CERROR(LPU64" total bytes allocated by Lustre, %d by LNET\n", \
+ CERROR("%llu total bytes allocated by Lustre, %d by LNET\n", \
obd_memory_sum(), atomic_read(&libcfs_kmemory)); \
} else { \
OBD_ALLOC_POST(ptr, size, "vmalloced"); \
#define KEY_IS(str) \
(keylen >= (sizeof(str)-1) && memcmp(key, str, (sizeof(str)-1)) == 0)
+/* LUSTRE_LMA_FL_MASKS defines which flags will be stored in LMA */
+
+static inline int lma_to_lustre_flags(__u32 lma_flags)
+{
+ return (lma_flags & LMAI_ORPHAN) ? LUSTRE_ORPHAN_FL : 0;
+}
+
+static inline int lustre_to_lma_flags(__u32 la_flags)
+{
+ return (la_flags & LUSTRE_ORPHAN_FL) ? LMAI_ORPHAN : 0;
+}
+
#endif