diff options
author | Kotresh HR <khiremat@redhat.com> | 2018-05-15 13:33:16 -0400 |
---|---|---|
committer | Kotresh HR <khiremat@redhat.com> | 2018-05-24 03:42:39 -0400 |
commit | 54f61abc7b1adffdf1e1cc3568e4df4d23da9a77 (patch) | |
tree | d95bf920fdf2c664ff70a7a68ff8e21ad6b19858 /libglusterfs | |
parent | 58ceafd9329784fbe0ab73ba97db19acceecfa1d (diff) |
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.
Backport of:
> Patch: https://review.gluster.org/20039
> BUG: 1580020
> Change-Id: Ied47275a36aea60254b2add7a59128a9c83b3645
fixes: bz#1582068
Change-Id: Ied47275a36aea60254b2add7a59128a9c83b3645
Signed-off-by: Kotresh HR <khiremat@redhat.com>
Diffstat (limited to 'libglusterfs')
-rw-r--r-- | libglusterfs/src/stack.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libglusterfs/src/stack.h b/libglusterfs/src/stack.h index 18cbf39621a..3a98914645d 100644 --- a/libglusterfs/src/stack.h +++ b/libglusterfs/src/stack.h @@ -489,6 +489,8 @@ copy_frame (call_frame_t *frame) newstack->pid = oldstack->pid; newstack->op = oldstack->op; newstack->type = oldstack->type; + newstack->ctime = oldstack->ctime; + newstack->flags = oldstack->flags; if (call_stack_alloc_groups (newstack, oldstack->ngrps) != 0) { mem_put (newstack); return NULL; |