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)
committerSteve Conklin <sconklin@canonical.com>
Thu, 2 Jun 2011 19:23:28 +0000 (14:23 -0500)
commit354325edc67914c09ec32ec228f7698e594df901
tree9e12d1dc78029edcd9363a56d85342cbf51091d4
parent5a8a2dfa9657809fef1879950c9af318650357f6
cifs: add fallback in is_path_accessible for old servers

BugLink: http://bugs.launchpad.net/bugs/788691

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: Steve Conklin <sconklin@canonical.com>
fs/cifs/connect.c