Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Nov 2005 07:42:15 +0000 (UTC)
From:      Paul Saab <ps@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/nfsclient nfs_vnops.c
Message-ID:  <200511030742.jA37gFYk056490@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200511030742.jA37gFYk056490>