summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src
diff options
context:
space:
mode:
authorKotresh HR <khiremat@redhat.com>2018-04-02 08:31:25 -0400
committerAmar Tumballi <amarts@redhat.com>2018-05-06 07:09:08 +0530
commitf8fe0771f0b450713595a7d298ed5a758cf2ce3e (patch)
tree8066610f5d3343c5f71b52c9159a701e7450c7a3 /libglusterfs/src
parent9a854a98af69c1b7e06aa01dff7ea3271ebd574c (diff)
posix/ctime: posix hook to set ctime xattr in relevant fops
This patch uses the ctime posix APIs to set consistent time across replica on disk. It also stores the time attributes in the inode context. Credits: Rafi KC <rkavunga@redhat.com> Updates: #208 Change-Id: I1a8d74d1e251f1d6d142f066fc99258025c0bcdd Signed-off-by: Kotresh HR <khiremat@redhat.com>
Diffstat (limited to 'libglusterfs/src')
-rw-r--r--libglusterfs/src/stack.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libglusterfs/src/stack.h b/libglusterfs/src/stack.h
index 87fbef9e3c9..18cbf39621a 100644
--- a/libglusterfs/src/stack.h
+++ b/libglusterfs/src/stack.h
@@ -134,6 +134,14 @@ struct _call_stack {
};
+/* call_stack flags field users */
+#define MDATA_CTIME (1<<0)
+#define MDATA_MTIME (1<<1)
+#define MDATA_ATIME (1<<2)
+#define MDATA_PAR_CTIME (1<<3)
+#define MDATA_PAR_MTIME (1<<4)
+#define MDATA_PAR_ATIME (1<<5)
+
#define frame_set_uid_gid(frm, u, g) \
do { \
if (frm) { \