aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/smb2proto.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/cifs/smb2proto.h')
-rw-r--r--fs/cifs/smb2proto.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/fs/cifs/smb2proto.h b/fs/cifs/smb2proto.h
index f4ac72799f70..624d344e1a57 100644
--- a/fs/cifs/smb2proto.h
+++ b/fs/cifs/smb2proto.h
@@ -48,6 +48,8 @@ extern int smb2_setup_async_request(struct TCP_Server_Info *server,
48 struct mid_q_entry **ret_mid); 48 struct mid_q_entry **ret_mid);
49extern void smb2_echo_request(struct work_struct *work); 49extern void smb2_echo_request(struct work_struct *work);
50 50
51extern void move_smb2_info_to_cifs(FILE_ALL_INFO *dst,
52 struct smb2_file_all_info *src);
51extern int smb2_query_path_info(const unsigned int xid, struct cifs_tcon *tcon, 53extern int smb2_query_path_info(const unsigned int xid, struct cifs_tcon *tcon,
52 struct cifs_sb_info *cifs_sb, 54 struct cifs_sb_info *cifs_sb,
53 const char *full_path, FILE_ALL_INFO *data, 55 const char *full_path, FILE_ALL_INFO *data,
@@ -62,6 +64,12 @@ extern int smb2_rmdir(const unsigned int xid, struct cifs_tcon *tcon,
62extern int smb2_unlink(const unsigned int xid, struct cifs_tcon *tcon, 64extern int smb2_unlink(const unsigned int xid, struct cifs_tcon *tcon,
63 const char *name, struct cifs_sb_info *cifs_sb); 65 const char *name, struct cifs_sb_info *cifs_sb);
64 66
67extern int smb2_open_file(const unsigned int xid, struct cifs_tcon *tcon,
68 const char *full_path, int disposition,
69 int desired_access, int create_options,
70 struct cifs_fid *fid, __u32 *oplock,
71 FILE_ALL_INFO *buf, struct cifs_sb_info *cifs_sb);
72
65/* 73/*
66 * SMB2 Worker functions - most of protocol specific implementation details 74 * SMB2 Worker functions - most of protocol specific implementation details
67 * are contained within these calls. 75 * are contained within these calls.
@@ -77,12 +85,16 @@ extern int SMB2_tdis(const unsigned int xid, struct cifs_tcon *tcon);
77extern int SMB2_open(const unsigned int xid, struct cifs_tcon *tcon, 85extern int SMB2_open(const unsigned int xid, struct cifs_tcon *tcon,
78 __le16 *path, u64 *persistent_fid, u64 *volatile_fid, 86 __le16 *path, u64 *persistent_fid, u64 *volatile_fid,
79 __u32 desired_access, __u32 create_disposition, 87 __u32 desired_access, __u32 create_disposition,
80 __u32 file_attributes, __u32 create_options); 88 __u32 file_attributes, __u32 create_options,
89 struct smb2_file_all_info *buf);
81extern int SMB2_close(const unsigned int xid, struct cifs_tcon *tcon, 90extern int SMB2_close(const unsigned int xid, struct cifs_tcon *tcon,
82 u64 persistent_file_id, u64 volatile_file_id); 91 u64 persistent_file_id, u64 volatile_file_id);
83extern int SMB2_query_info(const unsigned int xid, struct cifs_tcon *tcon, 92extern int SMB2_query_info(const unsigned int xid, struct cifs_tcon *tcon,
84 u64 persistent_file_id, u64 volatile_file_id, 93 u64 persistent_file_id, u64 volatile_file_id,
85 struct smb2_file_all_info *data); 94 struct smb2_file_all_info *data);
95extern int SMB2_get_srv_num(const unsigned int xid, struct cifs_tcon *tcon,
96 u64 persistent_fid, u64 volatile_fid,
97 __le64 *uniqueid);
86extern int SMB2_echo(struct TCP_Server_Info *server); 98extern int SMB2_echo(struct TCP_Server_Info *server);
87 99
88#endif /* _SMB2PROTO_H */ 100#endif /* _SMB2PROTO_H */