cifs: add fallback in is_path_accessible for old servers
commit221d1d797202984cb874e3ed9f1388593d34ee22
authorJeff Layton <jlayton@redhat.com>
Tue, 17 May 2011 10:40:30 +0000 (17 06:40 -0400)
committerSteve French <sfrench@us.ibm.com>
Tue, 17 May 2011 18:51:14 +0000 (17 18:51 +0000)
treee86b9b3b4b54806b769de8777add5b52e73cf00f
parentc1d10d18c542278b7fbc413c289d3cb6219da6b3
cifs: add fallback in is_path_accessible for old servers

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.

Cc: stable@kernel.org
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>
fs/cifs/connect.c