Hi,

On OES11sp1 I have a junction that I cannot follow.
Source : \\servername\Volume_1
Junction : \\servername\volume\Junction01
Target : \\serername\volume_2

Windows XP/ Win 7/ OSX can mount \\servername\Volume_1 and can follow (browse into) \junction\ and see/modify files on the target just fine.

However on opensuse it does not follow the junction, instead it generates an error message. For example the ls command says "ls: cannot access /mnt/dfs/Junction01/: Not a directory". I can mount the junction directly and not get any error messages.

Thus this mount is okay :

# mount -t cifs //n12/n12_home/Junction01 /mnt/dfs -o username=<username>


But this mount leads to failures :

# mount -t cifs //n12/n12_home /mnt/dfs -o username=<username>


For the failure case, if I try to do "ls /mnt/dfs/Junction01" dmesg says (after increasing the cifs log level to 3) :

[103449.692249] /home/abuild/rpmbuild/BUILD/kernel-desktop-3.7.10/linux-3.7/fs/cifs/inode.c: CIFS VFS: in cifs_revalidate_dentry_attr as Xid: 463 with uid: 0
[103449.692258] /home/abuild/rpmbuild/BUILD/kernel-desktop-3.7.10/linux-3.7/fs/cifs/inode.c: Update attributes: \Junction01 inode 0xffff880538bd0078 count 1 dentry: 0xffff8805265a22c0 d_time 0 jiffies 4398146192
[103449.692262] /home/abuild/rpmbuild/BUILD/kernel-desktop-3.7.10/linux-3.7/fs/cifs/inode.c: Getting info on \Junction01
[103449.692278] /home/abuild/rpmbuild/BUILD/kernel-desktop-3.7.10/linux-3.7/fs/cifs/transport.c: For smb_command 50
[103449.692281] /home/abuild/rpmbuild/BUILD/kernel-desktop-3.7.10/linux-3.7/fs/cifs/transport.c: Sending smb: smb_len=96
[103449.692984] /home/abuild/rpmbuild/BUILD/kernel-desktop-3.7.10/linux-3.7/fs/cifs/connect.c: RFC1002 header 0x23
[103449.693037] /home/abuild/rpmbuild/BUILD/kernel-desktop-3.7.10/linux-3.7/fs/cifs/smb1ops.c: invalid transact2 word count
[103449.693054] /home/abuild/rpmbuild/BUILD/kernel-desktop-3.7.10/linux-3.7/fs/cifs/transport.c: cifs_sync_mid_result: cmd=50 mid=31 state=4
[103449.693062] Status code returned 0xc0000257 NT_STATUS_PATH_NOT_COVERED
[103449.693067] /home/abuild/rpmbuild/BUILD/kernel-desktop-3.7.10/linux-3.7/fs/cifs/netmisc.c: Mapping smb error code 0xc0000257 to POSIX err -66
[103449.693072] /home/abuild/rpmbuild/BUILD/kernel-desktop-3.7.10/linux-3.7/fs/cifs/cifssmb.c: Send error in QPathInfo = -66
[103449.693074] /home/abuild/rpmbuild/BUILD/kernel-desktop-3.7.10/linux-3.7/fs/cifs/inode.c: creating fake fattr for DFS referral
[103449.693077] /home/abuild/rpmbuild/BUILD/kernel-desktop-3.7.10/linux-3.7/fs/cifs/inode.c: cifs_revalidate_cache: revalidating inode 126
[103449.693080] /home/abuild/rpmbuild/BUILD/kernel-desktop-3.7.10/linux-3.7/fs/cifs/inode.c: cifs_revalidate_cache: invalidating inode 126 mapping
[103449.693084] /home/abuild/rpmbuild/BUILD/kernel-desktop-3.7.10/linux-3.7/fs/cifs/inode.c: CIFS VFS: leaving cifs_revalidate_dentry_attr (xid = 463) rc = 0
[103449.693087] /home/abuild/rpmbuild/BUILD/kernel-desktop-3.7.10/linux-3.7/fs/cifs/cifs_dfs_ref.c: in cifs_dfs_d_automount
[103449.693089] /home/abuild/rpmbuild/BUILD/kernel-desktop-3.7.10/linux-3.7/fs/cifs/cifs_dfs_ref.c: in cifs_dfs_do_automount
[103449.693095] /home/abuild/rpmbuild/BUILD/kernel-desktop-3.7.10/linux-3.7/fs/cifs/cifs_dfs_ref.c: CIFS VFS: in cifs_dfs_do_automount as Xid: 464 with uid: 0
[103449.693099] /home/abuild/rpmbuild/BUILD/kernel-desktop-3.7.10/linux-3.7/fs/cifs/transport.c: For smb_command 117
[103449.693101] /home/abuild/rpmbuild/BUILD/kernel-desktop-3.7.10/linux-3.7/fs/cifs/transport.c: Sending smb: smb_len=90
[103449.693559] /home/abuild/rpmbuild/BUILD/kernel-desktop-3.7.10/linux-3.7/fs/cifs/connect.c: RFC1002 header 0x33
[103449.693574] /home/abuild/rpmbuild/BUILD/kernel-desktop-3.7.10/linux-3.7/fs/cifs/transport.c: cifs_sync_mid_result: cmd=117 mid=32 state=4
[103449.693578] /home/abuild/rpmbuild/BUILD/kernel-desktop-3.7.10/linux-3.7/fs/cifs/connect.c: Tcon rc = 0 ipc_tid = 220
[103449.693581] /home/abuild/rpmbuild/BUILD/kernel-desktop-3.7.10/linux-3.7/fs/cifs/cifssmb.c: In GetDFSRefer the path Junction01
[103449.693584] /home/abuild/rpmbuild/BUILD/kernel-desktop-3.7.10/linux-3.7/fs/cifs/transport.c: For smb_command 50
[103449.693586] /home/abuild/rpmbuild/BUILD/kernel-desktop-3.7.10/linux-3.7/fs/cifs/transport.c: Sending smb: smb_len=92
[103449.693995] /home/abuild/rpmbuild/BUILD/kernel-desktop-3.7.10/linux-3.7/fs/cifs/connect.c: RFC1002 header 0x23
[103449.694002] /home/abuild/rpmbuild/BUILD/kernel-desktop-3.7.10/linux-3.7/fs/cifs/smb1ops.c: invalid transact2 word count
[103449.694013] /home/abuild/rpmbuild/BUILD/kernel-desktop-3.7.10/linux-3.7/fs/cifs/transport.c: cifs_sync_mid_result: cmd=50 mid=33 state=4
[103449.694017] /home/abuild/rpmbuild/BUILD/kernel-desktop-3.7.10/linux-3.7/fs/cifs/netmisc.c: Mapping smb error code 0x30001 to POSIX err -20
[103449.694020] /home/abuild/rpmbuild/BUILD/kernel-desktop-3.7.10/linux-3.7/fs/cifs/cifssmb.c: Send error in GetDFSRefer = -20
[103449.694023] /home/abuild/rpmbuild/BUILD/kernel-desktop-3.7.10/linux-3.7/fs/cifs/cifs_dfs_ref.c: CIFS VFS: leaving cifs_dfs_do_automount (xid = 464) rc = -20
[103449.694025] /home/abuild/rpmbuild/BUILD/kernel-desktop-3.7.10/linux-3.7/fs/cifs/cifs_dfs_ref.c: leaving cifs_dfs_do_automount
[103449.694027] /home/abuild/rpmbuild/BUILD/kernel-desktop-3.7.10/linux-3.7/fs/cifs/cifs_dfs_ref.c: leaving cifs_dfs_d_automount [automount failed]

Anyone using ANY linux client to access OES DFS junctions? Got any clues for me?

Thanks,

Ron