git: nfs - Fix utimes() bugs in NFS

Matthew Dillon dillon at crater.dragonflybsd.org
Sat Sep 14 15:05:10 PDT 2019


commit c2c4c8a82bb0fc66fe2268f79b7980d2be1d1010
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Sat Sep 14 14:59:11 2019 -0700

    nfs - Fix utimes() bugs in NFS
    
    * Over the years I have tried very hard to avoid flushing pending writes
      when issuing [l]utimes() operations (i.e. setattr VOPs) in NFS, but
      it just causes issues every time.
    
    * Give up.  We now flush pending writes prior to setattr() operations which
      adjust mtime.  This will slow down certain operations such as cp -Rp,
      cpdup, etc, but should improve the consistency and reliability of
      timestamps.

Summary of changes:
 sys/vfs/nfs/nfs_vnops.c | 54 ++++++++++++++++++++++++++++++++-----------------
 1 file changed, 35 insertions(+), 19 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/c2c4c8a82bb0fc66fe2268f79b7980d2be1d1010


-- 
DragonFly BSD source repository


More information about the Commits mailing list