[Bugs] [Bug 1582072] New: posix/ctime: Access time is not updated for file with a hardlink

bugzilla at redhat.com bugzilla at redhat.com
Thu May 24 06:53:56 UTC 2018


https://bugzilla.redhat.com/show_bug.cgi?id=1582072

            Bug ID: 1582072
           Summary: posix/ctime: Access time is not updated for file with
                    a hardlink
           Product: GlusterFS
           Version: 4.1
         Component: posix
          Assignee: bugs at gluster.org
          Reporter: khiremat at redhat.com
                CC: bugs at gluster.org
        Depends On: 1580529



+++ This bug was initially created as a clone of Bug #1580529 +++

Description of problem:
When ctime feature is enabled, access time of file which has hardlink is not
changed with the cmd 'touch -a <file>'

Version-Release number of selected component (if applicable):
mainline

How reproducible:
Alwasy

Steps to Reproduce:
1. Creatt gluster volume
2. Enable ctime feature (Both ctime and utime option)
3. Create a file
4. Create a hardlink for above file
5. Record atime by doing stat file
6. touch -a file
7. Record atime and compare with above. 

Actual results:
atime should is not updated

Expected results:
atime should be updated

Additional info:

--- Additional comment from Worker Ant on 2018-05-21 13:25:41 EDT ---

REVIEW: https://review.gluster.org/20051 (posix/ctime: Fix atime update for
hardlink) posted (#1) for review on master by Kotresh HR

--- Additional comment from Worker Ant on 2018-05-24 02:07:01 EDT ---

COMMIT: https://review.gluster.org/20051 committed in master by "Kotresh HR"
<khiremat at redhat.com> with a commit message- posix/ctime: Fix atime update for
hardlink

With ctime feature enabled, atime is not
being updated for a hardlink when the file
is accessed.

e.g., touch -a <hardlink_file> fails to
update atime. This patch fixes the same.

fixes: bz#1580529
Change-Id: I2201c88d502d0070300a1f5023af1b36951284ec
Signed-off-by: Kotresh HR <khiremat at redhat.com>


Referenced Bugs:

https://bugzilla.redhat.com/show_bug.cgi?id=1580529
[Bug 1580529] posix/ctime: Access time is not updated for file with a
hardlink
-- 
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