Skip to contentSkip to conversation

cifs kernel module and MS DFS shares [2.6.12-1.1411_FC4]

DISCUSSION Thomas Chiverton 2 participants 4 messages Aug 8, 2005 – Aug 11, 2005

lore
Share & tools
lore
#0 lore raw

(I was referred here by Thomas Anders over on the Samba list, as apparently it's the cifs kernel module at fault ?).

I am having problems mounting a DFS share using mount.cifs, even though it works in smbclient fine.
After mounting, each top-level directory contains a copy of the top level directory.
Turning up debug and verbose don't seem to help. Any ideas ?

I can mount non-DFS shares from the same CIFS server fine.

[tom@charles-compaq@1306 /home/tom/Projects/gbb-core-app ]
smbclient //exchsvr/dfs -U tchiverton -W BLUEFINGER
Password:
Domain=[BLUEFINGER] OS=[Windows Server 2003 3790 Service Pack 1] Server=[Windows Server 2003 5.2]
smb: \> ls

  .                                   D        0  Sun Aug  7 16:06:52 2005
  ..                                  D        0  Sun Aug  7 16:06:52 2005
  Applications                        D        0  Sun Aug  7 16:06:52 2005
  Common                              D        0  Sun Aug  7 13:54:40 2005
  Consultants                         D        0  Sun Aug  7 14:01:50 2005
  Directors                           D        0  Sun Aug  7 14:06:19 2005
  Engineering                         D        0  Sun Aug  7 13:57:48 2005
  Finance                             D        0  Sun Aug  7 13:53:59 2005
  Management                          D        0  Sun Aug  7 10:37:01 2005
  Software Development                D        0  Sun Aug  7 13:58:54 2005
  Version                             D        0  Sun Aug  7 14:04:56 2005
  WinTA Data                          D        0  Sun Aug  7 14:10:29 2005
                44955 blocks of size 2097152. 25934 blocks available
smb: \> cd Consultants
smb: \Consultants\> ls
  .                                   D        0  Wed Aug  3 11:51:57 2005
  ..                                  D        0  Sun Aug  7 12:19:03 2005
  NO                                  D        0  Thu Nov 18 10:35:49 2004
  EEZ Course                          D        0  Wed Mar 23 13:48:54 2005
  BlueFinger Software Library         D        0  Tue Jul  5 13:39:32 2005
  IM                                  D        0  Wed Aug  3 13:19:30 2005
                55995 blocks of size 1048576. 9499 blocks available

smb: \Consultants\> exit

Great ! So now...

[root@charles-compaq gbb_domain]# mount.cifs //exchsvr/dfs /mnt/dfs/ -o user=tchiverton,domain=BLUEFINGER
Password:
[root@charles-compaq gbb_domain]# ls /mnt/dfs/

Applications  Consultants  Engineering  Management            Version
Common        Directors    Finance      Software Development  WinTA Data
[root@charles-compaq gbb_domain]# ls /mnt/dfs/Consultants/
Applications  Consultants  Engineering  Management            Version
Common        Directors    Finance      Software Development  WinTA Data

[root@charles-compaq gbb_domain]#

Bah :-(

Signature · 2 lines
Tom Chiverton 
Advanced ColdFusion Programmer
#1 lore raw
Quoted 10 lines · [email protected] (Thomas Chiverton) writes:

[root@charles-compaq gbb_domain]# mount.cifs //exchsvr/dfs /mnt/dfs/ -o user=tchiverton,domain=BLUEFINGER
Password:
[root@charles-compaq gbb_domain]# ls /mnt/dfs/

Applications  Consultants  Engineering  Management            Version
Common        Directors    Finance      Software Development  WinTA Data
[root@charles-compaq gbb_domain]# ls /mnt/dfs/Consultants/
Applications  Consultants  Engineering  Management            Version
Common        Directors    Finance      Software Development  WinTA Data

[root@charles-compaq gbb_domain]#

I've got the same issue but if I go down 2 or 3 levels, it works (ie continue to go down the same directory until you see a valid content). Even better, I can cd into non existing directories and it "works" (as in I still see the content of the mountpoint).
So using your example, to see the real content of Consultants, I would have to do this:
cd /mnt/dfs/Consultants/Consultants/Consultants
or this
cd /mnt/dfs/what/ev/Consultants

I haven't looked at the source yet so I'm not sure what's going on there...

Signature · 4 lines
Mathieu Chouquet-Stringer
    "Le disparu, si l'on vénère sa mémoire, est plus présent et
                 plus puissant que le vivant".
           -- Antoine de Saint-Exupéry, Citadelle --
#2 lore raw
Quoted 1 line · Mathieu Chouquet-Stringer

I've got the same issue but if I go down 2 or 3 levels, it works (ie

Well, *something* changes after 3 levels:

ls /mnt/dfs/Consultants/

Applications  Consultants  Engineering  Management            Version
Common        Directors    Finance      Software Development  WinTA Data

ls /mnt/dfs/Consultants/Consultants/

Applications  Consultants  Engineering  Management            Version
Common        Directors    Finance      Software Development  WinTA Data

ls /mnt/dfs/Consultants/Consultants/Consultants/
ls: reading directory /mnt/dfs/Consultants/Consultants/Consultants/: Object is remote

Signature · 2 lines
Tom Chiverton 
Advanced ColdFusion Programmer
#3 lore raw
Quoted 4 lines · Thomas Chiverton
Quoted 1 line · Mathieu Chouquet-Stringer

I've got the same issue but if I go down 2 or 3 levels, it works (ie

Well, *something* changes after 3 levels:

Anyone else ?
Should I be logging a bug at redhat instead of posting here ?

Signature · 2 lines
Tom Chiverton 
Advanced ColdFusion Programmer