diff options
author | Steve French <stfrench@microsoft.com> | 2019-03-13 02:40:07 -0500 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2019-03-14 19:32:36 -0500 |
commit | 31ba4331d571f501fb32ae072478787e77baf52a (patch) | |
tree | 19767fc3d3b0ae4ccb5245b3121d9dec3e585f39 /fs/cifs/cifs_ioctl.h | |
parent | 779ede040dd491acdb076ed9660d7160228949fd (diff) | |
download | linux-31ba4331d571f501fb32ae072478787e77baf52a.tar.bz2 |
SMB3: passthru query info doesn't check for SMB3 FSCTL passthru
The passthrough queries from user space tools like smbinfo can be either
SMB3 QUERY_INFO or SMB3 FSCTL, but we are not checking for the latter.
Temporarily we return EOPNOTSUPP for SMB3 FSCTL passthrough requests
but once compounding fsctls is fixed can enable.
Signed-off-by: Steve French <stfrench@microsoft.com>
Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
Diffstat (limited to 'fs/cifs/cifs_ioctl.h')
-rw-r--r-- | fs/cifs/cifs_ioctl.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/cifs/cifs_ioctl.h b/fs/cifs/cifs_ioctl.h index d8bce2f862de..086ddc5108af 100644 --- a/fs/cifs/cifs_ioctl.h +++ b/fs/cifs/cifs_ioctl.h @@ -43,6 +43,9 @@ struct smb_snapshot_array { /* snapshots[]; */ } __packed; +/* query_info flags */ +#define PASSTHRU_QUERY_INFO 0x00000000 +#define PASSTHRU_FSCTL 0x00000001 struct smb_query_info { __u32 info_type; __u32 file_info_class; |