summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJiffin Tony Thottan <jthottan@redhat.com>2019-06-26 15:58:33 +0530
committerhari gowtham <hari.gowtham005@gmail.com>2019-07-03 06:39:17 +0000
commit1c32880f7af41dcd7dc4fcc38f5e8f1619de6ce1 (patch)
treef1c9b18cf7a9a7a6d7960fd9a7d8c9cf19aef2d5
parent93aec95ee88d3b5313fae8f7d58b1322dabf444d (diff)
posix : add posix_set_ctime() in posix_ftruncate()
>Backport of https://review.gluster.org/#/c/glusterfs/+/22948/ >Change-Id: I0cb5320fea71306e0283509ae47024f23874b53b >fixes: bz#1723761 Change-Id: I0cb5320fea71306e0283509ae47024f23874b53b fixes: bz#1724558 Signed-off-by: Jiffin Tony Thottan <jthottan@redhat.com> (cherry picked from commit 7d8be567f2f904fc74d0990ebce2e8afbedab918)
-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 7dbbd3d6d61..157df8972f2 100644
--- a/xlators/storage/posix/src/posix-inode-fd-ops.c
+++ b/xlators/storage/posix/src/posix-inode-fd-ops.c
@@ -4944,6 +4944,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: