From f8fe0771f0b450713595a7d298ed5a758cf2ce3e Mon Sep 17 00:00:00 2001 From: Kotresh HR Date: Mon, 2 Apr 2018 08:31:25 -0400 Subject: 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 Updates: #208 Change-Id: I1a8d74d1e251f1d6d142f066fc99258025c0bcdd Signed-off-by: Kotresh HR --- libglusterfs/src/stack.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libglusterfs/src') 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) { \ -- cgit