]> git.karo-electronics.de Git - karo-tx-linux.git/commit
cifs: add fallback in is_path_accessible for old servers
authorJeff Layton <jlayton@redhat.com>
Tue, 17 May 2011 10:40:30 +0000 (06:40 -0400)
committerAndi Kleen <ak@linux.intel.com>
Mon, 1 Aug 2011 20:54:48 +0000 (13:54 -0700)
commite68fd06bd319088e3fbeb40be74cdd444242cfd6
treebb08769c7f24ec14859b1dc4443ab05a389555f0
parent2dcdb613c69f16e6c22b05010a92c104b8a8deee
cifs: add fallback in is_path_accessible for old servers

commit 221d1d797202984cb874e3ed9f1388593d34ee22 upstream.

The is_path_accessible check uses a QPathInfo call, which isn't
supported by ancient win9x era servers. Fall back to an older
SMBQueryInfo call if it fails with the magic error codes.

Reported-and-Tested-by: Sandro Bonazzola <sandro.bonazzola@gmail.com>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
fs/cifs/connect.c