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