DFS referrals only work for lower case or direct chdir
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Triaged
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: linux-image-
When a CIFS share has remote DFS links, the user is unable to access the mount properly. A short summary, where RemoteDir is a DFS to another server:
# mount.cifs //dfs.main.org/ test/ -o user=WORKGROUP/
# ls test/
RemoteDir
# ls test/RemoteDir/
ls: cannot open directory test/RemoteDir: Not a directory
# umount test
% And again, now with both ls on one line
# mount.cifs //dfs.main.org/ test/ -o user=WORKGROUP/
# ls test/; ls test/RemoteDir
RemoteDir
ls: reading directory test/RemoteDir/: Object is remote
# umount test
% Now chdir directly, without doing an ls (this is important)
# mount.cifs //dfs.main.org/ test/ -o user=WORKGROUP/
# cd test/RemoteDir
test/RemoteDir# ls
file1 file2
test/RemoteDir# cd ../../; umount test
% However, lower case works normally
# mount.cifs //dfs.main.org/ test/ -o user=WORKGROUP/
# cd test
test# ls
RemoteDir
test# ls remotedir
file1 file2
test# ls RemoteDir
ls: cannot open directory test/RemoteDir: Not a directory
# umount test
Note that unmounting is very important. After a mistake, (e.g. chdir does not work after ls), the share has to be remounted in order to chdir directly.
The problem is basically described here, except for report on lower case access:
http://<email address hidden>
However, those patches are already in the 2.6.38 kernel (currently running linux-image-
On mounting, the kernel complains about:
CIFS VFS: Unexpected SMB signature
but no further complains on chdir/ls to the (DFS) mounts.
I am pretty sure this is a kernel problem, as downgrading to 2.6.32-21-server (Lucid kernel) solves all problems (that is, keyutils, time, credentials etc. are installed correctly).
System information:
1)
# lsb_release -rd
Description: Ubuntu Natty (development branch)
Release: 11.04
2)
# apt-cache policy linux-image-
linux-image-
Installed: 2.6.38-7.37
Candidate: 2.6.38-7.37
Version table:
*** 2.6.38-7.37 0
500 http://
100 /var/lib/
3) I expect that DFS referrals work properly
4) They do not work properly
---
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.23.
AplayDevices: Error: [Errno 2] No such file or directory
Architecture: amd64
ArecordDevices: Error: [Errno 2] No such file or directory
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/by-path', '/dev/snd/
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info: Error: [Errno 2] No such file or directory
Card0.Amixer.
DistroRelease: Ubuntu 11.04
InstallationMedia: Ubuntu-Server 11.04 "Natty Narwhal" - Alpha amd64 (20110201.2)
IwConfig:
lo no wireless extensions.
eth0 no wireless extensions.
MachineType: Dell Inc. OptiPlex 760
Package: linux (not installed)
ProcEnviron:
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=
ProcVersionSign
RelatedPackageV
linux-
linux-
linux-firmware 1.52
RfKill:
Tags: natty
Uname: Linux 2.6.38-7-server x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
dmi.bios.date: 08/17/2009
dmi.bios.vendor: Dell Inc.
dmi.bios.version: A05
dmi.board.name: 0M859N
dmi.board.vendor: Dell Inc.
dmi.board.version: A00
dmi.chassis.
dmi.chassis.type: 3
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.
dmi.product.name: OptiPlex 760
dmi.sys.vendor: Dell Inc.
Changed in linux (Ubuntu): | |
status: | New → Confirmed |
Don't know if this helps, but here are some lines trying to keep to the established example:
#cd test/
#cd RemoteDir/
bash: cd: RemoteDir/: Not a directory
#stat RemoteDir/
stat: cannot stat ` RemoteDir/': Not a directory
#stat RemoteDir <----no slash this time
File: `kontorkart'
Size: 0 Blocks: 0 IO Block: 16384 directory
Device: 16h/22d Inode: 1043918 Links: 2
Access: (0711/drwx--x--x) Uid: ( 1000/ USER) Gid: ( 1000/ USER)
Access: 2011-06-08 15:31:21.189255968 +0200
Modify: 2011-06-08 15:31:21.189255968 +0200
Change: 2011-06-08 15:31:21.189255968 +0200
#cd RemoteDir
bash: cd: RemoteDir: Not a directory