From 18cbdeb529c2e7b60733fbbb9bf9bab2d5fd238c Mon Sep 17 00:00:00 2001 From: Kotresh HR Date: Tue, 15 May 2018 13:33:16 -0400 Subject: ctime: Fix updating ctime in rename and unlink 1. Successful rename was not updating ctime. Fixed the same. 2. Successful unlink when link count is more than 1 was not updating ctime. Fixed the same. 3. Copy ctime and flags during frame copy. fixes: bz#1580020 Change-Id: Ied47275a36aea60254b2add7a59128a9c83b3645 Signed-off-by: Kotresh HR --- xlators/features/utime/src/utime-helpers.c | 1 + 1 file changed, 1 insertion(+) (limited to 'xlators/features') diff --git a/xlators/features/utime/src/utime-helpers.c b/xlators/features/utime/src/utime-helpers.c index d8632453e62..8dcd2647a35 100644 --- a/xlators/features/utime/src/utime-helpers.c +++ b/xlators/features/utime/src/utime-helpers.c @@ -60,6 +60,7 @@ utime_update_attribute_flags(call_frame_t *frame, glusterfs_fop_t fop) case GF_FOP_UNLINK: case GF_FOP_RMDIR: + frame->root->flags |= MDATA_CTIME; frame->root->flags |= MDATA_PAR_CTIME; frame->root->flags |= MDATA_PAR_MTIME; break; -- cgit