diff options
| author | Enzo Matsumiya <ematsumiya@suse.de> | 2024-11-14 15:46:54 -0300 |
|---|---|---|
| committer | Enzo Matsumiya <ematsumiya@suse.de> | 2024-11-14 15:54:45 -0300 |
| commit | 7761b7e5370826850a1421d7ffc17b85f6c59a99 (patch) | |
| tree | d692c8a93c10dd1e5ebe4fa738e69ca07bdf0949 /fs/smb/client/readdir.c | |
| parent | 60eed99db98cb0138209a943d5b8c79af7f7481f (diff) | |
| download | linux-hw24.tar.gz linux-hw24.tar.bz2 linux-hw24.zip | |
smb: client: leave only string and id in smb_version_valueshw24
Remove all other values as they're the same for SMB 3.0+.
For SMB 2.1 handle the only 2 different values (.req_capabilities and
.create_lease_size) in-place.
Signed-off-by: Enzo Matsumiya <ematsumiya@suse.de>
Diffstat (limited to 'fs/smb/client/readdir.c')
| -rw-r--r-- | fs/smb/client/readdir.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/smb/client/readdir.c b/fs/smb/client/readdir.c index 5c0d002fe8cb..3f705e3aea1b 100644 --- a/fs/smb/client/readdir.c +++ b/fs/smb/client/readdir.c @@ -367,12 +367,11 @@ _initiate_cifs_search(const unsigned int xid, struct file *file, ffirst_retry: /* test for Unix extensions */ /* but now check for them on the share/mount not on the SMB session */ - /* if (cap_unix(tcon->ses) { */ if (tcon->unix_ext) cifsFile->srch_inf.info_level = SMB_FIND_FILE_UNIX; else if (tcon->posix_extensions) cifsFile->srch_inf.info_level = SMB_FIND_FILE_POSIX_INFO; - else if ((tcon->ses->capabilities & server->vals->cap_nt_find) == 0) + else if ((tcon->ses->capabilities & SMB2_NT_FIND) == 0) cifsFile->srch_inf.info_level = SMB_FIND_FILE_INFO_STANDARD; else if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_SERVER_INUM) cifsFile->srch_inf.info_level = SMB_FIND_FILE_ID_FULL_DIR_INFO; |
