cvs commit: src/sys/nfsclient nfs_vnops.c

Paul Saab ps at FreeBSD.org
Wed Nov 2 23:42:16 PST 2005


ps          2005-11-03 07:42:15 UTC

  FreeBSD src repository

  Modified files:
    sys/nfsclient        nfs_vnops.c 
  Log:
  In nfs_flush(), clear the NMODIFIED bit only if there are no dirty
  buffers *and* there are no buffers queued up for writing.  The bug
  was that NMODIFIED was being cleared even while there were buffers
  scheduled to be written out, which leads to all sorts of interesting
  bugs - one where the file could shrink (because of a post-op getattr
  load, say) causing data in buffer(s) queued for write to be tossed,
  resulting in data corruption.
  
  Submitted by:   Mohan Srinivasan
  
  Revision  Changes    Path
  1.259     +2 -1      src/sys/nfsclient/nfs_vnops.c


More information about the cvs-src mailing list