看板 DFBSD_commit 關於我們 聯絡資訊
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