From nobody@FreeBSD.org  Thu Aug  3 18:57:49 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 3237916A4E7
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  3 Aug 2006 18:57:49 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id D321643D45
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  3 Aug 2006 18:57:48 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k73IvmCr038385
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 3 Aug 2006 18:57:48 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k73IvmVx038384;
	Thu, 3 Aug 2006 18:57:48 GMT
	(envelope-from nobody)
Message-Id: <200608031857.k73IvmVx038384@www.freebsd.org>
Date: Thu, 3 Aug 2006 18:57:48 GMT
From: Kirk Strauser <kirk@daycos.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: smbfs sometimes not case sensitive when it's supposed to be
X-Send-Pr-Version: www-2.3

>Number:         101324
>Category:       kern
>Synopsis:       [smbfs] smbfs sometimes not case sensitive when it's supposed to be
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-fs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 03 19:00:32 GMT 2006
>Closed-Date:    
>Last-Modified:  Mon May 18 04:21:22 UTC 2009
>Originator:     Kirk Strauser
>Release:        6.1-STABLE
>Organization:
The Day Companies
>Environment:
FreeBSD web2.daycos.com 6.1-STABLE FreeBSD 6.1-STABLE #0: Sat Jul 15 09:47:21 CDT 2006     root@jail1.daycos.com:/usr/obj/usr/src/sys/JAIL1  i386
>Description:
On smbfs mounts, it is possible to open many "fake" directories that have the same name as a real directory except for case differences.  These fake directories differ from the real directory in that they have no contents.  I can't simply mount the directory case-insensitive for various reasons (I need access to the real filename), and this is causing significant aggravation.
>How-To-Repeat:
Try to access a directory and it's wrongly-cased variants:

$ mount -t smbfs
//WEB2@NEWPDC/E on /mnt/newpdc/e (smbfs, noexec)

$ ls -la /mnt/newpdc/e/temp
total 9514
drwxr-xr-x  1 www  www    16384 Jul 19 09:09 .
drwxr-xr-x  1 www  www    16384 Dec 31  1969 ..
-rwxr-xr-x  1 www  www   608709 May 25  2005 82590.tif
-rwxr-xr-x  1 www  www   270336 Sep  4  2003 BIL.dll
[snipped]
-rwxr-xr-x  1 www  www    26422 Oct 26  2005 report.pdf
drwxr-xr-x  1 www  www    16384 Jan 28  2004 test

$ ls -la /mnt/newpdc/e/tEmP
total 32
drwxr-xr-x  1 www  www  16384 Jul 19 09:09 .
drwxr-xr-x  1 www  www  16384 Dec 31  1969 ..

>Fix:
If possible, use the "-c u" or "-c l" options to mount_smbfs to get coerce all pathnames to one case or the other.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-fs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Mon May 18 04:21:08 UTC 2009 
Responsible-Changed-Why:  
Over to maintainer(s). 

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