summaryrefslogtreecommitdiffstats
path: root/xlators/storage/posix/src/posix-metadata.h
diff options
context:
space:
mode:
authorKotresh HR <khiremat@redhat.com>2019-08-08 10:05:12 +0530
committerKotresh HR <khiremat@redhat.com>2019-08-27 18:25:52 +0000
commit6ec6db07da2761a35e003ff485f66bae2037c442 (patch)
treeab2e03b1089a5996c712ee73fdfb5fb04f88f830 /xlators/storage/posix/src/posix-metadata.h
parentf2123cc691c3ed16177b3c30468615127fb2086a (diff)
ctime: Fix ctime issue with utime family of syscalls
When atime|mtime is updated via utime family of syscalls, ctime is not updated. This patch fixes the same. Backport of: > Patch: https://review.gluster.org/23177/ > Change-Id: I7f86d8f8a1e06a332c3449b5bbdbf128c9690f25 > BUG: 1738786 > Signed-off-by: Kotresh HR <khiremat@redhat.com> (cherry picked from commit 95f71df31dc73d85df722b0e7d3a7eb1e0237e7f) Change-Id: I7f86d8f8a1e06a332c3449b5bbdbf128c9690f25 fixes: bz#1746142 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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/xlators/storage/posix/src/posix-metadata.h b/xlators/storage/posix/src/posix-metadata.h
index dc25e59c66a..c17669974d2 100644
--- a/xlators/storage/posix/src/posix-metadata.h
+++ b/xlators/storage/posix/src/posix-metadata.h
@@ -40,7 +40,8 @@ __posix_get_mdata_xattr(xlator_t *this, const char *real_path, int _fd,
inode_t *inode, struct iatt *stbuf);
void
posix_update_utime_in_mdata(xlator_t *this, const char *real_path, int fd,
- inode_t *inode, struct iatt *stbuf, int valid);
+ inode_t *inode, struct timespec *ctime,
+ struct iatt *stbuf, int valid);
void
posix_set_ctime(call_frame_t *frame, xlator_t *this, const char *real_path,
int fd, inode_t *inode, struct iatt *stbuf);