233933
From d9781ed4964d9e752fc880c8cd8afcbd2c561ebe Mon Sep 17 00:00:00 2001
233933
From: Jiffin Tony Thottan <jthottan@redhat.com>
233933
Date: Wed, 26 Jun 2019 15:58:33 +0530
233933
Subject: [PATCH 219/221] posix : add posix_set_ctime() in posix_ftruncate()
233933
233933
Upstream references :
233933
> release 6: https://review.gluster.org/#/c/glusterfs/+/22965/
233933
> mainline: https://review.gluster.org/#/c/glusterfs/+/22948/
233933
233933
Change-Id: I0cb5320fea71306e0283509ae47024f23874b53b
233933
fixes: bz#1720163
233933
Signed-off-by: Jiffin Tony Thottan <jthottan@redhat.com>
233933
Reviewed-on: https://code.engineering.redhat.com/gerrit/174837
233933
Tested-by: RHGS Build Bot <nigelb@redhat.com>
233933
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
233933
---
233933
 xlators/storage/posix/src/posix-inode-fd-ops.c | 2 ++
233933
 1 file changed, 2 insertions(+)
233933
233933
diff --git a/xlators/storage/posix/src/posix-inode-fd-ops.c b/xlators/storage/posix/src/posix-inode-fd-ops.c
233933
index fc847d6..c949f68 100644
233933
--- a/xlators/storage/posix/src/posix-inode-fd-ops.c
233933
+++ b/xlators/storage/posix/src/posix-inode-fd-ops.c
233933
@@ -5059,6 +5059,8 @@ posix_ftruncate(call_frame_t *frame, xlator_t *this, fd_t *fd, off_t offset,
233933
         goto out;
233933
     }
233933
 
233933
+    posix_set_ctime(frame, this, NULL, pfd->fd, fd->inode, &postop);
233933
+
233933
     op_ret = 0;
233933
 
233933
 out:
233933
-- 
233933
1.8.3.1
233933