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