[linux-cifs-client] Accessing CIFS DFS link for the first time

Steve French smfrench at gmail.com
Wed Oct 7 07:21:41 MDT 2009


On Wed, Oct 7, 2009 at 7:39 AM, Suresh Jayaraman <sjayaraman at suse.de> 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


More information about the linux-cifs-client mailing list