cifs: add fallback in is_path_accessible for old servers
commitab198a46831bc6f2880ebf20426fd6e050250c9a
authorJeff Layton <jlayton@redhat.com>
Tue, 17 May 2011 10:40:30 +0000 (17 06:40 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 23 May 2011 18:23:00 +0000 (23 11:23 -0700)
tree0dd6c80356b4e330dcab729858a1534e47ea76fb
parentd198a406fdc0dcca5ee68602b0bd7dce43e526a7
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>
fs/cifs/connect.c