Accessing CIFS DFS link for the first time
Suresh Jayaraman <[email protected]>
| Newsgroups | gmane.linux.file-systems.cifs |
|---|---|
| Message-ID | <[email protected]> |
Hi all, The first access to a DFS link fails with -EREMOTE on a 2.6.27 based kernel (haven't tested on the recent one, but looking at the code it appears that the code in question has not changed). #mount -t cifs -o username=administrator, domain=foo.dom.com \\\\<ipaddress>\\DFSROOT /mnt/ (mount succeeds) #cd /mnt #cd DFS-test/ (DFS-test is a dfs link) # ls returns -EREMOTE Looking at the cFYI information and code, it looks like cifs_readdir() doesn't follow dfs links. Is it not supported, yet? Possible handle -EREMOTE from FindFirst() in initiate_cifs_search() and calling cifs_dfs_follow_mountpoint() would help fixing this? Are there more details involved that I'm missing? Thanks, -- Suresh Jayaraman