[Bugs] [Bug 1411010] atime becomes zero when truncating file via ganesha ( or gluster-NFS)

bugzilla at redhat.com bugzilla at redhat.com
Mon Jan 9 01:10:45 UTC 2017


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



--- Comment #2 from Worker Ant <bugzilla-bot at gluster.org> ---
COMMIT: http://review.gluster.org/16355 committed in release-3.9 by Kaleb
KEITHLEY (kkeithle at redhat.com) 
------
commit 411471c1827640fbb38813d0f870b3c85773039f
Author: Niels de Vos <ndevos at redhat.com>
Date:   Sat Jan 7 14:21:54 2017 +0100

    posix: make sure atime and mtime are set when calling lutimes()

    When overwriting an existing file with O_TRUNC, the 'atime' was set to
    0, meaning the Epoch (01-Jan-1970 UTC). However, the 'mtime' gets
    updated correcty.

    In case 'atime' or 'mtime' is not passed in the 'struct iatt', the time
    values passed to the systemcall are taken from the current values are
    returned by lstat().

    Cherry picked from commit 9bed81ada6f91f998e9abd915b18e3f06557cdcb:
    > Change-Id: I7021b7161dcd6c9a3e515d98f6d4847533c434b3
    > BUG: 1401777
    > Reported-by: Eivind Sarto <eivindsarto at gmail.com>
    > Signed-off-by: Niels de Vos <ndevos at redhat.com>
    > Reviewed-on: http://review.gluster.org/16034
    > Smoke: Gluster Build System <jenkins at build.gluster.org>
    > NetBSD-regression: NetBSD Build System <jenkins at build.gluster.org>
    > Reviewed-by: Raghavendra Bhat <raghavendra at redhat.com>
    > CentOS-regression: Gluster Build System <jenkins at build.gluster.org>
    > Reviewed-by: Kaleb KEITHLEY <kkeithle at redhat.com>

    Change-Id: I7021b7161dcd6c9a3e515d98f6d4847533c434b3
    BUG: 1411010
    Reported-by: Eivind Sarto <eivindsarto at gmail.com>
    Signed-off-by: Niels de Vos <ndevos at redhat.com>
    Reviewed-on: http://review.gluster.org/16355
    Smoke: Gluster Build System <jenkins at build.gluster.org>
    NetBSD-regression: NetBSD Build System <jenkins at build.gluster.org>
    CentOS-regression: Gluster Build System <jenkins at build.gluster.org>
    Reviewed-by: Kaleb KEITHLEY <kkeithle at redhat.com>

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=vuwXZndE3G&a=cc_unsubscribe


More information about the Bugs mailing list