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

bugzilla at redhat.com bugzilla at redhat.com
Mon Jan 9 01:11:16 UTC 2017


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



--- Comment #3 from Worker Ant <bugzilla-bot at gluster.org> ---
COMMIT: http://review.gluster.org/16354 committed in release-3.7 by Kaleb
KEITHLEY (kkeithle at redhat.com) 
------
commit 3a635c783902b89a1f027ad3b6e67bb7a54a883d
Author: Niels de Vos <ndevos at redhat.com>
Date:   Sat Jan 7 14:18:37 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: 1401122
    Reported-by: Eivind Sarto <eivindsarto at gmail.com>
    Signed-off-by: Niels de Vos <ndevos at redhat.com>
    Reviewed-on: http://review.gluster.org/16354
    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=GvW2Z83ivP&a=cc_unsubscribe


More information about the Bugs mailing list