[Bugs] [Bug 1582068] New: ctime: Rename and unlink does not update ctime
bugzilla at redhat.com
bugzilla at redhat.com
Thu May 24 06:47:19 UTC 2018
https://bugzilla.redhat.com/show_bug.cgi?id=1582068
Bug ID: 1582068
Summary: ctime: Rename and unlink does not update ctime
Product: GlusterFS
Version: 4.1
Component: posix
Assignee: bugs at gluster.org
Reporter: khiremat at redhat.com
CC: bugs at gluster.org
Depends On: 1580020
+++ This bug was initially created as a clone of Bug #1580020 +++
Description of problem:
Successful rename and unlink (if link count > 1) is not updating ctime.
Version-Release number of selected component (if applicable):
mainline
How reproducible:
Alwasy
Steps to Reproduce:
1. Create gluster volume and mount
2. Create file, stat file to record ctime. Rename file to rn_file, stat rn_file
to check ctime. Ctime should be changed
3. Create file, create hard link named 'hl_file', stat file to record ctime.
unlink hl_file, stat file to check ctime. ctime should be changed
Actual results:
Ctime doesn't change
Expected results:
Ctime should be changed.
Additional info:
--- Additional comment from Kotresh HR on 2018-05-19 03:42:44 EDT ---
Forgot to mention,
This is with ctime feature enabled, i.e.,
gluster vol set utime on
gluster vol set ctime on
--- Additional comment from Worker Ant on 2018-05-19 04:09:25 EDT ---
REVIEW: https://review.gluster.org/20039 (features/posix: Fix updating ctime in
rename and unlink) posted (#1) for review on master by Kotresh HR
--- Additional comment from Worker Ant on 2018-05-24 01:49:53 EDT ---
COMMIT: https://review.gluster.org/20039 committed in master by "Kotresh HR"
<khiremat at redhat.com> with a commit message- 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 <khiremat at redhat.com>
Referenced Bugs:
https://bugzilla.redhat.com/show_bug.cgi?id=1580020
[Bug 1580020] ctime: Rename and unlink does not update ctime
--
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
More information about the Bugs
mailing list