diff options
author | Pali Rohár <pali@kernel.org> | 2024-12-28 23:21:56 +0300 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2025-01-20 04:58:11 +0300 |
commit | 10e6fe53d90b550876bffc5847107c5372c01084 (patch) | |
tree | 1c41ae64d46bcb577ebd8d8422e198db72b7bcc9 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | e20a405fe4f240d94f1baaa0eaf816cbf16ffb60 (diff) | |
download | linux-10e6fe53d90b550876bffc5847107c5372c01084.tar.xz |
cifs: Do not attempt to call CIFSGetSrvInodeNumber() without CAP_INFOLEVEL_PASSTHRU
CIFSGetSrvInodeNumber() uses SMB_QUERY_FILE_INTERNAL_INFO (0x3ee) level
which is SMB PASSTHROUGH level (>= 0x03e8). SMB PASSTHROUGH levels are
supported only when server announce CAP_INFOLEVEL_PASSTHRU.
So add guard in cifs_query_file_info() function which is the only user of
CIFSGetSrvInodeNumber() function and returns -EOPNOTSUPP when server does
not announce CAP_INFOLEVEL_PASSTHRU.
Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions