Date: Fri, 2 Jun 1995 04:01:09 -0700 From: David Greenman <davidg> To: CVS-commiters, cvs-sys Subject: cvs commit: src/sys/msdosfs msdosfs_vnops.c Message-ID: <199506021101.EAA21203@freefall.cdrom.com>
next in thread | raw e-mail | index | archive | help
davidg 95/06/02 04:01:09 Modified: sys/msdosfs msdosfs_vnops.c Log: Don't trash the denode cache entry for the source when renaming a directory in the newparent case. For directories, the pseudo-inode number (de_dirclust, de_diroffset) is canonicalized to be (first cluster in directory, 0), so it doesn't change when directories are renamed. This was only partly handled by not doing anything for directories in reinsert(). It is hard to demonstrate bad effects of this bug. You can see an unnecessary cache miss by tracing msdosfs_hashget(). The cache entry is usually left on the wrong hash chain so it is very unlikely to match anything, and bogus cache entries go away in msdosfs_reclaim(). Submitted by: Bruce Evans
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199506021101.EAA21203>