Source-Changes archive

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

CVS commit: [netbsd-4] src/sys/fs/tmpfs



Module Name:    src
Committed By:   riz
Date:           Fri Feb  1 14:55:50 UTC 2008

Modified Files:
        src/sys/fs/tmpfs [netbsd-4]: tmpfs_vnops.c

Log Message:
Pull up following revision(s) (requested by pooka in ticket #1010):
        sys/fs/tmpfs/tmpfs_vnops.c: revision 1.43
Fix a race condition: in case two source paths hardlinked to the
same file were renamed simultaneously, there was a window where
directory entry cached in the vnode during lookup would be replaced
before calling rename.  This lead to one directory entry getting
renamed twice and the other one getting zero renames.  Do a relookup
in rename to make sure we have the correct directory entry.
Thanks go to Greg Oster for reporting the problem, helping with
debugging and thoroughly testing the patch.


To generate a diff of this commit:
cvs rdiff -r1.32.2.3 -r1.32.2.4 src/sys/fs/tmpfs/tmpfs_vnops.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index