summaryrefslogtreecommitdiffstats
path: root/fs/cifs/smb2proto.h
diff options
context:
space:
mode:
authorShirish Pargaonkar <shirishpargaonkar@gmail.com>2017-06-22 23:51:31 -0400
committerSteve French <smfrench@gmail.com>2017-07-05 20:51:04 -0400
commit42c493c16f0d8d88e081560cc6375a683807c5ea (patch)
treef4bbaeb1c225f9dc4e44668a45d196c190fb3bd2 /fs/cifs/smb2proto.h
parentd38de3c6156b97e4900a345124d06b6ead2d6bee (diff)
cifs: prototype declaration and definition for smb 2 - 3 and cifsacl mount options
Add definition and declaration of function to get cifs acls when mounting with smb version 2 onwards to 3. Extend/Alter query info function to allocate and return security descriptors within the response. Not yet handling the error case when the size of security descriptors in response to query exceeds SMB2_MAX_BUFFER_SIZE. Signed-off-by: Shirish Pargaonkar <shirishpargaonkar@gmail.com> Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com> Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/smb2proto.h')
-rw-r--r--fs/cifs/smb2proto.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/cifs/smb2proto.h b/fs/cifs/smb2proto.h
index 6853454fc871..3595cd755147 100644
--- a/fs/cifs/smb2proto.h
+++ b/fs/cifs/smb2proto.h
@@ -135,6 +135,9 @@ extern int SMB2_flush(const unsigned int xid, struct cifs_tcon *tcon,
135extern int SMB2_query_info(const unsigned int xid, struct cifs_tcon *tcon, 135extern int SMB2_query_info(const unsigned int xid, struct cifs_tcon *tcon,
136 u64 persistent_file_id, u64 volatile_file_id, 136 u64 persistent_file_id, u64 volatile_file_id,
137 struct smb2_file_all_info *data); 137 struct smb2_file_all_info *data);
138extern int SMB2_query_acl(const unsigned int xid, struct cifs_tcon *tcon,
139 u64 persistent_file_id, u64 volatile_file_id,
140 void **data, unsigned int *plen);
138extern int SMB2_get_srv_num(const unsigned int xid, struct cifs_tcon *tcon, 141extern int SMB2_get_srv_num(const unsigned int xid, struct cifs_tcon *tcon,
139 u64 persistent_fid, u64 volatile_fid, 142 u64 persistent_fid, u64 volatile_fid,
140 __le64 *uniqueid); 143 __le64 *uniqueid);