diff options
author | Shyam Prasad N <sprasad@microsoft.com> | 2024-03-13 10:40:41 +0000 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2024-03-14 13:54:27 -0500 |
commit | 13c0a74747cb7fdadf58c5d3a7d52cfca2d51736 (patch) | |
tree | f2f4f9f640c08cbadc044a2fc89bccac22db4dce /fs/smb/client/cifsglob.h | |
parent | dc528770edb138e26a533f8a77de5c4db18ea7f3 (diff) | |
download | lwn-13c0a74747cb7fdadf58c5d3a7d52cfca2d51736.tar.gz lwn-13c0a74747cb7fdadf58c5d3a7d52cfca2d51736.zip |
cifs: make sure server interfaces are requested only for SMB3+
Some code paths for querying server interfaces make a false
assumption that it will only get called for SMB3+. Since this
function now can get called from a generic code paths, the correct
thing to do is to have specific handler for this functionality
per SMB dialect, and call this handler.
This change adds such a handler and implements this handler only
for SMB 3.0 and 3.1.1.
Cc: stable@vger.kernel.org
Cc: Jan Čermák <sairon@sairon.cz>
Reported-by: Paulo Alcantara <pc@manguebit.com>
Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/smb/client/cifsglob.h')
-rw-r--r-- | fs/smb/client/cifsglob.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/smb/client/cifsglob.h b/fs/smb/client/cifsglob.h index 8be62ed053a2..3da625d53235 100644 --- a/fs/smb/client/cifsglob.h +++ b/fs/smb/client/cifsglob.h @@ -355,6 +355,9 @@ struct smb_version_operations { /* informational QFS call */ void (*qfs_tcon)(const unsigned int, struct cifs_tcon *, struct cifs_sb_info *); + /* query for server interfaces */ + int (*query_server_interfaces)(const unsigned int, struct cifs_tcon *, + bool); /* check if a path is accessible or not */ int (*is_path_accessible)(const unsigned int, struct cifs_tcon *, struct cifs_sb_info *, const char *); |