Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Oct 2010 09:29:59 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r213830 - stable/8/sys/fs/msdosfs
Message-ID:  <201010140929.o9E9TxcF018892@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201010140929.o9E9TxcF018892>