summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJiffin Tony Thottan <jthottan@redhat.com>2019-06-26 15:58:33 +0530
committerKotresh HR <khiremat@redhat.com>2019-06-27 09:28:15 +0000
commit7d8be567f2f904fc74d0990ebce2e8afbedab918 (patch)
tree4272f67ae25ce6adf75f73d8a018db6581797154
parente8f8d16fc4b8e5be48f4d7c9ff9d170934ffb7fc (diff)
posix : add posix_set_ctime() in posix_ftruncate()
Change-Id: I0cb5320fea71306e0283509ae47024f23874b53b fixes: bz#1723761 Signed-off-by: Jiffin Tony Thottan <jthottan@redhat.com>
-rw-r--r--xlators/storage/posix/src/posix-inode-fd-ops.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xlators/storage/posix/src/posix-inode-fd-ops.c b/xlators/storage/posix/src/posix-inode-fd-ops.c
index 09018165f91..f237f23555a 100644
--- a/xlators/storage/posix/src/posix-inode-fd-ops.c
+++ b/xlators/storage/posix/src/posix-inode-fd-ops.c
@@ -5073,6 +5073,8 @@ posix_ftruncate(call_frame_t *frame, xlator_t *this, fd_t *fd, off_t offset,
goto out;
}
+ posix_set_ctime(frame, this, NULL, pfd->fd, fd->inode, &postop);
+
op_ret = 0;
out: