DragonFly BSD
DragonFly commits List (threaded) for 2005-03
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

cvs commit: src/sys/vfs/nfs nfs_subs.c


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 16 Mar 2005 14:17:59 -0800 (PST)

dillon      2005/03/16 14:17:59 PST

DragonFly src repository

  Modified files:
    sys/vfs/nfs          nfs_subs.c 
  Log:
  Fix a bugaboo in the last commit.  We cannot safely modify n_mtime based
  on the server indicating that it has changed without also flushing the
  vnode's buffers.   Otherwise we end up with stale data in the buffer cache
  and the client unaware that it is stale.  Since we do not want to flush
  the buffers in the getattr code we instead simply mark the nfs node
  NSIZECHANGED which will flush the buffers on the next read.
  
  Revision  Changes    Path
  1.26      +8 -3      src/sys/vfs/nfs/nfs_subs.c


http://www.dragonflybsd.org/cvsweb/src/sys/vfs/nfs/nfs_subs.c.diff?r1=1.25&r2=1.26&f=u



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]