Bug 31092
Summary: | Unable to mount DFS filesystems from Windows 2008 servers | ||
---|---|---|---|
Product: | File System | Reporter: | Sean Finney (seanius) |
Component: | CIFS | Assignee: | fs_cifs (fs_cifs) |
Status: | CLOSED CODE_FIX | ||
Severity: | normal | CC: | ernstp, florian |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | Subsystem: | ||
Regression: | No | Bisected commit-id: | |
Attachments: | Proposed fix |
Description
Sean Finney
2011-03-14 13:31:58 UTC
Oh and before I go sanitizing: this was seen both on 2.6.32 and 2.6.35. I took a look in git from 2.6.35..HEAD and it doesn't seem like anything relevant has changed since then. okay after looking at what's in dmesg, I'm not sure that sanitizing will really produce anything more than a more verbose version of what i stated above. If someone needs more detailed packet dumps, etc, please let me know how I can get it to you out-of-band, as the dumps contain sensitive data in them. one other thing I've noticed, is that in both cases, the client is sending a tree-disconnect request to which the server responds INVALID_TREE, though I don't think it's relevant to this bug. Created attachment 51172 [details]
Proposed fix
From the patch comments:
Windows 2008 CIFS servers do not always return PATH_NOT_COVERED when
attempting to access a DFS share. Therefore, when checking for remote
shares, unconditionally ask for a DFS referral for the UNC (w/out prepath)
before continuing with previous behavior of attempting to access the UNC +
prepath and checking for PATH_NOT_COVERED.
A patch referencing this bug report has been merged in v3.0-rc1: commit c1508ca23653245266e2e3ab69a8dad464f7a569 Author: Sean Finney <seanius@seanius.net> Date: Mon Apr 11 13:19:31 2011 +0000 cifs: Add support for mounting Windows 2008 DFS shares |