Whamcloud - gitweb
LU-15000 llog: read canceled records in llog_backup
[fs/lustre-release.git] / lustre / include / lustre_log.h
index bde44be..360ba26 100644 (file)
@@ -113,6 +113,13 @@ __u64 llog_size(const struct lu_env *env, struct llog_handle *llh);
 /* llog_process flags */
 #define LLOG_FLAG_NODEAMON 0x0001
 
+/* llog read mode, LLOG_READ_MODE_RAW will process llog canceled records */
+enum llog_read_mode {
+       LLOG_READ_MODE_NORMAL   = 0x0000,
+       LLOG_READ_MODE_RAW      = 0x0001,
+};
+
+
 /* llog_cat.c - catalog api */
 struct llog_process_data {
         /**
@@ -141,6 +148,10 @@ struct llog_process_cat_data {
          * Temporary stored last_idx while scanning log.
          */
         int                  lpcd_last_idx;
+       /**
+        * llog read mode
+        */
+       enum llog_read_mode  lpcd_read_mode;
 };
 
 int llog_cat_close(const struct lu_env *env, struct llog_handle *cathandle);