diff options
author | Jiffin Tony Thottan <jthottan@redhat.com> | 2019-06-26 15:58:33 +0530 |
---|---|---|
committer | Rinku Kothiya <rkothiya@redhat.com> | 2019-08-09 13:32:12 +0000 |
commit | 0a2ae69bcc393f0988fbd1ab6fbad1b93d991099 (patch) | |
tree | d5f1cb7afbf0c5fb429dfe7453af49db6e8156f0 /xlators/storage | |
parent | 2c876346ecc09cbc06beb8eed637a4042b0883f8 (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#1739399
Signed-off-by: Jiffin Tony Thottan <jthottan@redhat.com>
(cherry picked from commit 7d8be567f2f904fc74d0990ebce2e8afbedab918)
Diffstat (limited to 'xlators/storage')
-rw-r--r-- | xlators/storage/posix/src/posix-inode-fd-ops.c | 2 |
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 4311478766c..8c9637876ac 100644 --- a/xlators/storage/posix/src/posix-inode-fd-ops.c +++ b/xlators/storage/posix/src/posix-inode-fd-ops.c @@ -5070,6 +5070,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: |