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
committerAmar Tumballi <amarts@gmail.com>2019-08-20 16:52:24 +0000
commit95f71df31dc73d85df722b0e7d3a7eb1e0237e7f (patch)
treea8874e7f0064026a2d00ebeb04318222501250de /xlators/storage/posix/src/posix-metadata.h
parent72fe2bd9ae0ca223d8a320ca124c2837a1571d82 (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. Change-Id: I7f86d8f8a1e06a332c3449b5bbdbf128c9690f25 fixes: bz#1738786 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);