From cejkar@fit.vutbr.cz  Tue Feb 21 10:41:20 2006
Return-Path: <cejkar@fit.vutbr.cz>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 80FA316A420
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 21 Feb 2006 10:41:20 +0000 (GMT)
	(envelope-from cejkar@fit.vutbr.cz)
Received: from kazi.fit.vutbr.cz (kazi.fit.vutbr.cz [147.229.8.12])
	by mx1.FreeBSD.org (Postfix) with ESMTP id DDA2943D4C
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 21 Feb 2006 10:41:19 +0000 (GMT)
	(envelope-from cejkar@fit.vutbr.cz)
Received: from kazi.fit.vutbr.cz (localhost [127.0.0.1])
	by kazi.fit.vutbr.cz (envelope-from cejkar@fit.vutbr.cz) (8.13.5/8.13.5) with ESMTP id k1LAfGh8039873
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 21 Feb 2006 11:41:16 +0100 (CET)
Received: (from cejkar@localhost)
	by kazi.fit.vutbr.cz (8.13.5/8.13.1/Submit) id k1LAfG4e039861;
	Tue, 21 Feb 2006 11:41:16 +0100 (CET)
	(envelope-from cejkar)
Message-Id: <200602211041.k1LAfG4e039861@kazi.fit.vutbr.cz>
Date: Tue, 21 Feb 2006 11:41:16 +0100 (CET)
From: Rudolf Cejka <cejkar@fit.vutbr.cz>
Reply-To: Rudolf Cejka <cejkar@fit.vutbr.cz>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: msdosfs: False access to renamed files/directories (case bug)
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         93634
>Category:       kern
>Synopsis:       [msdosfs] False access to renamed files/directories (case bug)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kib
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 21 10:50:03 GMT 2006
>Closed-Date:    Mon Nov 22 11:11:03 UTC 2010
>Last-Modified:  Mon Nov 22 11:11:03 UTC 2010
>Originator:     Rudolf Cejka
>Release:        FreeBSD 5.3-STABLE i386
>Organization:
FIT, Brno University of Technology, Czech Republic
>Environment:

Tested under 6.0-STABLE (Nov 8 2005) and 7.0-CURRENT (Jan 13 2006).

>Description:
and How-To-Repeat:

I think that this sequence of commands and commencs is self-explaining:

# mount -t msdos /dev/da0s1 /stick
$ cd /stick
$ echo File > f
$ cat F		# Create "F" in kernel cache for file "f"
File
$ mv f g	# Move f to g
$ cat F		# "F" is still as a valid reference:to already renamed file
File

However the correct behaviour should be:
$ cat F
cat: F: No such file or directory

>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: vwe 
State-Changed-When: Fri May 23 22:10:09 UTC 2008 
State-Changed-Why:  

Rudolf, I've found your old problem report still open. Sorry nobody took 
care. 
Can you please provide information if your issue is still a problem 
with later releases (say 6.3, 7.0, post6.3 6-STABLE or 7-STABLE)? 
Please note 5.x and pre-6.3 releases will be EOL'd soon. 


Responsible-Changed-From-To: freebsd-bugs->vwe 
Responsible-Changed-By: vwe 
Responsible-Changed-When: Fri May 23 22:10:09 UTC 2008 
Responsible-Changed-Why:  

track 

http://www.freebsd.org/cgi/query-pr.cgi?pr=93634 
State-Changed-From-To: feedback->open 
State-Changed-By: linimon 
State-Changed-When: Tue May 27 01:18:22 UTC 2008 
State-Changed-Why:  
Submitter confirms problem still exists. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=93634 

From: linimon@lonesome.com (Mark Linimon)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/93634: [msdosfs] False access to renamed files/directories (case bug)
Date: Mon, 26 May 2008 20:19:11 -0500

 ----- Forwarded message from Rudolf Cejka <cejkar@fit.vutbr.cz> -----
 
 From: Rudolf Cejka <cejkar@fit.vutbr.cz>
 To: vwe@FreeBSD.org
 
 Hello, yes, I have re-tested it on 6.3-STABLE as of Mar 01, 2008,
 and the problem is still here and it is very easily reproducible.
 
 -- 
 Rudolf Cejka <cejkar at fit.vutbr.cz> http://www.fit.vutbr.cz/~cejkar
 Brno University of Technology, Faculty of Information Technology
 Bozetechova 2, 612 66  Brno, Czech Republic
 
 ----- End forwarded message -----

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/93634: commit references a PR
Date: Thu,  7 Oct 2010 08:36:08 +0000 (UTC)

 Author: kib
 Date: Thu Oct  7 08:36:02 2010
 New Revision: 213508
 URL: http://svn.freebsd.org/changeset/base/213508
 
 Log:
   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.
   
   Explicitely call cache_purge(fvp) when msdosfs_rename() succeeded.
   
   PR:	kern/93634
   MFC after:	1 week
 
 Modified:
   head/sys/fs/msdosfs/msdosfs_vnops.c
 
 Modified: head/sys/fs/msdosfs/msdosfs_vnops.c
 ==============================================================================
 --- head/sys/fs/msdosfs/msdosfs_vnops.c	Thu Oct  7 06:34:47 2010	(r213507)
 +++ head/sys/fs/msdosfs/msdosfs_vnops.c	Thu Oct  7 08:36:02 2010	(r213508)
 @@ -1258,6 +1258,7 @@ abortit:
  		}
  	}
  
 +	cache_purge(fvp);
  	VOP_UNLOCK(fvp, 0);
  bad:
  	if (xp)
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: open->patched 
State-Changed-By: vwe 
State-Changed-When: Thu Oct 7 09:27:52 UTC 2010 
State-Changed-Why:  
kib fixed that in HEAD 


Responsible-Changed-From-To: vwe->kib 
Responsible-Changed-By: vwe 
Responsible-Changed-When: Thu Oct 7 09:27:52 UTC 2010 
Responsible-Changed-Why:  
MFC reminder 

http://www.freebsd.org/cgi/query-pr.cgi?pr=93634 
State-Changed-From-To: patched->closed 
State-Changed-By: kib 
State-Changed-When: Mon Nov 22 11:09:51 UTC 2010 
State-Changed-Why:  
Fix is in stable/8. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=93634 
>Unformatted:
