Re: Accessing CIFS DFS link for the first time
Steve French <[email protected]>
| Newsgroups | gmane.linux.file-systems.cifs |
|---|---|
| Message-ID | <[email protected]> |
On Wed, Oct 7, 2009 at 7:39 AM, Suresh Jayaraman <[email protected]> wrote: > 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? The lookup (QueryPathInfo) should get the EREMOTE before you even get to readdir > Are there more details involved that I'm missing? -- Thanks, Steve