Whamcloud - gitweb
LU-13376 utils: add batching to ofd_access_log_reader
[fs/lustre-release.git] / lustre / utils / ofd_access_batch.h
diff --git a/lustre/utils/ofd_access_batch.h b/lustre/utils/ofd_access_batch.h
new file mode 100644 (file)
index 0000000..e06278f
--- /dev/null
@@ -0,0 +1,16 @@
+#ifndef _OFD_ACCESS_BATCH_H_
+#define _OFD_ACCESS_BATCH_H_
+#include <sys/types.h>
+#include <linux/types.h>
+
+struct lu_fid;
+struct alr_batch;
+
+struct alr_batch *alr_batch_create(unsigned int shift);
+void alr_batch_destroy(struct alr_batch *alrb);
+int alr_batch_add(struct alr_batch *alrb, const char *obd_name,
+               const struct lu_fid *pfid, time_t time, __u64 begin, __u64 end,
+               __u32 size, __u32 segment_count, __u32 flags);
+int alr_batch_print(struct alr_batch *alrb, FILE *file);
+
+#endif /* _OFD_ACCESS_BATCH_H_ */