summaryrefslogtreecommitdiffstats
path: root/xlators/storage/posix/src/posix-metadata.h
diff options
context:
space:
mode:
authorKotresh HR <khiremat@redhat.com>2018-04-23 04:22:09 -0400
committerAmar Tumballi <amarts@redhat.com>2018-05-06 07:06:53 +0530
commit9a854a98af69c1b7e06aa01dff7ea3271ebd574c (patch)
tree1a1de97e4938ba6bd7cda63cb903727680a186bf /xlators/storage/posix/src/posix-metadata.h
parent3e24848f1e568ed3307683a9786f33d1ee15209b (diff)
posix/ctime: posix hooks to get consistent time xattr
This patch uses the ctime posix APIs to get consistent time across replica. The time attributes are got from from inode context or from on disk if not found and merged with iatt to be returned. Credits: Rafi KC <rkavunga@redhat.com> Updates: #208 Change-Id: Id737038ce52468f1f5ebc8a42cbf9c6ffbd63850 Signed-off-by: Kotresh HR <khiremat@redhat.com>
Diffstat (limited to 'xlators/storage/posix/src/posix-metadata.h')
-rw-r--r--xlators/storage/posix/src/posix-metadata.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/xlators/storage/posix/src/posix-metadata.h b/xlators/storage/posix/src/posix-metadata.h
index b654c83230c..a6bde785abe 100644
--- a/xlators/storage/posix/src/posix-metadata.h
+++ b/xlators/storage/posix/src/posix-metadata.h
@@ -45,5 +45,7 @@ posix_set_mdata_xattr (xlator_t *this, const char *real_path, int fd,
int
posix_update_utime_in_mdata (xlator_t *this, const char *real_path, int fd,
inode_t *inode, struct iatt *stbuf, int valid);
+gf_boolean_t
+is_ctime_enabled();
#endif /* _POSIX_METADATA_H */