nfs - Fix utimes() bugs in NFS
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 14 Sep 2019 21:59:11 +0000 (14:59 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 14 Sep 2019 21:59:11 +0000 (14:59 -0700)
commitc2c4c8a82bb0fc66fe2268f79b7980d2be1d1010
tree9a297bc51347ac47acdc164ba3e85752e419b249
parentf2a8e16c6664d6d6de5d3c76d098044f1805829d
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.
sys/vfs/nfs/nfs_vnops.c