]> git.baikalelectronics.ru Git - kernel.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)
committerSteve French <sfrench@us.ibm.com>
Tue, 17 May 2011 18:51:14 +0000 (18:51 +0000)
commit6b6eaec8165c48c00f4334af2bc6e0b452096356
treee86b9b3b4b54806b769de8777add5b52e73cf00f
parent2103d8b9368b16b4b294bfed10255d4fe2c81cd7
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