kern/101324: smbfs sometimes not case sensitive when it's supposed
to be
Kirk Strauser
kirk at daycos.com
Thu Aug 3 19:00:36 UTC 2006
>Number: 101324
>Category: kern
>Synopsis: smbfs sometimes not case sensitive when it's supposed to be
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-bugs
>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:
>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 at 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 at 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:
>Unformatted:
More information about the freebsd-bugs
mailing list