summaryrefslogtreecommitdiffstats
path: root/xlators/features/changelog/src/changelog-helpers.h
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/features/changelog/src/changelog-helpers.h')
-rw-r--r--xlators/features/changelog/src/changelog-helpers.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/xlators/features/changelog/src/changelog-helpers.h b/xlators/features/changelog/src/changelog-helpers.h
index ec90f8a13d7..987af190b9c 100644
--- a/xlators/features/changelog/src/changelog-helpers.h
+++ b/xlators/features/changelog/src/changelog-helpers.h
@@ -203,9 +203,18 @@ struct changelog_priv {
/* logging directory */
char *changelog_dir;
+ /* htime directory */
+ char *htime_dir;
+
/* one file for all changelog types */
int changelog_fd;
+ /* htime fd for current changelog session */
+ int htime_fd;
+
+ /* rollover_count used by htime */
+ int rollover_count;
+
gf_lock_t lock;
/* writen end of the pipe */
@@ -393,6 +402,11 @@ void *
changelog_fsync_thread (void *data);
int
changelog_forget (xlator_t *this, inode_t *inode);
+int
+htime_update (xlator_t *this, changelog_priv_t *priv,
+ unsigned long ts, char * buffer);
+int
+htime_open (xlator_t *this, changelog_priv_t * priv, unsigned long ts);
/* Geo-Rep snapshot dependency changes */
void
@@ -549,5 +563,6 @@ call_stub_t *__chlog_barrier_dequeue (xlator_t *this, struct list_head *queue);
goto label; \
} \
} while (0)
+/* End: Geo-Rep snapshot dependency changes */
+
#endif /* _CHANGELOG_HELPERS_H */
-/* End: Geo-Rep snapshot dependency changes */