summaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifsglob.h
diff options
context:
space:
mode:
authorRonnie Sahlberg <lsahlber@redhat.com>2018-10-16 21:47:58 +0200
committerSteve French <stfrench@microsoft.com>2018-10-24 04:16:05 +0200
commit8d8b26e58432cb2840048b9f8aea286be6f75de5 (patch)
tree0434bc93a5769be50353d7407a68c9d85dff0588 /fs/cifs/cifsglob.h
parentcifs: fallback to older infolevels on findfirst queryinfo retry (diff)
downloadlinux-8d8b26e58432cb2840048b9f8aea286be6f75de5.tar.xz
linux-8d8b26e58432cb2840048b9f8aea286be6f75de5.zip
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>
Diffstat (limited to 'fs/cifs/cifsglob.h')
-rw-r--r--fs/cifs/cifsglob.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h
index 73801254cc21..26f497bd97df 100644
--- a/fs/cifs/cifsglob.h
+++ b/fs/cifs/cifsglob.h
@@ -33,6 +33,7 @@
#define CIFS_MAGIC_NUMBER 0xFF534D42 /* the first four bytes of SMB PDUs */
+#define SMB_PATH_MAX 260
#define CIFS_PORT 445
#define RFC1001_PORT 139
@@ -467,7 +468,8 @@ struct smb_version_operations {
int (*next_header)(char *);
/* ioctl passthrough for query_info */
int (*ioctl_query_info)(const unsigned int xid,
- struct cifsFileInfo *file,
+ struct cifs_tcon *tcon,
+ __le16 *path, int is_dir,
unsigned long p);
};