[Bugs] [Bug 1582531] New: posix/ctime: Mtime is not updated on setting it to older date

bugzilla at redhat.com bugzilla at redhat.com
Fri May 25 13:50:45 UTC 2018


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

            Bug ID: 1582531
           Summary: posix/ctime: Mtime is not updated on setting it to
                    older date
           Product: GlusterFS
           Version: 4.1
         Component: posix
          Assignee: bugs at gluster.org
          Reporter: khiremat at redhat.com
                CC: bugs at gluster.org
        Depends On: 1581035



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

Description of problem:
With ctime feature enabled, mtime is not updated when it's set to older date
than the existing time.

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

How reproducible:
Always

Steps to Reproduce:
1. Create gluster volume
2. Enable ctime feature as follows
                gluster vol set <vol> ctime on
                gluster vol set <vol> utime on
3. Mount the volume at say /mnt
4  touch -d "@946681200" /mnt/file1

Actual results:
mtime of /mnt/file1 is not updated to 946681200

Expected results:
mtime of /mnt/file1 should be updated to 946681200

Additional info:

--- Additional comment from Worker Ant on 2018-05-22 01:04:31 EDT ---

REVIEW: https://review.gluster.org/20055 (posix/ctime: Fix updating mtime older
time) posted (#1) for review on master by Kotresh HR

--- Additional comment from Worker Ant on 2018-05-25 01:32:25 EDT ---

COMMIT: https://review.gluster.org/20055 committed in master by "Amar Tumballi"
<amarts at redhat.com> with a commit message- posix/ctime: Fix updating mtime to
older time

With ctime feature enabled, the mtime is not
updated when it's set to time older than the
existing one. Fixed the same. But the ctime
is not allowed to change to older dates.

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


Referenced Bugs:

https://bugzilla.redhat.com/show_bug.cgi?id=1581035
[Bug 1581035] posix/ctime: Mtime is not updated on setting it to older date
-- 
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