Subject: CVS commit: src/usr.sbin/puffs/mount_psshfs
To: None <source-changes@NetBSD.org>
From: Antti Kantee <pooka@netbsd.org>
List: source-changes
Date: 11/16/2007 15:53:47
Module Name: src
Committed By: pooka
Date: Fri Nov 16 15:53:47 UTC 2007
Modified Files:
src/usr.sbin/puffs/mount_psshfs: subr.c
Log Message:
If a regular file was remotely updated and a readdir was done on
the directory which contained the file before a getattr on the file
itself, the locally cached mtime would be updated without invalidating
the kernel page cache. Thus incorrect data would be returned when
the node was read afterwards as the node size wouldn't match the
data length in the page cache.
Fix the problem by making all vattr-setting routines use the same code.
Problem noticed again by jmmv & atf (and again by running atf over
psshfs ... sometimes you're the windshield, sometimes you're the bug)
To generate a diff of this commit:
cvs rdiff -r1.35 -r1.36 src/usr.sbin/puffs/mount_psshfs/subr.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.