svn commit: r213830 - stable/8/sys/fs/msdosfs

Konstantin Belousov kib at FreeBSD.org
Thu Oct 14 09:29:59 UTC 2010


Author: kib
Date: Thu Oct 14 09:29:59 2010
New Revision: 213830
URL: http://svn.freebsd.org/changeset/base/213830

Log:
  MFC r213508:
  Explicitely call cache_purge(fvp) when msdosfs_rename() succeeded, to flush
  aliases created due to msdosfs being case-insensitive.
  
  MFC r213543:
  Add a comment describing the reason for calling cache_purge(fvp).

Modified:
  stable/8/sys/fs/msdosfs/msdosfs_vnops.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)
  stable/8/sys/dev/xen/xenpci/   (props changed)

Modified: stable/8/sys/fs/msdosfs/msdosfs_vnops.c
==============================================================================
--- stable/8/sys/fs/msdosfs/msdosfs_vnops.c	Thu Oct 14 08:01:33 2010	(r213829)
+++ stable/8/sys/fs/msdosfs/msdosfs_vnops.c	Thu Oct 14 09:29:59 2010	(r213830)
@@ -1270,6 +1270,14 @@ abortit:
 		}
 	}
 
+	/*
+	 * The msdosfs lookup is case insensitive. Several aliases may
+	 * be inserted for a single directory entry. As a consequnce,
+	 * name cache purge done by lookup for fvp when DELETE op for
+	 * namei is specified, might be not enough to expunge all
+	 * namecache entries that were installed for this direntry.
+	 */
+	cache_purge(fvp);
 	VOP_UNLOCK(fvp, 0);
 bad:
 	if (xp)


More information about the svn-src-all mailing list