cifs: add support for ioctl on directories
authorRonnie Sahlberg <lsahlber@redhat.com>
Tue, 16 Oct 2018 19:47:58 +0000 (05:47 +1000)
committerSteve French <stfrench@microsoft.com>
Wed, 24 Oct 2018 02:16:05 +0000 (21:16 -0500)
commit8d8b26e58432cb2840048b9f8aea286be6f75de5
tree0434bc93a5769be50353d7407a68c9d85dff0588
parent3b7960caceafdfc2cdfe2850487f8d091eb41144
cifs: add support for ioctl on directories

We do not call cifs_open_file() for directories and thus we do not have a
pSMBFile we can extract the FIDs from.

Solve this by instead always using a compounded open/query/close for
the passthrough ioctl.

Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifsglob.h
fs/cifs/ioctl.c
fs/cifs/smb2ops.c