]> 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)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Wed, 14 Mar 2012 14:57:58 +0000 (10:57 -0400)
commita1c6160164a5b217b6ebfc501ea430150e7acf95
tree83df10c27578d9c6fa7d86d15eb7df5550e9fc9f
parent3afd3f179ac0f1c07288f7346f986f3134378388
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: Paul Gortmaker <paul.gortmaker@windriver.com>
fs/cifs/connect.c