Blame view
fs/cifs/cifsproto.h
23.3 KB
1da177e4c Linux-2.6.12-rc2 |
1 2 3 |
/* * fs/cifs/cifsproto.h * |
366781c19 [CIFS] DFS build ... |
4 |
* Copyright (c) International Business Machines Corp., 2002,2008 |
1da177e4c Linux-2.6.12-rc2 |
5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
* Author(s): Steve French (sfrench@us.ibm.com) * * This library is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation; either version 2.1 of the License, or * (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See * the GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this library; if not, write to the Free Software |
d38d8c74c [CIFS] whitespace... |
19 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
1da177e4c Linux-2.6.12-rc2 |
20 21 22 23 24 25 |
*/ #ifndef _CIFSPROTO_H #define _CIFSPROTO_H #include <linux/nls.h> struct statfs; |
8af189715 [CIFS] on reconne... |
26 |
struct smb_vol; |
bf5ea0e2f cifs: change sign... |
27 |
struct smb_rqst; |
1da177e4c Linux-2.6.12-rc2 |
28 29 30 31 32 33 34 35 36 37 38 |
/* ***************************************************************** * All Prototypes ***************************************************************** */ extern struct smb_hdr *cifs_buf_get(void); extern void cifs_buf_release(void *); extern struct smb_hdr *cifs_small_buf_get(void); extern void cifs_small_buf_release(void *); |
6d81ed1ec cifs: replace cod... |
39 |
extern void free_rsp_buf(int, void *); |
0496e02d8 cifs: turn smb_se... |
40 41 |
extern int smb_send(struct TCP_Server_Info *, struct smb_hdr *, unsigned int /* length */); |
6d5786a34 CIFS: Rename Get/... |
42 43 44 |
extern unsigned int _get_xid(void); extern void _free_xid(unsigned int); #define get_xid() \ |
b6b38f704 [CIFS] Neaten cER... |
45 |
({ \ |
6d5786a34 CIFS: Rename Get/... |
46 |
unsigned int __xid = _get_xid(); \ |
f96637be0 [CIFS] cifs: Rena... |
47 48 49 50 |
cifs_dbg(FYI, "CIFS VFS: in %s as Xid: %u with uid: %d ", \ __func__, __xid, \ from_kuid(&init_user_ns, current_fsuid())); \ |
b6b38f704 [CIFS] Neaten cER... |
51 52 |
__xid; \ }) |
6d5786a34 CIFS: Rename Get/... |
53 |
#define free_xid(curr_xid) \ |
b6b38f704 [CIFS] Neaten cER... |
54 |
do { \ |
6d5786a34 CIFS: Rename Get/... |
55 |
_free_xid(curr_xid); \ |
f96637be0 [CIFS] cifs: Rena... |
56 57 58 |
cifs_dbg(FYI, "CIFS VFS: leaving %s (xid = %u) rc = %d ", \ __func__, curr_xid, (int)rc); \ |
b6b38f704 [CIFS] Neaten cER... |
59 |
} while (0) |
4d79dba0e cifs: Add idmap k... |
60 61 |
extern int init_cifs_idmap(void); extern void exit_cifs_idmap(void); |
b74cb9a80 cifs: Create dedi... |
62 63 |
extern int init_cifs_spnego(void); extern void exit_cifs_spnego(void); |
7f57356b7 [CIFS] Remove cif... |
64 |
extern char *build_path_from_dentry(struct dentry *); |
6d3ea7e49 CIFS: Make use of... |
65 66 67 |
extern char *cifs_build_path_to_root(struct smb_vol *vol, struct cifs_sb_info *cifs_sb, struct cifs_tcon *tcon); |
1da177e4c Linux-2.6.12-rc2 |
68 |
extern char *build_wildcard_path_from_dentry(struct dentry *direntry); |
c6c00919a [CIFS] Rename co... |
69 70 71 |
extern char *cifs_compose_mount_options(const char *sb_mountdata, const char *fullpath, const struct dfs_info3_param *ref, char **devname); |
99ee4dbd7 [CIFS] Remove som... |
72 |
/* extern void renew_parental_timestamps(struct dentry *direntry);*/ |
a6827c184 cifs: add cifs_ca... |
73 74 |
extern struct mid_q_entry *AllocMidQEntry(const struct smb_hdr *smb_buffer, struct TCP_Server_Info *server); |
766fdbb57 cifs: add ability... |
75 |
extern void DeleteMidQEntry(struct mid_q_entry *midEntry); |
3c1bf7e48 CIFS: Enable sign... |
76 |
extern void cifs_delete_mid(struct mid_q_entry *mid); |
2dc7e1c03 CIFS: Make transp... |
77 |
extern void cifs_wake_up_task(struct mid_q_entry *mid); |
fec344e3f cifs: change cifs... |
78 79 80 81 |
extern int cifs_call_async(struct TCP_Server_Info *server, struct smb_rqst *rqst, mid_receive_t *receive, mid_callback_t *callback, void *cbdata, const int flags); |
96daf2b09 [CIFS] Rename thr... |
82 |
extern int SendReceive(const unsigned int /* xid */ , struct cifs_ses *, |
1da177e4c Linux-2.6.12-rc2 |
83 84 |
struct smb_hdr * /* input */ , struct smb_hdr * /* out */ , |
a891f0f89 CIFS: Extend cred... |
85 |
int * /* bytes returned */ , const int); |
96daf2b09 [CIFS] Rename thr... |
86 |
extern int SendReceiveNoRsp(const unsigned int xid, struct cifs_ses *ses, |
792af7b05 CIFS: Separate pr... |
87 |
char *in_buf, int flags); |
fec344e3f cifs: change cifs... |
88 89 90 91 |
extern struct mid_q_entry *cifs_setup_request(struct cifs_ses *, struct smb_rqst *); extern struct mid_q_entry *cifs_setup_async_request(struct TCP_Server_Info *, struct smb_rqst *); |
2c8f981d9 cifs: consolidate... |
92 93 |
extern int cifs_check_receive(struct mid_q_entry *mid, struct TCP_Server_Info *server, bool log_error); |
cb7e9eabb CIFS: Use multicr... |
94 95 96 |
extern int cifs_wait_mtu_credits(struct TCP_Server_Info *server, unsigned int size, unsigned int *num, unsigned int *credits); |
96daf2b09 [CIFS] Rename thr... |
97 |
extern int SendReceive2(const unsigned int /* xid */ , struct cifs_ses *, |
d38d8c74c [CIFS] whitespace... |
98 |
struct kvec *, int /* nvec to send */, |
133672efb [CIFS] Fix buffer... |
99 |
int * /* type of buf returned */ , const int flags); |
ad7a2926b [CIFS] reduce che... |
100 |
extern int SendReceiveBlockingLock(const unsigned int xid, |
96daf2b09 [CIFS] Rename thr... |
101 |
struct cifs_tcon *ptcon, |
ad7a2926b [CIFS] reduce che... |
102 103 104 |
struct smb_hdr *in_buf , struct smb_hdr *out_buf, int *bytes_returned); |
28ea5290d CIFS: Add SMB2 cr... |
105 |
extern int cifs_reconnect(struct TCP_Server_Info *server); |
373512ec5 Prepare for encry... |
106 |
extern int checkSMB(char *buf, unsigned int len, struct TCP_Server_Info *srvr); |
d4e4854fd CIFS: Separate pr... |
107 |
extern bool is_valid_oplock_break(char *, struct TCP_Server_Info *); |
3d3ea8e64 cifs: Add mount o... |
108 |
extern bool backup_cred(struct cifs_sb_info *); |
4b18f2a9c [CIFS] convert us... |
109 |
extern bool is_size_safe_to_change(struct cifsInodeInfo *, __u64 eof); |
72432ffcf CIFS: Implement c... |
110 111 |
extern void cifs_update_eof(struct cifsInodeInfo *cifsi, loff_t offset, unsigned int bytes_written); |
6508d904e cifs: have find_r... |
112 |
extern struct cifsFileInfo *find_writable_file(struct cifsInodeInfo *, bool); |
6508d904e cifs: have find_r... |
113 |
extern struct cifsFileInfo *find_readable_file(struct cifsInodeInfo *, bool); |
92fc65a74 CIFS: Move readdi... |
114 |
extern unsigned int smbCalcSize(void *buf); |
1da177e4c Linux-2.6.12-rc2 |
115 |
extern int decode_negTokenInit(unsigned char *security_blob, int length, |
26efa0bac cifs: have decode... |
116 |
struct TCP_Server_Info *server); |
67b7626a0 CIFS: Make cifs_c... |
117 |
extern int cifs_convert_address(struct sockaddr *dst, const char *src, int len); |
b979aaa17 cifs: get rid of ... |
118 |
extern void cifs_set_port(struct sockaddr *addr, const unsigned short int port); |
5ffef7bf1 CIFS: Separate pr... |
119 |
extern int map_smb_to_linux_error(char *buf, bool logErr); |
1da177e4c Linux-2.6.12-rc2 |
120 |
extern void header_assemble(struct smb_hdr *, char /* command */ , |
96daf2b09 [CIFS] Rename thr... |
121 |
const struct cifs_tcon *, int /* length of |
1982c344f [CIFS] Ensure tha... |
122 |
fixed section (word count) in two byte units */); |
5815449d1 [CIFS] SessionSet... |
123 |
extern int small_smb_init_no_tc(const int smb_cmd, const int wct, |
96daf2b09 [CIFS] Rename thr... |
124 |
struct cifs_ses *ses, |
50c2f7538 [CIFS] whitespace... |
125 |
void **request_buf); |
3f618223d move sectype to t... |
126 127 |
extern enum securityEnum select_sectype(struct TCP_Server_Info *server, enum securityEnum requested); |
58c45c58a CIFS: Move protoc... |
128 129 |
extern int CIFS_SessSetup(const unsigned int xid, struct cifs_ses *ses, const struct nls_table *nls_cp); |
07119a4df cifs: have cifs_N... |
130 |
extern struct timespec cifs_NTtimeToUnix(__le64 utc_nanoseconds_since_1601); |
1da177e4c Linux-2.6.12-rc2 |
131 |
extern u64 cifs_UnixTimeToNT(struct timespec); |
c4a2c08db cifs: make cnvrtD... |
132 133 |
extern struct timespec cnvrtDosUnixTm(__le16 le_date, __le16 le_time, int offset); |
c67236281 cifs: make cifs_s... |
134 |
extern void cifs_set_oplock_level(struct cifsInodeInfo *cinode, __u32 oplock); |
c11f1df50 cifs: Wait for wr... |
135 136 137 |
extern int cifs_get_writer(struct cifsInodeInfo *cinode); extern void cifs_put_writer(struct cifsInodeInfo *cinode); extern void cifs_done_oplock_break(struct cifsInodeInfo *cinode); |
d39a4f710 CIFS: Move brlock... |
138 139 140 |
extern int cifs_unlock_range(struct cifsFileInfo *cfile, struct file_lock *flock, const unsigned int xid); extern int cifs_push_mandatory_locks(struct cifsFileInfo *cfile); |
1bd5bbcb6 [CIFS] Legacy tim... |
141 |
|
fb1214e48 CIFS: Move open c... |
142 143 144 145 |
extern struct cifsFileInfo *cifs_new_fileinfo(struct cifs_fid *fid, struct file *file, struct tcon_link *tlink, __u32 oplock); |
6d5786a34 CIFS: Rename Get/... |
146 147 148 149 |
extern int cifs_posix_open(char *full_path, struct inode **inode, struct super_block *sb, int mode, unsigned int f_flags, __u32 *oplock, __u16 *netfid, unsigned int xid); |
4065c802d cifs: fix noserve... |
150 |
void cifs_fill_uniqueid(struct super_block *sb, struct cifs_fattr *fattr); |
cc0bad755 cifs: add new cif... |
151 152 153 |
extern void cifs_unix_basic_to_fattr(struct cifs_fattr *fattr, FILE_UNIX_BASIC_INFO *info, struct cifs_sb_info *cifs_sb); |
c052e2b42 cifs: obtain file... |
154 155 |
extern void cifs_dir_info_to_fattr(struct cifs_fattr *, FILE_DIRECTORY_INFO *, struct cifs_sb_info *); |
cc0bad755 cifs: add new cif... |
156 |
extern void cifs_fattr_to_inode(struct inode *inode, struct cifs_fattr *fattr); |
cc0bad755 cifs: add new cif... |
157 158 |
extern struct inode *cifs_iget(struct super_block *sb, struct cifs_fattr *fattr); |
1208ef1f7 CIFS: Move query ... |
159 160 |
extern int cifs_get_inode_info(struct inode **inode, const char *full_path, FILE_ALL_INFO *data, struct super_block *sb, |
42eacf9e5 [CIFS] Fix cifsac... |
161 |
int xid, const struct cifs_fid *fid); |
1da177e4c Linux-2.6.12-rc2 |
162 163 |
extern int cifs_get_inode_info_unix(struct inode **pinode, const unsigned char *search_path, |
6d5786a34 CIFS: Rename Get/... |
164 |
struct super_block *sb, unsigned int xid); |
ed6875e0d CIFS: Move unlink... |
165 166 167 168 169 |
extern int cifs_set_file_info(struct inode *inode, struct iattr *attrs, unsigned int xid, char *full_path, __u32 dosattr); extern int cifs_rename_pending_delete(const char *full_path, struct dentry *dentry, const unsigned int xid); |
987b21d7d cifs: Percolate e... |
170 |
extern int cifs_acl_to_fattr(struct cifs_sb_info *cifs_sb, |
0b8f18e35 cifs: convert cif... |
171 |
struct cifs_fattr *fattr, struct inode *inode, |
42eacf9e5 [CIFS] Fix cifsac... |
172 |
const char *path, const struct cifs_fid *pfid); |
a5ff37696 cifs: Call id to ... |
173 |
extern int id_mode_to_cifs_acl(struct inode *inode, const char *path, __u64, |
8abf2775d cifs: Use kuids a... |
174 |
kuid_t, kgid_t); |
fbeba8bb1 cifs: Handle exte... |
175 176 |
extern struct cifs_ntsd *get_cifs_acl(struct cifs_sb_info *, struct inode *, const char *, u32 *); |
42eacf9e5 [CIFS] Fix cifsac... |
177 178 |
extern struct cifs_ntsd *get_cifs_acl_by_fid(struct cifs_sb_info *, const struct cifs_fid *, u32 *); |
b73b9a4ba [CIFS] Allow to s... |
179 |
extern int set_cifs_acl(struct cifs_ntsd *, __u32, struct inode *, |
a5ff37696 cifs: Call id to ... |
180 |
const char *, int); |
953f86813 [CIFS] Don't requ... |
181 |
|
e28bc5b1f cifs: add cifs_as... |
182 183 |
extern void dequeue_mid(struct mid_q_entry *mid, bool malformed); extern int cifs_read_from_socket(struct TCP_Server_Info *server, char *buf, |
71335664c cifs: don't bothe... |
184 185 186 |
unsigned int to_read); extern int cifs_read_page_from_socket(struct TCP_Server_Info *server, struct page *page, unsigned int to_read); |
4214ebf46 Fix memory leaks ... |
187 |
extern int cifs_setup_cifs_sb(struct smb_vol *pvolume_info, |
724d9f1cf CIFS: Simplify mo... |
188 189 |
struct cifs_sb_info *cifs_sb); extern int cifs_match_super(struct super_block *, void *); |
f9e59bcba cifs: have cifs_c... |
190 |
extern void cifs_cleanup_volume_info(struct smb_vol *pvolume_info); |
04db79b01 cifs: factor smb_... |
191 192 |
extern struct smb_vol *cifs_get_volume_info(char *mount_data, const char *devname); |
2c6292ae4 cifs: don't pass ... |
193 |
extern int cifs_mount(struct cifs_sb_info *, struct smb_vol *); |
2a9b99516 sanitize cifs_umo... |
194 |
extern void cifs_umount(struct cifs_sb_info *); |
aa24d1e96 CIFS: Process rec... |
195 |
extern void cifs_mark_open_files_invalid(struct cifs_tcon *tcon); |
579f90532 CIFS: Check for m... |
196 197 198 |
extern bool cifs_find_lock_conflict(struct cifsFileInfo *cfile, __u64 offset, __u64 length, __u8 type, struct cifsLockInfo **conf_lock, |
081c0414d CIFS: Do not perm... |
199 |
int rw_check); |
233839b1d CIFS: Fix fast le... |
200 201 202 203 204 205 206 |
extern void cifs_add_pending_open(struct cifs_fid *fid, struct tcon_link *tlink, struct cifs_pending_open *open); extern void cifs_add_pending_open_locked(struct cifs_fid *fid, struct tcon_link *tlink, struct cifs_pending_open *open); extern void cifs_del_pending_open(struct cifs_pending_open *open); |
815465c4d cifs: clean up ca... |
207 208 |
#if IS_ENABLED(CONFIG_CIFS_DFS_UPCALL) |
78d31a3a8 cifs: timeout dfs... |
209 |
extern void cifs_dfs_release_automount_timer(void); |
815465c4d cifs: clean up ca... |
210 211 212 |
#else /* ! IS_ENABLED(CONFIG_CIFS_DFS_UPCALL) */ #define cifs_dfs_release_automount_timer() do { } while (0) #endif /* ! IS_ENABLED(CONFIG_CIFS_DFS_UPCALL) */ |
1da177e4c Linux-2.6.12-rc2 |
213 214 |
void cifs_proc_init(void); void cifs_proc_clean(void); |
f7ba7fe68 CIFS: Add brlock ... |
215 216 217 |
extern void cifs_move_llist(struct list_head *source, struct list_head *dest); extern void cifs_free_llist(struct list_head *llist); extern void cifs_del_lock_waiters(struct cifsLockInfo *lock); |
286170aa2 CIFS: Move protoc... |
218 219 |
extern int cifs_negotiate_protocol(const unsigned int xid, struct cifs_ses *ses); |
58c45c58a CIFS: Move protoc... |
220 221 |
extern int cifs_setup_session(const unsigned int xid, struct cifs_ses *ses, struct nls_table *nls_info); |
38d77c50b cifs: track the e... |
222 |
extern int cifs_enable_signing(struct TCP_Server_Info *server, bool mnt_sign_required); |
286170aa2 CIFS: Move protoc... |
223 |
extern int CIFSSMBNegotiate(const unsigned int xid, struct cifs_ses *ses); |
1da177e4c Linux-2.6.12-rc2 |
224 |
|
2e6e02ab6 CIFS: Move protoc... |
225 226 227 |
extern int CIFSTCon(const unsigned int xid, struct cifs_ses *ses, const char *tree, struct cifs_tcon *tcon, const struct nls_table *); |
1da177e4c Linux-2.6.12-rc2 |
228 |
|
6d5786a34 CIFS: Rename Get/... |
229 |
extern int CIFSFindFirst(const unsigned int xid, struct cifs_tcon *tcon, |
c052e2b42 cifs: obtain file... |
230 |
const char *searchName, struct cifs_sb_info *cifs_sb, |
2608bee74 cifs: Include bac... |
231 232 |
__u16 *searchHandle, __u16 search_flags, struct cifs_search_info *psrch_inf, |
c052e2b42 cifs: obtain file... |
233 |
bool msearch); |
1da177e4c Linux-2.6.12-rc2 |
234 |
|
6d5786a34 CIFS: Rename Get/... |
235 |
extern int CIFSFindNext(const unsigned int xid, struct cifs_tcon *tcon, |
2608bee74 cifs: Include bac... |
236 237 |
__u16 searchHandle, __u16 search_flags, struct cifs_search_info *psrch_inf); |
1da177e4c Linux-2.6.12-rc2 |
238 |
|
6d5786a34 CIFS: Rename Get/... |
239 |
extern int CIFSFindClose(const unsigned int xid, struct cifs_tcon *tcon, |
1da177e4c Linux-2.6.12-rc2 |
240 |
const __u16 search_handle); |
6d5786a34 CIFS: Rename Get/... |
241 |
extern int CIFSSMBQFileInfo(const unsigned int xid, struct cifs_tcon *tcon, |
bcd5357f4 cifs: add a CIFSS... |
242 |
u16 netfid, FILE_ALL_INFO *pFindData); |
6d5786a34 CIFS: Rename Get/... |
243 |
extern int CIFSSMBQPathInfo(const unsigned int xid, struct cifs_tcon *tcon, |
68889f269 CIFS: Move is_pat... |
244 245 246 |
const char *search_Name, FILE_ALL_INFO *data, int legacy /* whether to use old info level */, const struct nls_table *nls_codepage, int remap); |
6d5786a34 CIFS: Rename Get/... |
247 |
extern int SMBQueryInformation(const unsigned int xid, struct cifs_tcon *tcon, |
68889f269 CIFS: Move is_pat... |
248 249 |
const char *search_name, FILE_ALL_INFO *data, const struct nls_table *nls_codepage, int remap); |
1da177e4c Linux-2.6.12-rc2 |
250 |
|
6d5786a34 CIFS: Rename Get/... |
251 |
extern int CIFSSMBUnixQFileInfo(const unsigned int xid, struct cifs_tcon *tcon, |
c8634fd31 cifs: add a CIFSS... |
252 |
u16 netfid, FILE_UNIX_BASIC_INFO *pFindData); |
6d5786a34 CIFS: Rename Get/... |
253 |
extern int CIFSSMBUnixQPathInfo(const unsigned int xid, |
96daf2b09 [CIFS] Rename thr... |
254 |
struct cifs_tcon *tcon, |
1da177e4c Linux-2.6.12-rc2 |
255 |
const unsigned char *searchName, |
582d21e5e [CIFS] cleanup ol... |
256 |
FILE_UNIX_BASIC_INFO *pFindData, |
737b758c9 [PATCH] cifs: cha... |
257 |
const struct nls_table *nls_codepage, int remap); |
1da177e4c Linux-2.6.12-rc2 |
258 |
|
6d5786a34 CIFS: Rename Get/... |
259 |
extern int CIFSGetDFSRefer(const unsigned int xid, struct cifs_ses *ses, |
b669f33ca CIFS: Move gettin... |
260 261 262 263 |
const char *search_name, struct dfs_info3_param **target_nodes, unsigned int *num_of_nodes, const struct nls_table *nls_codepage, int remap); |
1da177e4c Linux-2.6.12-rc2 |
264 |
|
b669f33ca CIFS: Move gettin... |
265 |
extern int get_dfs_path(const unsigned int xid, struct cifs_ses *ses, |
d38d8c74c [CIFS] whitespace... |
266 |
const char *old_path, |
737b758c9 [PATCH] cifs: cha... |
267 |
const struct nls_table *nls_codepage, |
b669f33ca CIFS: Move gettin... |
268 269 |
unsigned int *num_referrals, struct dfs_info3_param **referrals, int remap); |
6d5786a34 CIFS: Rename Get/... |
270 |
extern void reset_cifs_unix_caps(unsigned int xid, struct cifs_tcon *tcon, |
2c6292ae4 cifs: don't pass ... |
271 272 |
struct cifs_sb_info *cifs_sb, struct smb_vol *vol); |
6d5786a34 CIFS: Rename Get/... |
273 |
extern int CIFSSMBQFSInfo(const unsigned int xid, struct cifs_tcon *tcon, |
737b758c9 [PATCH] cifs: cha... |
274 |
struct kstatfs *FSData); |
6d5786a34 CIFS: Rename Get/... |
275 |
extern int SMBOldQFSInfo(const unsigned int xid, struct cifs_tcon *tcon, |
209624388 [CIFS] Add suppor... |
276 |
struct kstatfs *FSData); |
6d5786a34 CIFS: Rename Get/... |
277 |
extern int CIFSSMBSetFSUnixInfo(const unsigned int xid, struct cifs_tcon *tcon, |
ac67055ef [CIFS] POSIX exte... |
278 |
__u64 cap); |
6d5786a34 CIFS: Rename Get/... |
279 |
extern int CIFSSMBQFSAttributeInfo(const unsigned int xid, |
96daf2b09 [CIFS] Rename thr... |
280 |
struct cifs_tcon *tcon); |
6d5786a34 CIFS: Rename Get/... |
281 282 283 |
extern int CIFSSMBQFSDeviceInfo(const unsigned int xid, struct cifs_tcon *tcon); extern int CIFSSMBQFSUnixInfo(const unsigned int xid, struct cifs_tcon *tcon); extern int CIFSSMBQFSPosixInfo(const unsigned int xid, struct cifs_tcon *tcon, |
737b758c9 [PATCH] cifs: cha... |
284 |
struct kstatfs *FSData); |
1da177e4c Linux-2.6.12-rc2 |
285 |
|
6d5786a34 CIFS: Rename Get/... |
286 |
extern int CIFSSMBSetPathInfo(const unsigned int xid, struct cifs_tcon *tcon, |
ad7a2926b [CIFS] reduce che... |
287 |
const char *fileName, const FILE_BASIC_INFO *data, |
737b758c9 [PATCH] cifs: cha... |
288 289 |
const struct nls_table *nls_codepage, int remap_special_chars); |
6d5786a34 CIFS: Rename Get/... |
290 |
extern int CIFSSMBSetFileInfo(const unsigned int xid, struct cifs_tcon *tcon, |
2dd2dfa06 Rename CIFSSMBSet... |
291 292 |
const FILE_BASIC_INFO *data, __u16 fid, __u32 pid_of_opener); |
6d5786a34 CIFS: Rename Get/... |
293 294 295 296 |
extern int CIFSSMBSetFileDisposition(const unsigned int xid, struct cifs_tcon *tcon, bool delete_file, __u16 fid, __u32 pid_of_opener); |
1da177e4c Linux-2.6.12-rc2 |
297 |
#if 0 |
6d5786a34 CIFS: Rename Get/... |
298 |
extern int CIFSSMBSetAttrLegacy(unsigned int xid, struct cifs_tcon *tcon, |
1da177e4c Linux-2.6.12-rc2 |
299 300 301 |
char *fileName, __u16 dos_attributes, const struct nls_table *nls_codepage); #endif /* possibly unneeded function */ |
6d5786a34 CIFS: Rename Get/... |
302 |
extern int CIFSSMBSetEOF(const unsigned int xid, struct cifs_tcon *tcon, |
d14334181 CIFS: Move set_fi... |
303 304 |
const char *file_name, __u64 size, struct cifs_sb_info *cifs_sb, bool set_allocation); |
6d5786a34 CIFS: Rename Get/... |
305 |
extern int CIFSSMBSetFileSize(const unsigned int xid, struct cifs_tcon *tcon, |
d14334181 CIFS: Move set_fi... |
306 307 |
struct cifsFileInfo *cfile, __u64 size, bool set_allocation); |
4e1e7fb9e bundle up Unix SE... |
308 309 310 311 312 313 |
struct cifs_unix_set_info_args { __u64 ctime; __u64 atime; __u64 mtime; __u64 mode; |
49418b2c2 cifs: Modify stru... |
314 315 |
kuid_t uid; kgid_t gid; |
4e1e7fb9e bundle up Unix SE... |
316 317 |
dev_t device; }; |
6d5786a34 CIFS: Rename Get/... |
318 319 |
extern int CIFSSMBUnixSetFileInfo(const unsigned int xid, struct cifs_tcon *tcon, |
3bbeeb3c9 cifs: add and use... |
320 321 |
const struct cifs_unix_set_info_args *args, u16 fid, u32 pid_of_opener); |
6d5786a34 CIFS: Rename Get/... |
322 |
extern int CIFSSMBUnixSetPathInfo(const unsigned int xid, |
ff691e969 CIFS: Simplify ci... |
323 |
struct cifs_tcon *tcon, const char *file_name, |
6d5786a34 CIFS: Rename Get/... |
324 325 |
const struct cifs_unix_set_info_args *args, const struct nls_table *nls_codepage, |
ff691e969 CIFS: Simplify ci... |
326 |
int remap); |
1da177e4c Linux-2.6.12-rc2 |
327 |
|
6d5786a34 CIFS: Rename Get/... |
328 |
extern int CIFSSMBMkDir(const unsigned int xid, struct cifs_tcon *tcon, |
f436720e9 CIFS: Separate pr... |
329 |
const char *name, struct cifs_sb_info *cifs_sb); |
6d5786a34 CIFS: Rename Get/... |
330 |
extern int CIFSSMBRmDir(const unsigned int xid, struct cifs_tcon *tcon, |
f958ca5d8 CIFS: Move rmdir ... |
331 |
const char *name, struct cifs_sb_info *cifs_sb); |
6d5786a34 CIFS: Rename Get/... |
332 |
extern int CIFSPOSIXDelFile(const unsigned int xid, struct cifs_tcon *tcon, |
2d785a50a [CIFS] Add suppor... |
333 334 335 |
const char *name, __u16 type, const struct nls_table *nls_codepage, int remap_special_chars); |
6d5786a34 CIFS: Rename Get/... |
336 |
extern int CIFSSMBDelFile(const unsigned int xid, struct cifs_tcon *tcon, |
ed6875e0d CIFS: Move unlink... |
337 |
const char *name, struct cifs_sb_info *cifs_sb); |
6d5786a34 CIFS: Rename Get/... |
338 |
extern int CIFSSMBRename(const unsigned int xid, struct cifs_tcon *tcon, |
8ceb98437 CIFS: Move rename... |
339 340 |
const char *from_name, const char *to_name, struct cifs_sb_info *cifs_sb); |
6d5786a34 CIFS: Rename Get/... |
341 342 343 344 |
extern int CIFSSMBRenameOpenFile(const unsigned int xid, struct cifs_tcon *tcon, int netfid, const char *target_name, const struct nls_table *nls_codepage, int remap_special_chars); |
d6e906f1b CIFS: Move hardli... |
345 346 347 |
extern int CIFSCreateHardLink(const unsigned int xid, struct cifs_tcon *tcon, const char *from_name, const char *to_name, struct cifs_sb_info *cifs_sb); |
6d5786a34 CIFS: Rename Get/... |
348 |
extern int CIFSUnixCreateHardLink(const unsigned int xid, |
96daf2b09 [CIFS] Rename thr... |
349 |
struct cifs_tcon *tcon, |
1da177e4c Linux-2.6.12-rc2 |
350 |
const char *fromName, const char *toName, |
d38d8c74c [CIFS] whitespace... |
351 |
const struct nls_table *nls_codepage, |
737b758c9 [PATCH] cifs: cha... |
352 |
int remap_special_chars); |
6d5786a34 CIFS: Rename Get/... |
353 |
extern int CIFSUnixCreateSymLink(const unsigned int xid, |
96daf2b09 [CIFS] Rename thr... |
354 |
struct cifs_tcon *tcon, |
1da177e4c Linux-2.6.12-rc2 |
355 |
const char *fromName, const char *toName, |
bc8ebdc4f Fix that several ... |
356 |
const struct nls_table *nls_codepage, int remap); |
6d5786a34 CIFS: Rename Get/... |
357 |
extern int CIFSSMBUnixQuerySymLink(const unsigned int xid, |
96daf2b09 [CIFS] Rename thr... |
358 |
struct cifs_tcon *tcon, |
460b96960 cifs: change CIFS... |
359 |
const unsigned char *searchName, char **syminfo, |
bc8ebdc4f Fix that several ... |
360 |
const struct nls_table *nls_codepage, int remap); |
d244bf2df CIFS: Implement f... |
361 362 363 |
extern int CIFSSMBQuerySymLink(const unsigned int xid, struct cifs_tcon *tcon, __u16 fid, char **symlinkinfo, const struct nls_table *nls_codepage); |
c7f508a99 Allow setting per... |
364 365 |
extern int CIFSSMB_set_compression(const unsigned int xid, struct cifs_tcon *tcon, __u16 fid); |
d81b8a40e CIFS: Cleanup cif... |
366 367 |
extern int CIFS_open(const unsigned int xid, struct cifs_open_parms *oparms, int *oplock, FILE_ALL_INFO *buf); |
6d5786a34 CIFS: Rename Get/... |
368 |
extern int SMBLegacyOpen(const unsigned int xid, struct cifs_tcon *tcon, |
a9d02ad49 [CIFS] Support fo... |
369 370 |
const char *fileName, const int disposition, const int access_flags, const int omode, |
8840dee9d [CIFS] minor chec... |
371 |
__u16 *netfid, int *pOplock, FILE_ALL_INFO *, |
a9d02ad49 [CIFS] Support fo... |
372 |
const struct nls_table *nls_codepage, int remap); |
6d5786a34 CIFS: Rename Get/... |
373 |
extern int CIFSPOSIXCreate(const unsigned int xid, struct cifs_tcon *tcon, |
8840dee9d [CIFS] minor chec... |
374 |
u32 posix_flags, __u64 mode, __u16 *netfid, |
2dd29d313 [CIFS] New CIFS P... |
375 376 |
FILE_UNIX_BASIC_INFO *pRetData, __u32 *pOplock, const char *name, |
d38d8c74c [CIFS] whitespace... |
377 |
const struct nls_table *nls_codepage, int remap); |
6d5786a34 CIFS: Rename Get/... |
378 |
extern int CIFSSMBClose(const unsigned int xid, struct cifs_tcon *tcon, |
1da177e4c Linux-2.6.12-rc2 |
379 |
const int smb_file_id); |
6d5786a34 CIFS: Rename Get/... |
380 |
extern int CIFSSMBFlush(const unsigned int xid, struct cifs_tcon *tcon, |
b298f2235 [CIFS] Send SMB f... |
381 |
const int smb_file_id); |
6d5786a34 CIFS: Rename Get/... |
382 |
extern int CIFSSMBRead(const unsigned int xid, struct cifs_io_parms *io_parms, |
d4ffff1fa CIFS: Add rwpidfo... |
383 |
unsigned int *nbytes, char **buf, |
d38d8c74c [CIFS] whitespace... |
384 |
int *return_buf_type); |
6d5786a34 CIFS: Rename Get/... |
385 |
extern int CIFSSMBWrite(const unsigned int xid, struct cifs_io_parms *io_parms, |
dbbab3257 cifs: get rid of ... |
386 |
unsigned int *nbytes, const char *buf); |
6d5786a34 CIFS: Rename Get/... |
387 |
extern int CIFSSMBWrite2(const unsigned int xid, struct cifs_io_parms *io_parms, |
ba9ad7257 CIFS: Move writep... |
388 |
unsigned int *nbytes, struct kvec *iov, const int nvec); |
6d5786a34 CIFS: Rename Get/... |
389 |
extern int CIFSGetSrvInodeNumber(const unsigned int xid, struct cifs_tcon *tcon, |
1208ef1f7 CIFS: Move query ... |
390 391 392 |
const char *search_name, __u64 *inode_number, const struct nls_table *nls_codepage, int remap); |
1da177e4c Linux-2.6.12-rc2 |
393 |
|
6d5786a34 CIFS: Rename Get/... |
394 395 396 397 398 |
extern int cifs_lockv(const unsigned int xid, struct cifs_tcon *tcon, const __u16 netfid, const __u8 lock_type, const __u32 num_unlock, const __u32 num_lock, LOCKING_ANDX_RANGE *buf); extern int CIFSSMBLock(const unsigned int xid, struct cifs_tcon *tcon, |
03776f451 CIFS: Simplify by... |
399 |
const __u16 netfid, const __u32 netpid, const __u64 len, |
1da177e4c Linux-2.6.12-rc2 |
400 401 |
const __u64 offset, const __u32 numUnlock, const __u32 numLock, const __u8 lockType, |
12fed00de CIFS: Fix oplock ... |
402 |
const bool waitFlag, const __u8 oplock_level); |
6d5786a34 CIFS: Rename Get/... |
403 |
extern int CIFSSMBPosixLock(const unsigned int xid, struct cifs_tcon *tcon, |
4f6bcec91 CIFS: Implement c... |
404 |
const __u16 smb_file_id, const __u32 netpid, |
c5fd363d7 cifs: move file_l... |
405 406 407 |
const loff_t start_offset, const __u64 len, struct file_lock *, const __u16 lock_type, const bool waitFlag); |
2e6e02ab6 CIFS: Move protoc... |
408 |
extern int CIFSSMBTDis(const unsigned int xid, struct cifs_tcon *tcon); |
766fdbb57 cifs: add ability... |
409 |
extern int CIFSSMBEcho(struct TCP_Server_Info *server); |
58c45c58a CIFS: Move protoc... |
410 |
extern int CIFSSMBLogoff(const unsigned int xid, struct cifs_ses *ses); |
1da177e4c Linux-2.6.12-rc2 |
411 |
|
96daf2b09 [CIFS] Rename thr... |
412 413 414 415 |
extern struct cifs_ses *sesInfoAlloc(void); extern void sesInfoFree(struct cifs_ses *); extern struct cifs_tcon *tconInfoAlloc(void); extern void tconInfoFree(struct cifs_tcon *); |
1da177e4c Linux-2.6.12-rc2 |
416 |
|
bf5ea0e2f cifs: change sign... |
417 418 |
extern int cifs_sign_rqst(struct smb_rqst *rqst, struct TCP_Server_Info *server, __u32 *pexpected_response_sequence_number); |
762a4206a cifs: rename cifs... |
419 |
extern int cifs_sign_smbv(struct kvec *iov, int n_vec, struct TCP_Server_Info *, |
84afc29b1 [CIFS] Readpages ... |
420 |
__u32 *); |
bf5ea0e2f cifs: change sign... |
421 422 |
extern int cifs_sign_smb(struct smb_hdr *, struct TCP_Server_Info *, __u32 *); extern int cifs_verify_signature(struct smb_rqst *rqst, |
21e733930 NTLM auth and sig... |
423 |
struct TCP_Server_Info *server, |
b609f06ac [CIFS] Fix packet... |
424 |
__u32 expected_sequence_number); |
9ef5992e4 cifs: Assume pass... |
425 426 427 |
extern int SMBNTencrypt(unsigned char *, unsigned char *, unsigned char *, const struct nls_table *); extern int setup_ntlm_response(struct cifs_ses *, const struct nls_table *); |
96daf2b09 [CIFS] Rename thr... |
428 |
extern int setup_ntlmv2_rsp(struct cifs_ses *, const struct nls_table *); |
d2b915210 NTLM auth and sig... |
429 |
extern void cifs_crypto_shash_release(struct TCP_Server_Info *); |
96daf2b09 [CIFS] Rename thr... |
430 |
extern int calc_seckey(struct cifs_ses *); |
373512ec5 Prepare for encry... |
431 432 |
extern int generate_smb30signingkey(struct cifs_ses *); extern int generate_smb311signingkey(struct cifs_ses *); |
d2b915210 NTLM auth and sig... |
433 |
|
7c7b25bc8 [CIFS] Support fo... |
434 |
#ifdef CONFIG_CIFS_WEAK_PW_HASH |
43988d768 [CIFS] Use ecb de... |
435 |
extern int calc_lanman_hash(const char *password, const char *cryptkey, |
4e53a3fb9 cifs: have calc_l... |
436 |
bool encrypt, char *lnm_session_key); |
7c7b25bc8 [CIFS] Support fo... |
437 |
#endif /* CIFS_WEAK_PW_HASH */ |
0eff0e267 Remove unused CIF... |
438 |
#ifdef CONFIG_CIFS_DNOTIFY_EXPERIMENTAL /* unused temporarily */ |
6d5786a34 CIFS: Rename Get/... |
439 |
extern int CIFSSMBNotify(const unsigned int xid, struct cifs_tcon *tcon, |
0eff0e267 Remove unused CIF... |
440 441 442 443 |
const int notify_subdirs, const __u16 netfid, __u32 filter, struct file *file, int multishot, const struct nls_table *nls_codepage); #endif /* was needed for dnotify, and will be needed for inotify when VFS fix */ |
6d5786a34 CIFS: Rename Get/... |
444 |
extern int CIFSSMBCopy(unsigned int xid, |
96daf2b09 [CIFS] Rename thr... |
445 |
struct cifs_tcon *source_tcon, |
1da177e4c Linux-2.6.12-rc2 |
446 447 448 |
const char *fromName, const __u16 target_tid, const char *toName, const int flags, |
50c2f7538 [CIFS] whitespace... |
449 |
const struct nls_table *nls_codepage, |
737b758c9 [PATCH] cifs: cha... |
450 |
int remap_special_chars); |
6d5786a34 CIFS: Rename Get/... |
451 |
extern ssize_t CIFSSMBQAllEAs(const unsigned int xid, struct cifs_tcon *tcon, |
31c0519f7 cifs: merge CIFSS... |
452 453 |
const unsigned char *searchName, const unsigned char *ea_name, char *EAData, |
737b758c9 [PATCH] cifs: cha... |
454 455 |
size_t bufsize, const struct nls_table *nls_codepage, int remap_special_chars); |
6d5786a34 CIFS: Rename Get/... |
456 |
extern int CIFSSMBSetEA(const unsigned int xid, struct cifs_tcon *tcon, |
d38d8c74c [CIFS] whitespace... |
457 458 |
const char *fileName, const char *ea_name, const void *ea_value, const __u16 ea_value_len, |
737b758c9 [PATCH] cifs: cha... |
459 |
const struct nls_table *nls_codepage, int remap_special_chars); |
6d5786a34 CIFS: Rename Get/... |
460 |
extern int CIFSSMBGetCIFSACL(const unsigned int xid, struct cifs_tcon *tcon, |
630f3f0c4 [CIFS] acl suppor... |
461 |
__u16 fid, struct cifs_ntsd **acl_inf, __u32 *buflen); |
6d5786a34 CIFS: Rename Get/... |
462 |
extern int CIFSSMBSetCIFSACL(const unsigned int, struct cifs_tcon *, __u16, |
a5ff37696 cifs: Call id to ... |
463 |
struct cifs_ntsd *, __u32, int); |
6d5786a34 CIFS: Rename Get/... |
464 |
extern int CIFSSMBGetPosixACL(const unsigned int xid, struct cifs_tcon *tcon, |
1da177e4c Linux-2.6.12-rc2 |
465 |
const unsigned char *searchName, |
d38d8c74c [CIFS] whitespace... |
466 |
char *acl_inf, const int buflen, const int acl_type, |
737b758c9 [PATCH] cifs: cha... |
467 |
const struct nls_table *nls_codepage, int remap_special_chars); |
6d5786a34 CIFS: Rename Get/... |
468 |
extern int CIFSSMBSetPosixACL(const unsigned int xid, struct cifs_tcon *tcon, |
1da177e4c Linux-2.6.12-rc2 |
469 470 |
const unsigned char *fileName, const char *local_acl, const int buflen, const int acl_type, |
737b758c9 [PATCH] cifs: cha... |
471 |
const struct nls_table *nls_codepage, int remap_special_chars); |
6d5786a34 CIFS: Rename Get/... |
472 |
extern int CIFSGetExtAttr(const unsigned int xid, struct cifs_tcon *tcon, |
8840dee9d [CIFS] minor chec... |
473 |
const int netfid, __u64 *pExtAttrBits, __u64 *pMask); |
ec06aedd4 cifs: clean up ha... |
474 |
extern void cifs_autodisable_serverino(struct cifs_sb_info *cifs_sb); |
cb084b1a9 cifs: Rename MF s... |
475 476 |
extern bool couldbe_mf_symlink(const struct cifs_fattr *fattr); extern int check_mf_symlink(unsigned int xid, struct cifs_tcon *tcon, |
750b8de6c cifs: We do not d... |
477 478 479 |
struct cifs_sb_info *cifs_sb, struct cifs_fattr *fattr, const unsigned char *path); |
ee2c92585 cifs: More crypto... |
480 |
extern int mdfour(unsigned char *, unsigned char *, int); |
9ef5992e4 cifs: Assume pass... |
481 482 |
extern int E_md4hash(const unsigned char *passwd, unsigned char *p16, const struct nls_table *codepage); |
43988d768 [CIFS] Use ecb de... |
483 |
extern int SMBencrypt(unsigned char *passwd, const unsigned char *c8, |
ee2c92585 cifs: More crypto... |
484 |
unsigned char *p24); |
c28c89fc4 cifs: add cifs_as... |
485 |
|
6993f74a5 cifs: add refcoun... |
486 |
void cifs_readdata_release(struct kref *refcount); |
e28bc5b1f cifs: add cifs_as... |
487 |
int cifs_async_readv(struct cifs_readdata *rdata); |
09a4707e7 CIFS: Add SMB2 su... |
488 |
int cifs_readv_receive(struct TCP_Server_Info *server, struct mid_q_entry *mid); |
e28bc5b1f cifs: add cifs_as... |
489 |
|
4a5c80d7b [CIFS] clean up p... |
490 491 |
int cifs_async_writev(struct cifs_writedata *wdata, void (*release)(struct kref *kref)); |
c2e876400 cifs: allow calle... |
492 493 494 |
void cifs_writev_complete(struct work_struct *work); struct cifs_writedata *cifs_writedata_alloc(unsigned int nr_pages, work_func_t complete); |
c28c89fc4 cifs: add cifs_as... |
495 |
void cifs_writedata_release(struct kref *refcount); |
b5be1a1c4 cifs: Rename and ... |
496 497 498 499 |
int cifs_query_mf_symlink(unsigned int xid, struct cifs_tcon *tcon, struct cifs_sb_info *cifs_sb, const unsigned char *path, char *pbuf, unsigned int *pbytes_read); |
cbb0aba6f cifs: Add create ... |
500 501 502 503 |
int cifs_create_mf_symlink(unsigned int xid, struct cifs_tcon *tcon, struct cifs_sb_info *cifs_sb, const unsigned char *path, char *pbuf, unsigned int *pbytes_written); |
16c568eff cifs: merge the h... |
504 505 506 |
int __cifs_calc_signature(struct smb_rqst *rqst, struct TCP_Server_Info *server, char *signature, struct shash_desc *shash); |
1da177e4c Linux-2.6.12-rc2 |
507 |
#endif /* _CIFSPROTO_H */ |