diff options
Diffstat (limited to 'fs/cifs/smb2proto.h')
-rw-r--r-- | fs/cifs/smb2proto.h | 14 |
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); |
49 | extern void smb2_echo_request(struct work_struct *work); | 49 | extern void smb2_echo_request(struct work_struct *work); |
50 | 50 | ||
51 | extern void move_smb2_info_to_cifs(FILE_ALL_INFO *dst, | ||
52 | struct smb2_file_all_info *src); | ||
51 | extern int smb2_query_path_info(const unsigned int xid, struct cifs_tcon *tcon, | 53 | extern 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, | |||
62 | extern int smb2_unlink(const unsigned int xid, struct cifs_tcon *tcon, | 64 | extern 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 | ||
67 | extern 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); | |||
77 | extern int SMB2_open(const unsigned int xid, struct cifs_tcon *tcon, | 85 | extern 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); | ||
81 | extern int SMB2_close(const unsigned int xid, struct cifs_tcon *tcon, | 90 | extern 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); |
83 | extern int SMB2_query_info(const unsigned int xid, struct cifs_tcon *tcon, | 92 | extern 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); |
95 | extern int SMB2_get_srv_num(const unsigned int xid, struct cifs_tcon *tcon, | ||
96 | u64 persistent_fid, u64 volatile_fid, | ||
97 | __le64 *uniqueid); | ||
86 | extern int SMB2_echo(struct TCP_Server_Info *server); | 98 | extern int SMB2_echo(struct TCP_Server_Info *server); |
87 | 99 | ||
88 | #endif /* _SMB2PROTO_H */ | 100 | #endif /* _SMB2PROTO_H */ |