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

看板DFBSD_commit作者時間21年前 (2005/03/17 06:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/2 (看更多)
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
文章代碼(AID): #12EBFd00 (DFBSD_commit)
文章代碼(AID): #12EBFd00 (DFBSD_commit)