diff options
Diffstat (limited to 'fs/cifs/cifsproto.h')
-rw-r--r-- | fs/cifs/cifsproto.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/fs/cifs/cifsproto.h b/fs/cifs/cifsproto.h index b35c55c3c8bb..f1f8225102f0 100644 --- a/fs/cifs/cifsproto.h +++ b/fs/cifs/cifsproto.h | |||
@@ -50,12 +50,12 @@ extern int SendReceive(const unsigned int /* xid */ , struct cifsSesInfo *, | |||
50 | extern int SendReceive2(const unsigned int /* xid */ , struct cifsSesInfo *, | 50 | extern int SendReceive2(const unsigned int /* xid */ , struct cifsSesInfo *, |
51 | struct kvec *, int /* nvec to send */, | 51 | struct kvec *, int /* nvec to send */, |
52 | int * /* type of buf returned */ , const int long_op); | 52 | int * /* type of buf returned */ , const int long_op); |
53 | extern int SendReceiveBlockingLock(const unsigned int /* xid */ , struct cifsTconInfo *, | 53 | extern int SendReceiveBlockingLock(const unsigned int /* xid */ , |
54 | struct cifsTconInfo *, | ||
54 | struct smb_hdr * /* input */ , | 55 | struct smb_hdr * /* input */ , |
55 | struct smb_hdr * /* out */ , | 56 | struct smb_hdr * /* out */ , |
56 | int * /* bytes returned */); | 57 | int * /* bytes returned */); |
57 | extern int checkSMBhdr(struct smb_hdr *smb, __u16 mid); | 58 | extern int checkSMB(struct smb_hdr *smb, __u16 mid, unsigned int length); |
58 | extern int checkSMB(struct smb_hdr *smb, __u16 mid, int length); | ||
59 | extern int is_valid_oplock_break(struct smb_hdr *smb, struct TCP_Server_Info *); | 59 | extern int is_valid_oplock_break(struct smb_hdr *smb, struct TCP_Server_Info *); |
60 | extern int is_size_safe_to_change(struct cifsInodeInfo *); | 60 | extern int is_size_safe_to_change(struct cifsInodeInfo *); |
61 | extern struct cifsFileInfo *find_writable_file(struct cifsInodeInfo *); | 61 | extern struct cifsFileInfo *find_writable_file(struct cifsInodeInfo *); |
@@ -80,6 +80,9 @@ extern struct oplock_q_entry * AllocOplockQEntry(struct inode *, u16, | |||
80 | extern void DeleteOplockQEntry(struct oplock_q_entry *); | 80 | extern void DeleteOplockQEntry(struct oplock_q_entry *); |
81 | extern struct timespec cifs_NTtimeToUnix(u64 /* utc nanoseconds since 1601 */ ); | 81 | extern struct timespec cifs_NTtimeToUnix(u64 /* utc nanoseconds since 1601 */ ); |
82 | extern u64 cifs_UnixTimeToNT(struct timespec); | 82 | extern u64 cifs_UnixTimeToNT(struct timespec); |
83 | extern __le64 cnvrtDosCifsTm(__u16 date, __u16 time); | ||
84 | extern struct timespec cnvrtDosUnixTm(__u16 date, __u16 time); | ||
85 | |||
83 | extern int cifs_get_inode_info(struct inode **pinode, | 86 | extern int cifs_get_inode_info(struct inode **pinode, |
84 | const unsigned char *search_path, | 87 | const unsigned char *search_path, |
85 | FILE_ALL_INFO * pfile_info, | 88 | FILE_ALL_INFO * pfile_info, |
@@ -116,6 +119,7 @@ extern int CIFSFindClose(const int, struct cifsTconInfo *tcon, | |||
116 | extern int CIFSSMBQPathInfo(const int xid, struct cifsTconInfo *tcon, | 119 | extern int CIFSSMBQPathInfo(const int xid, struct cifsTconInfo *tcon, |
117 | const unsigned char *searchName, | 120 | const unsigned char *searchName, |
118 | FILE_ALL_INFO * findData, | 121 | FILE_ALL_INFO * findData, |
122 | int legacy /* whether to use old info level */, | ||
119 | const struct nls_table *nls_codepage, int remap); | 123 | const struct nls_table *nls_codepage, int remap); |
120 | extern int SMBQueryInformation(const int xid, struct cifsTconInfo *tcon, | 124 | extern int SMBQueryInformation(const int xid, struct cifsTconInfo *tcon, |
121 | const unsigned char *searchName, | 125 | const unsigned char *searchName, |
@@ -279,8 +283,6 @@ extern void sesInfoFree(struct cifsSesInfo *); | |||
279 | extern struct cifsTconInfo *tconInfoAlloc(void); | 283 | extern struct cifsTconInfo *tconInfoAlloc(void); |
280 | extern void tconInfoFree(struct cifsTconInfo *); | 284 | extern void tconInfoFree(struct cifsTconInfo *); |
281 | 285 | ||
282 | extern int cifs_reconnect(struct TCP_Server_Info *server); | ||
283 | |||
284 | extern int cifs_sign_smb(struct smb_hdr *, struct TCP_Server_Info *,__u32 *); | 286 | extern int cifs_sign_smb(struct smb_hdr *, struct TCP_Server_Info *,__u32 *); |
285 | extern int cifs_sign_smb2(struct kvec *iov, int n_vec, struct TCP_Server_Info *, | 287 | extern int cifs_sign_smb2(struct kvec *iov, int n_vec, struct TCP_Server_Info *, |
286 | __u32 *); | 288 | __u32 *); |