1 | /*
|
---|
2 | Unix SMB/CIFS implementation.
|
---|
3 | VFS wrapper macros
|
---|
4 | Copyright (C) Stefan (metze) Metzmacher 2003
|
---|
5 | Copyright (C) Volker Lendecke 2009
|
---|
6 |
|
---|
7 | This program is free software; you can redistribute it and/or modify
|
---|
8 | it under the terms of the GNU General Public License as published by
|
---|
9 | the Free Software Foundation; either version 3 of the License, or
|
---|
10 | (at your option) any later version.
|
---|
11 |
|
---|
12 | This program is distributed in the hope that it will be useful,
|
---|
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
15 | GNU General Public License for more details.
|
---|
16 |
|
---|
17 | You should have received a copy of the GNU General Public License
|
---|
18 | along with this program. If not, see <http://www.gnu.org/licenses/>.
|
---|
19 | */
|
---|
20 |
|
---|
21 | #ifndef _VFS_MACROS_H
|
---|
22 | #define _VFS_MACROS_H
|
---|
23 |
|
---|
24 | /*
|
---|
25 | * These macros SMB_VFS_<FOO> (and SMB_VFS_NEXT_<FOO>) are our
|
---|
26 | * interface for the VFS.
|
---|
27 | *
|
---|
28 | * Don't access conn->vfs_handles[->next]->fns->* directly!
|
---|
29 | */
|
---|
30 |
|
---|
31 | /* Disk operations */
|
---|
32 | #define SMB_VFS_CONNECT(conn, service, user) \
|
---|
33 | smb_vfs_call_connect((conn)->vfs_handles, (service), (user))
|
---|
34 | #define SMB_VFS_NEXT_CONNECT(handle, service, user) \
|
---|
35 | smb_vfs_call_connect((handle)->next, (service), (user))
|
---|
36 |
|
---|
37 | #define SMB_VFS_DISCONNECT(conn) \
|
---|
38 | smb_vfs_call_disconnect((conn)->vfs_handles)
|
---|
39 | #define SMB_VFS_NEXT_DISCONNECT(handle) \
|
---|
40 | smb_vfs_call_disconnect((handle)->next)
|
---|
41 |
|
---|
42 | #define SMB_VFS_DISK_FREE(conn, path, bsize, dfree ,dsize) \
|
---|
43 | smb_vfs_call_disk_free((conn)->vfs_handles, (path), (bsize), (dfree), (dsize))
|
---|
44 | #define SMB_VFS_NEXT_DISK_FREE(handle, path, bsize, dfree ,dsize)\
|
---|
45 | smb_vfs_call_disk_free((handle)->next, (path), (bsize), (dfree), (dsize))
|
---|
46 |
|
---|
47 | #define SMB_VFS_GET_QUOTA(conn, path, qtype, id, qt) \
|
---|
48 | smb_vfs_call_get_quota((conn)->vfs_handles, (path), (qtype), (id), (qt))
|
---|
49 | #define SMB_VFS_NEXT_GET_QUOTA(handle, path, qtype, id, qt) \
|
---|
50 | smb_vfs_call_get_quota((handle)->next, (path), (qtype), (id), (qt))
|
---|
51 |
|
---|
52 | #define SMB_VFS_SET_QUOTA(conn, qtype, id, qt) \
|
---|
53 | smb_vfs_call_set_quota((conn)->vfs_handles, (qtype), (id), (qt))
|
---|
54 | #define SMB_VFS_NEXT_SET_QUOTA(handle, qtype, id, qt) \
|
---|
55 | smb_vfs_call_set_quota((handle)->next, (qtype), (id), (qt))
|
---|
56 |
|
---|
57 | #define SMB_VFS_GET_SHADOW_COPY_DATA(fsp,shadow_copy_data,labels) \
|
---|
58 | smb_vfs_call_get_shadow_copy_data((fsp)->conn->vfs_handles, (fsp), (shadow_copy_data), (labels))
|
---|
59 | #define SMB_VFS_NEXT_GET_SHADOW_COPY_DATA(handle, fsp, shadow_copy_data ,labels) \
|
---|
60 | smb_vfs_call_get_shadow_copy_data((handle)->next, (fsp), (shadow_copy_data), (labels))
|
---|
61 |
|
---|
62 | #define SMB_VFS_STATVFS(conn, path, statbuf) \
|
---|
63 | smb_vfs_call_statvfs((conn)->vfs_handles, (path), (statbuf))
|
---|
64 | #define SMB_VFS_NEXT_STATVFS(handle, path, statbuf) \
|
---|
65 | smb_vfs_call_statvfs((handle)->next, (path), (statbuf))
|
---|
66 |
|
---|
67 | #define SMB_VFS_FS_CAPABILITIES(conn, p_ts_res) \
|
---|
68 | smb_vfs_call_fs_capabilities((conn)->vfs_handles, (p_ts_res))
|
---|
69 | #define SMB_VFS_NEXT_FS_CAPABILITIES(handle, p_ts_res) \
|
---|
70 | smb_vfs_call_fs_capabilities((handle)->next, (p_ts_res))
|
---|
71 |
|
---|
72 | /*
|
---|
73 | * Note: that "struct dfs_GetDFSReferral *r"
|
---|
74 | * needs to be a valid TALLOC_CTX
|
---|
75 | */
|
---|
76 | #define SMB_VFS_GET_DFS_REFERRALS(conn, r) \
|
---|
77 | smb_vfs_call_get_dfs_referrals((conn)->vfs_handles, (r))
|
---|
78 | #define SMB_VFS_NEXT_GET_DFS_REFERRALS(handle, r) \
|
---|
79 | smb_vfs_call_get_dfs_referrals((handle)->next, (r))
|
---|
80 |
|
---|
81 | /* Directory operations */
|
---|
82 | #define SMB_VFS_OPENDIR(conn, fname, mask, attr) \
|
---|
83 | smb_vfs_call_opendir((conn)->vfs_handles, (fname), (mask), (attr))
|
---|
84 | #define SMB_VFS_NEXT_OPENDIR(handle, fname, mask, attr) \
|
---|
85 | smb_vfs_call_opendir((handle)->next, (fname), (mask), (attr))
|
---|
86 |
|
---|
87 | #define SMB_VFS_FDOPENDIR(fsp, mask, attr) \
|
---|
88 | smb_vfs_call_fdopendir((fsp)->conn->vfs_handles, (fsp), (mask), (attr))
|
---|
89 | #define SMB_VFS_NEXT_FDOPENDIR(handle, fsp, mask, attr) \
|
---|
90 | smb_vfs_call_fdopendir((handle)->next, (fsp), (mask), (attr))
|
---|
91 |
|
---|
92 | #define SMB_VFS_READDIR(conn, dirp, sbuf) \
|
---|
93 | smb_vfs_call_readdir((conn)->vfs_handles, (dirp), (sbuf))
|
---|
94 | #define SMB_VFS_NEXT_READDIR(handle, dirp, sbuf) \
|
---|
95 | smb_vfs_call_readdir((handle)->next, (dirp), (sbuf))
|
---|
96 |
|
---|
97 | #define SMB_VFS_SEEKDIR(conn, dirp, offset) \
|
---|
98 | smb_vfs_call_seekdir((conn)->vfs_handles, (dirp), (offset))
|
---|
99 | #define SMB_VFS_NEXT_SEEKDIR(handle, dirp, offset) \
|
---|
100 | smb_vfs_call_seekdir((handle)->next, (dirp), (offset))
|
---|
101 |
|
---|
102 | #define SMB_VFS_TELLDIR(conn, dirp) \
|
---|
103 | smb_vfs_call_telldir((conn)->vfs_handles, (dirp))
|
---|
104 | #define SMB_VFS_NEXT_TELLDIR(handle, dirp) \
|
---|
105 | smb_vfs_call_telldir((handle)->next, (dirp))
|
---|
106 |
|
---|
107 | #define SMB_VFS_REWINDDIR(conn, dirp) \
|
---|
108 | smb_vfs_call_rewind_dir((conn)->vfs_handles, (dirp))
|
---|
109 | #define SMB_VFS_NEXT_REWINDDIR(handle, dirp) \
|
---|
110 | smb_vfs_call_rewind_dir((handle)->next, (dirp))
|
---|
111 |
|
---|
112 | #define SMB_VFS_MKDIR(conn, path, mode) \
|
---|
113 | smb_vfs_call_mkdir((conn)->vfs_handles,(path), (mode))
|
---|
114 | #define SMB_VFS_NEXT_MKDIR(handle, path, mode) \
|
---|
115 | smb_vfs_call_mkdir((handle)->next,(path), (mode))
|
---|
116 |
|
---|
117 | #define SMB_VFS_RMDIR(conn, path) \
|
---|
118 | smb_vfs_call_rmdir((conn)->vfs_handles, (path))
|
---|
119 | #define SMB_VFS_NEXT_RMDIR(handle, path) \
|
---|
120 | smb_vfs_call_rmdir((handle)->next, (path))
|
---|
121 |
|
---|
122 | #define SMB_VFS_CLOSEDIR(conn, dir) \
|
---|
123 | smb_vfs_call_closedir((conn)->vfs_handles, dir)
|
---|
124 | #define SMB_VFS_NEXT_CLOSEDIR(handle, dir) \
|
---|
125 | smb_vfs_call_closedir((handle)->next, (dir))
|
---|
126 |
|
---|
127 | #define SMB_VFS_INIT_SEARCH_OP(conn, dirp) \
|
---|
128 | smb_vfs_call_init_search_op((conn)->vfs_handles, (dirp))
|
---|
129 | #define SMB_VFS_NEXT_INIT_SEARCH_OP(handle, dirp) \
|
---|
130 | smb_vfs_call_init_search_op((handle)->next, (dirp))
|
---|
131 |
|
---|
132 | /* File operations */
|
---|
133 | #define SMB_VFS_OPEN(conn, fname, fsp, flags, mode) \
|
---|
134 | smb_vfs_call_open((conn)->vfs_handles, (fname), (fsp), (flags), (mode))
|
---|
135 | #define SMB_VFS_NEXT_OPEN(handle, fname, fsp, flags, mode) \
|
---|
136 | smb_vfs_call_open((handle)->next, (fname), (fsp), (flags), (mode))
|
---|
137 |
|
---|
138 | #define SMB_VFS_CREATE_FILE(conn, req, root_dir_fid, smb_fname, access_mask, share_access, create_disposition, \
|
---|
139 | create_options, file_attributes, oplock_request, lease, allocation_size, private_flags, sd, ea_list, result, pinfo, in_context_blobs, out_context_blobs) \
|
---|
140 | smb_vfs_call_create_file((conn)->vfs_handles, (req), (root_dir_fid), (smb_fname), (access_mask), (share_access), (create_disposition), \
|
---|
141 | (create_options), (file_attributes), (oplock_request), (lease), (allocation_size), (private_flags), (sd), (ea_list), (result), (pinfo), \
|
---|
142 | (in_context_blobs), (out_context_blobs))
|
---|
143 | #define SMB_VFS_NEXT_CREATE_FILE(handle, req, root_dir_fid, smb_fname, access_mask, share_access, create_disposition, \
|
---|
144 | create_options, file_attributes, oplock_request, lease, allocation_size, private_flags, sd, ea_list, result, pinfo, in_context_blobs, out_context_blobs) \
|
---|
145 | smb_vfs_call_create_file((handle)->next, (req), (root_dir_fid), (smb_fname), (access_mask), (share_access), (create_disposition), \
|
---|
146 | (create_options), (file_attributes), (oplock_request), (lease), (allocation_size), (private_flags), (sd), (ea_list), (result), (pinfo), \
|
---|
147 | (in_context_blobs), (out_context_blobs))
|
---|
148 |
|
---|
149 | #define SMB_VFS_CLOSE(fsp) \
|
---|
150 | smb_vfs_call_close((fsp)->conn->vfs_handles, (fsp))
|
---|
151 | #define SMB_VFS_NEXT_CLOSE(handle, fsp) \
|
---|
152 | smb_vfs_call_close((handle)->next, (fsp))
|
---|
153 |
|
---|
154 | #define SMB_VFS_READ(fsp, data, n) \
|
---|
155 | smb_vfs_call_read((fsp)->conn->vfs_handles, (fsp), (data), (n))
|
---|
156 | #define SMB_VFS_NEXT_READ(handle, fsp, data, n) \
|
---|
157 | smb_vfs_call_read((handle)->next, (fsp), (data), (n))
|
---|
158 |
|
---|
159 | #define SMB_VFS_PREAD(fsp, data, n, off) \
|
---|
160 | smb_vfs_call_pread((fsp)->conn->vfs_handles, (fsp), (data), (n), (off))
|
---|
161 | #define SMB_VFS_NEXT_PREAD(handle, fsp, data, n, off) \
|
---|
162 | smb_vfs_call_pread((handle)->next, (fsp), (data), (n), (off))
|
---|
163 |
|
---|
164 | #define SMB_VFS_PREAD_SEND(mem_ctx, ev, fsp, data, n, off) \
|
---|
165 | smb_vfs_call_pread_send((fsp)->conn->vfs_handles, (mem_ctx), (ev), \
|
---|
166 | (fsp), (data), (n), (off))
|
---|
167 | #define SMB_VFS_NEXT_PREAD_SEND(mem_ctx, ev, handle, fsp, data, n, off) \
|
---|
168 | smb_vfs_call_pread_send((handle)->next, (mem_ctx), (ev), (fsp), \
|
---|
169 | (data), (n), (off))
|
---|
170 |
|
---|
171 | #define SMB_VFS_WRITE(fsp, data, n) \
|
---|
172 | smb_vfs_call_write((fsp)->conn->vfs_handles, (fsp), (data), (n))
|
---|
173 | #define SMB_VFS_NEXT_WRITE(handle, fsp, data, n) \
|
---|
174 | smb_vfs_call_write((handle)->next, (fsp), (data), (n))
|
---|
175 |
|
---|
176 | #define SMB_VFS_PWRITE(fsp, data, n, off) \
|
---|
177 | smb_vfs_call_pwrite((fsp)->conn->vfs_handles, (fsp), (data), (n), (off))
|
---|
178 | #define SMB_VFS_NEXT_PWRITE(handle, fsp, data, n, off) \
|
---|
179 | smb_vfs_call_pwrite((handle)->next, (fsp), (data), (n), (off))
|
---|
180 |
|
---|
181 | #define SMB_VFS_PWRITE_SEND(mem_ctx, ev, fsp, data, n, off) \
|
---|
182 | smb_vfs_call_pwrite_send((fsp)->conn->vfs_handles, (mem_ctx), (ev), \
|
---|
183 | (fsp), (data), (n), (off))
|
---|
184 | #define SMB_VFS_NEXT_PWRITE_SEND(mem_ctx, ev, handle, fsp, data, n, off) \
|
---|
185 | smb_vfs_call_pwrite_send((handle)->next, (mem_ctx), (ev), (fsp), \
|
---|
186 | (data), (n), (off))
|
---|
187 |
|
---|
188 | #define SMB_VFS_LSEEK(fsp, offset, whence) \
|
---|
189 | smb_vfs_call_lseek((fsp)->conn->vfs_handles, (fsp), (offset), (whence))
|
---|
190 | #define SMB_VFS_NEXT_LSEEK(handle, fsp, offset, whence) \
|
---|
191 | smb_vfs_call_lseek((handle)->next, (fsp), (offset), (whence))
|
---|
192 |
|
---|
193 | #define SMB_VFS_SENDFILE(tofd, fromfsp, header, offset, count) \
|
---|
194 | smb_vfs_call_sendfile((fromfsp)->conn->vfs_handles, (tofd), (fromfsp), (header), (offset), (count))
|
---|
195 | #define SMB_VFS_NEXT_SENDFILE(handle, tofd, fromfsp, header, offset, count) \
|
---|
196 | smb_vfs_call_sendfile((handle)->next, (tofd), (fromfsp), (header), (offset), (count))
|
---|
197 |
|
---|
198 | #define SMB_VFS_RECVFILE(fromfd, tofsp, offset, count) \
|
---|
199 | smb_vfs_call_recvfile((tofsp)->conn->vfs_handles, (fromfd), (tofsp), (offset), (count))
|
---|
200 | #define SMB_VFS_NEXT_RECVFILE(handle, fromfd, tofsp, offset, count) \
|
---|
201 | smb_vfs_call_recvfile((handle)->next, (fromfd), (tofsp), (offset), (count))
|
---|
202 |
|
---|
203 | #define SMB_VFS_RENAME(conn, old, new) \
|
---|
204 | smb_vfs_call_rename((conn)->vfs_handles, (old), (new))
|
---|
205 | #define SMB_VFS_NEXT_RENAME(handle, old, new) \
|
---|
206 | smb_vfs_call_rename((handle)->next, (old), (new))
|
---|
207 |
|
---|
208 | #define SMB_VFS_FSYNC(fsp) \
|
---|
209 | smb_vfs_call_fsync((fsp)->conn->vfs_handles, (fsp))
|
---|
210 | #define SMB_VFS_NEXT_FSYNC(handle, fsp) \
|
---|
211 | smb_vfs_call_fsync((handle)->next, (fsp))
|
---|
212 |
|
---|
213 | #define SMB_VFS_FSYNC_SEND(mem_ctx, ev, fsp) \
|
---|
214 | smb_vfs_call_fsync_send((fsp)->conn->vfs_handles, (mem_ctx), (ev), \
|
---|
215 | (fsp))
|
---|
216 | #define SMB_VFS_NEXT_FSYNC_SEND(mem_ctx, ev, handle, fsp) \
|
---|
217 | smb_vfs_call_fsync_send((handle)->next, (mem_ctx), (ev), (fsp))
|
---|
218 |
|
---|
219 | #define SMB_VFS_STAT(conn, smb_fname) \
|
---|
220 | smb_vfs_call_stat((conn)->vfs_handles, (smb_fname))
|
---|
221 | #define SMB_VFS_NEXT_STAT(handle, smb_fname) \
|
---|
222 | smb_vfs_call_stat((handle)->next, (smb_fname))
|
---|
223 |
|
---|
224 | #define SMB_VFS_FSTAT(fsp, sbuf) \
|
---|
225 | smb_vfs_call_fstat((fsp)->conn->vfs_handles, (fsp), (sbuf))
|
---|
226 | #define SMB_VFS_NEXT_FSTAT(handle, fsp, sbuf) \
|
---|
227 | smb_vfs_call_fstat((handle)->next, (fsp), (sbuf))
|
---|
228 |
|
---|
229 | #define SMB_VFS_LSTAT(conn, smb_fname) \
|
---|
230 | smb_vfs_call_lstat((conn)->vfs_handles, (smb_fname))
|
---|
231 | #define SMB_VFS_NEXT_LSTAT(handle, smb_fname) \
|
---|
232 | smb_vfs_call_lstat((handle)->next, (smb_fname))
|
---|
233 |
|
---|
234 | #define SMB_VFS_GET_ALLOC_SIZE(conn, fsp, sbuf) \
|
---|
235 | smb_vfs_call_get_alloc_size((conn)->vfs_handles, (fsp), (sbuf))
|
---|
236 | #define SMB_VFS_NEXT_GET_ALLOC_SIZE(conn, fsp, sbuf) \
|
---|
237 | smb_vfs_call_get_alloc_size((conn)->next, (fsp), (sbuf))
|
---|
238 |
|
---|
239 | #define SMB_VFS_UNLINK(conn, path) \
|
---|
240 | smb_vfs_call_unlink((conn)->vfs_handles, (path))
|
---|
241 | #define SMB_VFS_NEXT_UNLINK(handle, path) \
|
---|
242 | smb_vfs_call_unlink((handle)->next, (path))
|
---|
243 |
|
---|
244 | #define SMB_VFS_CHMOD(conn, path, mode) \
|
---|
245 | smb_vfs_call_chmod((conn)->vfs_handles, (path), (mode))
|
---|
246 | #define SMB_VFS_NEXT_CHMOD(handle, path, mode) \
|
---|
247 | smb_vfs_call_chmod((handle)->next, (path), (mode))
|
---|
248 |
|
---|
249 | #define SMB_VFS_FCHMOD(fsp, mode) \
|
---|
250 | smb_vfs_call_fchmod((fsp)->conn->vfs_handles, (fsp), (mode))
|
---|
251 | #define SMB_VFS_NEXT_FCHMOD(handle, fsp, mode) \
|
---|
252 | smb_vfs_call_fchmod((handle)->next, (fsp), (mode))
|
---|
253 |
|
---|
254 | #define SMB_VFS_CHOWN(conn, path, uid, gid) \
|
---|
255 | smb_vfs_call_chown((conn)->vfs_handles, (path), (uid), (gid))
|
---|
256 | #define SMB_VFS_NEXT_CHOWN(handle, path, uid, gid) \
|
---|
257 | smb_vfs_call_chown((handle)->next, (path), (uid), (gid))
|
---|
258 |
|
---|
259 | #define SMB_VFS_FCHOWN(fsp, uid, gid) \
|
---|
260 | smb_vfs_call_fchown((fsp)->conn->vfs_handles, (fsp), (uid), (gid))
|
---|
261 | #define SMB_VFS_NEXT_FCHOWN(handle, fsp, uid, gid) \
|
---|
262 | smb_vfs_call_fchown((handle)->next, (fsp), (uid), (gid))
|
---|
263 |
|
---|
264 | #define SMB_VFS_LCHOWN(conn, path, uid, gid) \
|
---|
265 | smb_vfs_call_lchown((conn)->vfs_handles, (path), (uid), (gid))
|
---|
266 | #define SMB_VFS_NEXT_LCHOWN(handle, path, uid, gid) \
|
---|
267 | smb_vfs_call_lchown((handle)->next, (path), (uid), (gid))
|
---|
268 |
|
---|
269 | #define SMB_VFS_CHDIR(conn, path) \
|
---|
270 | smb_vfs_call_chdir((conn)->vfs_handles, (path))
|
---|
271 | #define SMB_VFS_NEXT_CHDIR(handle, path) \
|
---|
272 | smb_vfs_call_chdir((handle)->next, (path))
|
---|
273 |
|
---|
274 | #define SMB_VFS_GETWD(conn) \
|
---|
275 | smb_vfs_call_getwd((conn)->vfs_handles)
|
---|
276 | #define SMB_VFS_NEXT_GETWD(handle) \
|
---|
277 | smb_vfs_call_getwd((handle)->next)
|
---|
278 |
|
---|
279 | #define SMB_VFS_NTIMES(conn, path, ts) \
|
---|
280 | smb_vfs_call_ntimes((conn)->vfs_handles, (path), (ts))
|
---|
281 | #define SMB_VFS_NEXT_NTIMES(handle, path, ts) \
|
---|
282 | smb_vfs_call_ntimes((handle)->next, (path), (ts))
|
---|
283 |
|
---|
284 | #define SMB_VFS_FTRUNCATE(fsp, offset) \
|
---|
285 | smb_vfs_call_ftruncate((fsp)->conn->vfs_handles, (fsp), (offset))
|
---|
286 | #define SMB_VFS_NEXT_FTRUNCATE(handle, fsp, offset) \
|
---|
287 | smb_vfs_call_ftruncate((handle)->next, (fsp), (offset))
|
---|
288 |
|
---|
289 | #define SMB_VFS_FALLOCATE(fsp, mode, offset, len) \
|
---|
290 | smb_vfs_call_fallocate((fsp)->conn->vfs_handles, (fsp), (mode), (offset), (len))
|
---|
291 | #define SMB_VFS_NEXT_FALLOCATE(handle, fsp, mode, offset, len) \
|
---|
292 | smb_vfs_call_fallocate((handle)->next, (fsp), (mode), (offset), (len))
|
---|
293 |
|
---|
294 | #define SMB_VFS_LOCK(fsp, op, offset, count, type) \
|
---|
295 | smb_vfs_call_lock((fsp)->conn->vfs_handles, (fsp), (op), (offset), (count), (type))
|
---|
296 | #define SMB_VFS_NEXT_LOCK(handle, fsp, op, offset, count, type) \
|
---|
297 | smb_vfs_call_lock((handle)->next, (fsp), (op), (offset), (count), (type))
|
---|
298 |
|
---|
299 | #define SMB_VFS_KERNEL_FLOCK(fsp, share_mode, access_mask) \
|
---|
300 | smb_vfs_call_kernel_flock((fsp)->conn->vfs_handles, (fsp), (share_mode), (access_mask))
|
---|
301 | #define SMB_VFS_NEXT_KERNEL_FLOCK(handle, fsp, share_mode, access_mask) \
|
---|
302 | smb_vfs_call_kernel_flock((handle)->next, (fsp), (share_mode), (access_mask))
|
---|
303 |
|
---|
304 | #define SMB_VFS_LINUX_SETLEASE(fsp, leasetype) \
|
---|
305 | smb_vfs_call_linux_setlease((fsp)->conn->vfs_handles, (fsp), (leasetype))
|
---|
306 | #define SMB_VFS_NEXT_LINUX_SETLEASE(handle, fsp, leasetype) \
|
---|
307 | smb_vfs_call_linux_setlease((handle)->next, (fsp), (leasetype))
|
---|
308 |
|
---|
309 | #define SMB_VFS_GETLOCK(fsp, poffset, pcount, ptype, ppid) \
|
---|
310 | smb_vfs_call_getlock((fsp)->conn->vfs_handles, (fsp), (poffset), (pcount), (ptype), (ppid))
|
---|
311 | #define SMB_VFS_NEXT_GETLOCK(handle, fsp, poffset, pcount, ptype, ppid) \
|
---|
312 | smb_vfs_call_getlock((handle)->next, (fsp), (poffset), (pcount), (ptype), (ppid))
|
---|
313 |
|
---|
314 | #define SMB_VFS_SYMLINK(conn, oldpath, newpath) \
|
---|
315 | smb_vfs_call_symlink((conn)->vfs_handles, (oldpath), (newpath))
|
---|
316 | #define SMB_VFS_NEXT_SYMLINK(handle, oldpath, newpath) \
|
---|
317 | smb_vfs_call_symlink((handle)->next, (oldpath), (newpath))
|
---|
318 |
|
---|
319 | #define SMB_VFS_READLINK(conn, path, buf, bufsiz) \
|
---|
320 | smb_vfs_call_readlink((conn)->vfs_handles, (path), (buf), (bufsiz))
|
---|
321 | #define SMB_VFS_NEXT_READLINK(handle, path, buf, bufsiz) \
|
---|
322 | smb_vfs_call_readlink((handle)->next, (path), (buf), (bufsiz))
|
---|
323 |
|
---|
324 | #define SMB_VFS_LINK(conn, oldpath, newpath) \
|
---|
325 | smb_vfs_call_link((conn)->vfs_handles, (oldpath), (newpath))
|
---|
326 | #define SMB_VFS_NEXT_LINK(handle, oldpath, newpath) \
|
---|
327 | smb_vfs_call_link((handle)->next, (oldpath), (newpath))
|
---|
328 |
|
---|
329 | #define SMB_VFS_MKNOD(conn, path, mode, dev) \
|
---|
330 | smb_vfs_call_mknod((conn)->vfs_handles, (path), (mode), (dev))
|
---|
331 | #define SMB_VFS_NEXT_MKNOD(handle, path, mode, dev) \
|
---|
332 | smb_vfs_call_mknod((handle)->next, (path), (mode), (dev))
|
---|
333 |
|
---|
334 | #define SMB_VFS_REALPATH(conn, path) \
|
---|
335 | smb_vfs_call_realpath((conn)->vfs_handles, (path))
|
---|
336 | #define SMB_VFS_NEXT_REALPATH(handle, path) \
|
---|
337 | smb_vfs_call_realpath((handle)->next, (path))
|
---|
338 |
|
---|
339 | #define SMB_VFS_CHFLAGS(conn, path, flags) \
|
---|
340 | smb_vfs_call_chflags((conn)->vfs_handles, (path), (flags))
|
---|
341 | #define SMB_VFS_NEXT_CHFLAGS(handle, path, flags) \
|
---|
342 | smb_vfs_call_chflags((handle)->next, (path), (flags))
|
---|
343 |
|
---|
344 | #define SMB_VFS_FILE_ID_CREATE(conn, sbuf) \
|
---|
345 | smb_vfs_call_file_id_create((conn)->vfs_handles, (sbuf))
|
---|
346 | #define SMB_VFS_NEXT_FILE_ID_CREATE(handle, sbuf) \
|
---|
347 | smb_vfs_call_file_id_create((handle)->next, (sbuf))
|
---|
348 |
|
---|
349 | #define SMB_VFS_STREAMINFO(conn, fsp, fname, mem_ctx, num_streams, streams) \
|
---|
350 | smb_vfs_call_streaminfo((conn)->vfs_handles, (fsp), (fname), (mem_ctx), (num_streams), (streams))
|
---|
351 | #define SMB_VFS_NEXT_STREAMINFO(handle, fsp, fname, mem_ctx, num_streams, streams) \
|
---|
352 | smb_vfs_call_streaminfo((handle)->next, (fsp), (fname), (mem_ctx), (num_streams), (streams))
|
---|
353 |
|
---|
354 | #define SMB_VFS_GET_REAL_FILENAME(conn, path, name, mem_ctx, found_name) \
|
---|
355 | smb_vfs_call_get_real_filename((conn)->vfs_handles, (path), (name), (mem_ctx), (found_name))
|
---|
356 | #define SMB_VFS_NEXT_GET_REAL_FILENAME(handle, path, name, mem_ctx, found_name) \
|
---|
357 | smb_vfs_call_get_real_filename((handle)->next, (path), (name), (mem_ctx), (found_name))
|
---|
358 |
|
---|
359 | #define SMB_VFS_CONNECTPATH(conn, fname) \
|
---|
360 | smb_vfs_call_connectpath((conn)->vfs_handles, (fname))
|
---|
361 | #define SMB_VFS_NEXT_CONNECTPATH(conn, fname) \
|
---|
362 | smb_vfs_call_connectpath((conn)->next, (fname))
|
---|
363 |
|
---|
364 | #define SMB_VFS_BRL_LOCK_WINDOWS(conn, br_lck, plock, blocking_lock) \
|
---|
365 | smb_vfs_call_brl_lock_windows((conn)->vfs_handles, (br_lck), (plock), (blocking_lock))
|
---|
366 | #define SMB_VFS_NEXT_BRL_LOCK_WINDOWS(handle, br_lck, plock, blocking_lock) \
|
---|
367 | smb_vfs_call_brl_lock_windows((handle)->next, (br_lck), (plock), (blocking_lock))
|
---|
368 |
|
---|
369 | #define SMB_VFS_BRL_UNLOCK_WINDOWS(conn, msg_ctx, br_lck, plock) \
|
---|
370 | smb_vfs_call_brl_unlock_windows((conn)->vfs_handles, (msg_ctx), (br_lck), (plock))
|
---|
371 | #define SMB_VFS_NEXT_BRL_UNLOCK_WINDOWS(handle, msg_ctx, br_lck, plock) \
|
---|
372 | smb_vfs_call_brl_unlock_windows((handle)->next, (msg_ctx), (br_lck), (plock))
|
---|
373 |
|
---|
374 | #define SMB_VFS_BRL_CANCEL_WINDOWS(conn, br_lck, plock) \
|
---|
375 | smb_vfs_call_brl_cancel_windows((conn)->vfs_handles, (br_lck), (plock))
|
---|
376 | #define SMB_VFS_NEXT_BRL_CANCEL_WINDOWS(handle, br_lck, plock) \
|
---|
377 | smb_vfs_call_brl_cancel_windows((handle)->next, (br_lck), (plock))
|
---|
378 |
|
---|
379 | #define SMB_VFS_STRICT_LOCK(conn, fsp, plock) \
|
---|
380 | smb_vfs_call_strict_lock((conn)->vfs_handles, (fsp), (plock))
|
---|
381 | #define SMB_VFS_NEXT_STRICT_LOCK(handle, fsp, plock) \
|
---|
382 | smb_vfs_call_strict_lock((handle)->next, (fsp), (plock))
|
---|
383 |
|
---|
384 | #define SMB_VFS_STRICT_UNLOCK(conn, fsp, plock) \
|
---|
385 | smb_vfs_call_strict_unlock((conn)->vfs_handles, (fsp), (plock))
|
---|
386 | #define SMB_VFS_NEXT_STRICT_UNLOCK(handle, fsp, plock) \
|
---|
387 | smb_vfs_call_strict_unlock((handle)->next, (fsp), (plock))
|
---|
388 |
|
---|
389 | #define SMB_VFS_TRANSLATE_NAME(conn, name, direction, mem_ctx, mapped_name) \
|
---|
390 | smb_vfs_call_translate_name((conn)->vfs_handles, (name), (direction), (mem_ctx), (mapped_name))
|
---|
391 | #define SMB_VFS_NEXT_TRANSLATE_NAME(handle, name, direction, mem_ctx, mapped_name) \
|
---|
392 | smb_vfs_call_translate_name((handle)->next, (name), (direction), (mem_ctx), (mapped_name))
|
---|
393 |
|
---|
394 | #define SMB_VFS_FSCTL(fsp, ctx, function, req_flags, in_data, in_len, out_data, max_out_len, out_len) \
|
---|
395 | smb_vfs_call_fsctl((fsp)->conn->vfs_handles, (fsp), (ctx), (function), (req_flags), (in_data), (in_len), (out_data), (max_out_len), (out_len))
|
---|
396 |
|
---|
397 | #define SMB_VFS_NEXT_FSCTL(handle, fsp, ctx, function, req_flags, in_data, in_len, out_data, max_out_len, out_len) \
|
---|
398 | smb_vfs_call_fsctl((handle)->next, (fsp), (ctx), (function), (req_flags), (in_data), (in_len), (out_data), (max_out_len), (out_len))
|
---|
399 |
|
---|
400 | #define SMB_VFS_COPY_CHUNK_SEND(conn, mem_ctx, ev, src_fsp, src_off, dest_fsp, dest_off, num) \
|
---|
401 | smb_vfs_call_copy_chunk_send((conn)->vfs_handles, (mem_ctx), (ev), (src_fsp), (src_off), (dest_fsp), (dest_off), (num))
|
---|
402 | #define SMB_VFS_NEXT_COPY_CHUNK_SEND(handle, mem_ctx, ev, src_fsp, src_off, dest_fsp, dest_off, num) \
|
---|
403 | smb_vfs_call_copy_chunk_send((handle)->next, (mem_ctx), (ev), (src_fsp), (src_off), (dest_fsp), (dest_off), (num))
|
---|
404 |
|
---|
405 | #define SMB_VFS_COPY_CHUNK_RECV(conn, req, copied) \
|
---|
406 | smb_vfs_call_copy_chunk_recv((conn)->vfs_handles, (req), (copied))
|
---|
407 | #define SMB_VFS_NEXT_COPY_CHUNK_RECV(handle, req, copied) \
|
---|
408 | smb_vfs_call_copy_chunk_recv((handle)->next, (req), (copied))
|
---|
409 |
|
---|
410 | #define SMB_VFS_GET_COMPRESSION(conn, mem_ctx, fsp, smb_fname, _compression_fmt) \
|
---|
411 | smb_vfs_call_get_compression((conn)->vfs_handles, (mem_ctx), (fsp), (smb_fname), (_compression_fmt))
|
---|
412 | #define SMB_VFS_NEXT_GET_COMPRESSION(handle, mem_ctx, fsp, smb_fname, _compression_fmt) \
|
---|
413 | smb_vfs_call_get_compression((handle)->next, (mem_ctx), (fsp), (smb_fname), (_compression_fmt))
|
---|
414 |
|
---|
415 | #define SMB_VFS_SET_COMPRESSION(conn, mem_ctx, fsp, compression_fmt) \
|
---|
416 | smb_vfs_call_set_compression((conn)->vfs_handles, (mem_ctx), (fsp), (compression_fmt))
|
---|
417 | #define SMB_VFS_NEXT_SET_COMPRESSION(handle, mem_ctx, fsp, compression_fmt) \
|
---|
418 | smb_vfs_call_set_compression((handle)->next, (mem_ctx), (fsp), (compression_fmt))
|
---|
419 |
|
---|
420 | #define SMB_VFS_SNAP_CHECK_PATH(conn, mem_ctx, service_path, base_volume) \
|
---|
421 | smb_vfs_call_snap_check_path((conn)->vfs_handles, (mem_ctx), (service_path), (base_volume))
|
---|
422 | #define SMB_VFS_NEXT_SNAP_CHECK_PATH(handle, mem_ctx, service_path, base_volume) \
|
---|
423 | smb_vfs_call_snap_check_path((handle)->next, (mem_ctx), (service_path), (base_volume))
|
---|
424 |
|
---|
425 | #define SMB_VFS_SNAP_CREATE(conn, mem_ctx, base_volume, tstamp, rw, base_path, snap_path) \
|
---|
426 | smb_vfs_call_snap_create((conn)->vfs_handles, (mem_ctx), (base_volume), (tstamp), (rw), (base_path), (snap_path))
|
---|
427 | #define SMB_VFS_NEXT_SNAP_CREATE(handle, mem_ctx, base_volume, tstamp, rw, base_path, snap_path) \
|
---|
428 | smb_vfs_call_snap_create((handle)->next, (mem_ctx), (base_volume), (tstamp), (rw), (base_path), (snap_path))
|
---|
429 |
|
---|
430 | #define SMB_VFS_SNAP_DELETE(conn, mem_ctx, base_path, snap_path) \
|
---|
431 | smb_vfs_call_snap_delete((conn)->vfs_handles, (mem_ctx), (base_path), (snap_path))
|
---|
432 | #define SMB_VFS_NEXT_SNAP_DELETE(handle, mem_ctx, base_path, snap_path) \
|
---|
433 | smb_vfs_call_snap_delete((handle)->next, (mem_ctx), (base_path), (snap_path))
|
---|
434 |
|
---|
435 | #define SMB_VFS_FGET_NT_ACL(fsp, security_info, mem_ctx, ppdesc) \
|
---|
436 | smb_vfs_call_fget_nt_acl((fsp)->conn->vfs_handles, (fsp), (security_info), (mem_ctx), (ppdesc))
|
---|
437 | #define SMB_VFS_NEXT_FGET_NT_ACL(handle, fsp, security_info, mem_ctx, ppdesc) \
|
---|
438 | smb_vfs_call_fget_nt_acl((handle)->next, (fsp), (security_info), (mem_ctx), (ppdesc))
|
---|
439 |
|
---|
440 | #define SMB_VFS_GET_NT_ACL(conn, name, security_info, mem_ctx, ppdesc) \
|
---|
441 | smb_vfs_call_get_nt_acl((conn)->vfs_handles, (name), (security_info), (mem_ctx), (ppdesc))
|
---|
442 | #define SMB_VFS_NEXT_GET_NT_ACL(handle, name, security_info, mem_ctx, ppdesc) \
|
---|
443 | smb_vfs_call_get_nt_acl((handle)->next, (name), (security_info), (mem_ctx), (ppdesc))
|
---|
444 |
|
---|
445 | #define SMB_VFS_AUDIT_FILE(conn, name, sacl, access_requested, access_denied) \
|
---|
446 | smb_vfs_call_audit_file((conn)->vfs_handles, (name), (sacl), (access_requested), (access_denied))
|
---|
447 | #define SMB_VFS_NEXT_AUDIT_FILE(handle, name, sacl, access_requested, access_denied) \
|
---|
448 | smb_vfs_call_audit_file((handle)->next, (name), (sacl), (access_requested), (access_denied))
|
---|
449 |
|
---|
450 | #define SMB_VFS_FSET_NT_ACL(fsp, security_info_sent, psd) \
|
---|
451 | smb_vfs_call_fset_nt_acl((fsp)->conn->vfs_handles, (fsp), (security_info_sent), (psd))
|
---|
452 | #define SMB_VFS_NEXT_FSET_NT_ACL(handle, fsp, security_info_sent, psd) \
|
---|
453 | smb_vfs_call_fset_nt_acl((handle)->next, (fsp), (security_info_sent), (psd))
|
---|
454 |
|
---|
455 | #define SMB_VFS_CHMOD_ACL(conn, name, mode) \
|
---|
456 | smb_vfs_call_chmod_acl((conn)->vfs_handles, (name), (mode))
|
---|
457 | #define SMB_VFS_NEXT_CHMOD_ACL(handle, name, mode) \
|
---|
458 | smb_vfs_call_chmod_acl((handle)->next, (name), (mode))
|
---|
459 |
|
---|
460 | #define SMB_VFS_FCHMOD_ACL(fsp, mode) \
|
---|
461 | smb_vfs_call_fchmod_acl((fsp)->conn->vfs_handles, (fsp), (mode))
|
---|
462 | #define SMB_VFS_NEXT_FCHMOD_ACL(handle, fsp, mode) \
|
---|
463 | smb_vfs_call_fchmod_acl((handle)->next, (fsp), (mode))
|
---|
464 |
|
---|
465 | #define SMB_VFS_SYS_ACL_GET_FILE(conn, path_p, type, mem_ctx) \
|
---|
466 | smb_vfs_call_sys_acl_get_file((conn)->vfs_handles, (path_p), (type), (mem_ctx))
|
---|
467 | #define SMB_VFS_NEXT_SYS_ACL_GET_FILE(handle, path_p, type, mem_ctx) \
|
---|
468 | smb_vfs_call_sys_acl_get_file((handle)->next, (path_p), (type), (mem_ctx))
|
---|
469 |
|
---|
470 | #define SMB_VFS_SYS_ACL_GET_FD(fsp, mem_ctx) \
|
---|
471 | smb_vfs_call_sys_acl_get_fd((fsp)->conn->vfs_handles, (fsp), (mem_ctx))
|
---|
472 | #define SMB_VFS_NEXT_SYS_ACL_GET_FD(handle, fsp, mem_ctx) \
|
---|
473 | smb_vfs_call_sys_acl_get_fd((handle)->next, (fsp), (mem_ctx))
|
---|
474 |
|
---|
475 | #define SMB_VFS_SYS_ACL_BLOB_GET_FILE(conn, path_p, mem_ctx, blob_description, blob) \
|
---|
476 | smb_vfs_call_sys_acl_blob_get_file((conn)->vfs_handles, (path_p), (mem_ctx), (blob_description), (blob))
|
---|
477 | #define SMB_VFS_NEXT_SYS_ACL_BLOB_GET_FILE(handle, path_p, mem_ctx, blob_description, blob) \
|
---|
478 | smb_vfs_call_sys_acl_blob_get_file((handle)->next, (path_p), (mem_ctx), (blob_description), (blob))
|
---|
479 |
|
---|
480 | #define SMB_VFS_SYS_ACL_BLOB_GET_FD(fsp, mem_ctx, blob_description, blob) \
|
---|
481 | smb_vfs_call_sys_acl_blob_get_fd((fsp)->conn->vfs_handles, (fsp), (mem_ctx), (blob_description), (blob))
|
---|
482 | #define SMB_VFS_NEXT_SYS_ACL_BLOB_GET_FD(handle, fsp, mem_ctx, blob_description, blob) \
|
---|
483 | smb_vfs_call_sys_acl_blob_get_fd((handle)->next, (fsp), mem_ctx, (blob_description), (blob))
|
---|
484 |
|
---|
485 | #define SMB_VFS_SYS_ACL_SET_FILE(conn, name, acltype, theacl) \
|
---|
486 | smb_vfs_call_sys_acl_set_file((conn)->vfs_handles, (name), (acltype), (theacl))
|
---|
487 | #define SMB_VFS_NEXT_SYS_ACL_SET_FILE(handle, name, acltype, theacl) \
|
---|
488 | smb_vfs_call_sys_acl_set_file((handle)->next, (name), (acltype), (theacl))
|
---|
489 |
|
---|
490 | #define SMB_VFS_SYS_ACL_SET_FD(fsp, theacl) \
|
---|
491 | smb_vfs_call_sys_acl_set_fd((fsp)->conn->vfs_handles, (fsp), (theacl))
|
---|
492 | #define SMB_VFS_NEXT_SYS_ACL_SET_FD(handle, fsp, theacl) \
|
---|
493 | smb_vfs_call_sys_acl_set_fd((handle)->next, (fsp), (theacl))
|
---|
494 |
|
---|
495 | #define SMB_VFS_SYS_ACL_DELETE_DEF_FILE(conn, path) \
|
---|
496 | smb_vfs_call_sys_acl_delete_def_file((conn)->vfs_handles, (path))
|
---|
497 | #define SMB_VFS_NEXT_SYS_ACL_DELETE_DEF_FILE(handle, path) \
|
---|
498 | smb_vfs_call_sys_acl_delete_def_file((handle)->next, (path))
|
---|
499 |
|
---|
500 | #define SMB_VFS_GETXATTR(conn,path,name,value,size) \
|
---|
501 | smb_vfs_call_getxattr((conn)->vfs_handles,(path),(name),(value),(size))
|
---|
502 | #define SMB_VFS_NEXT_GETXATTR(handle,path,name,value,size) \
|
---|
503 | smb_vfs_call_getxattr((handle)->next,(path),(name),(value),(size))
|
---|
504 |
|
---|
505 | #define SMB_VFS_FGETXATTR(fsp,name,value,size) \
|
---|
506 | smb_vfs_call_fgetxattr((fsp)->conn->vfs_handles, (fsp), (name),(value),(size))
|
---|
507 | #define SMB_VFS_NEXT_FGETXATTR(handle,fsp,name,value,size) \
|
---|
508 | smb_vfs_call_fgetxattr((handle)->next,(fsp),(name),(value),(size))
|
---|
509 |
|
---|
510 | #define SMB_VFS_LISTXATTR(conn,path,list,size) \
|
---|
511 | smb_vfs_call_listxattr((conn)->vfs_handles,(path),(list),(size))
|
---|
512 | #define SMB_VFS_NEXT_LISTXATTR(handle,path,list,size) \
|
---|
513 | smb_vfs_call_listxattr((handle)->next,(path),(list),(size))
|
---|
514 |
|
---|
515 | #define SMB_VFS_FLISTXATTR(fsp,list,size) \
|
---|
516 | smb_vfs_call_flistxattr((fsp)->conn->vfs_handles, (fsp), (list),(size))
|
---|
517 | #define SMB_VFS_NEXT_FLISTXATTR(handle,fsp,list,size) \
|
---|
518 | smb_vfs_call_flistxattr((handle)->next,(fsp),(list),(size))
|
---|
519 |
|
---|
520 | #define SMB_VFS_REMOVEXATTR(conn,path,name) \
|
---|
521 | smb_vfs_call_removexattr((conn)->vfs_handles,(path),(name))
|
---|
522 | #define SMB_VFS_NEXT_REMOVEXATTR(handle,path,name) \
|
---|
523 | smb_vfs_call_removexattr((handle)->next,(path),(name))
|
---|
524 |
|
---|
525 | #define SMB_VFS_FREMOVEXATTR(fsp,name) \
|
---|
526 | smb_vfs_call_fremovexattr((fsp)->conn->vfs_handles, (fsp), (name))
|
---|
527 | #define SMB_VFS_NEXT_FREMOVEXATTR(handle,fsp,name) \
|
---|
528 | smb_vfs_call_fremovexattr((handle)->next,(fsp),(name))
|
---|
529 |
|
---|
530 | #define SMB_VFS_SETXATTR(conn,path,name,value,size,flags) \
|
---|
531 | smb_vfs_call_setxattr((conn)->vfs_handles,(path),(name),(value),(size),(flags))
|
---|
532 | #define SMB_VFS_NEXT_SETXATTR(handle,path,name,value,size,flags) \
|
---|
533 | smb_vfs_call_setxattr((handle)->next,(path),(name),(value),(size),(flags))
|
---|
534 |
|
---|
535 | #define SMB_VFS_FSETXATTR(fsp,name,value,size,flags) \
|
---|
536 | smb_vfs_call_fsetxattr((fsp)->conn->vfs_handles, (fsp), (name),(value),(size),(flags))
|
---|
537 | #define SMB_VFS_NEXT_FSETXATTR(handle,fsp,name,value,size,flags) \
|
---|
538 | smb_vfs_call_fsetxattr((handle)->next,(fsp),(name),(value),(size),(flags))
|
---|
539 |
|
---|
540 | #define SMB_VFS_AIO_FORCE(fsp) \
|
---|
541 | smb_vfs_call_aio_force((fsp)->conn->vfs_handles, (fsp))
|
---|
542 | #define SMB_VFS_NEXT_AIO_FORCE(handle,fsp) \
|
---|
543 | smb_vfs_call_aio_force((handle)->next,(fsp))
|
---|
544 |
|
---|
545 | #define SMB_VFS_IS_OFFLINE(conn,fname,sbuf) \
|
---|
546 | smb_vfs_call_is_offline((conn)->vfs_handles,(fname),(sbuf))
|
---|
547 | #define SMB_VFS_NEXT_IS_OFFLINE(handle,fname,sbuf) \
|
---|
548 | smb_vfs_call_is_offline((handle)->next,(fname),(sbuf))
|
---|
549 |
|
---|
550 | #define SMB_VFS_SET_OFFLINE(conn,fname) \
|
---|
551 | smb_vfs_call_set_offline((conn)->vfs_handles,(fname))
|
---|
552 | #define SMB_VFS_NEXT_SET_OFFLINE(handle,fname) \
|
---|
553 | smb_vfs_call_set_offline((handle)->next, (fname))
|
---|
554 |
|
---|
555 | /* durable handle operations */
|
---|
556 |
|
---|
557 | #define SMB_VFS_DURABLE_COOKIE(fsp, mem_ctx, cookie) \
|
---|
558 | smb_vfs_call_durable_cookie((fsp)->conn->vfs_handles, \
|
---|
559 | (fsp), (mem_ctx), (cookie))
|
---|
560 | #define SMB_VFS_NEXT_DURABLE_COOKIE(handle, fsp, mem_ctx, cookie) \
|
---|
561 | smb_vfs_call_durable_cookie((handle)->next, \
|
---|
562 | (fsp), (mem_ctx), (cookie))
|
---|
563 |
|
---|
564 | #define SMB_VFS_DURABLE_DISCONNECT(fsp, old_cookie, mem_ctx, new_cookie) \
|
---|
565 | smb_vfs_call_durable_disconnect((fsp)->conn->vfs_handles, \
|
---|
566 | (fsp), (old_cookie), (mem_ctx), (new_cookie))
|
---|
567 | #define SMB_VFS_NEXT_DURABLE_DISCONNECT(handle, fsp, old_cookie, mem_ctx, new_cookie) \
|
---|
568 | smb_vfs_call_durable_disconnect((handle)->next, \
|
---|
569 | (fsp), (old_cookie), (mem_ctx), (new_cookie))
|
---|
570 |
|
---|
571 | #define SMB_VFS_DURABLE_RECONNECT(conn, smb1req, op, old_cookie, mem_ctx, fsp, new_cookie) \
|
---|
572 | smb_vfs_call_durable_reconnect((conn)->vfs_handles, \
|
---|
573 | (smb1req), (op), (old_cookie), \
|
---|
574 | (mem_ctx), (fsp), (new_cookie))
|
---|
575 | #define SMB_VFS_NEXT_DURABLE_RECONNECT(handle, smb1req, op, old_cookie, mem_ctx, fsp, new_cookie) \
|
---|
576 | smb_vfs_call_durable_reconnect((handle)->next, \
|
---|
577 | (smb1req), (op), (old_cookie), \
|
---|
578 | (mem_ctx), (fsp), (new_cookie))
|
---|
579 |
|
---|
580 | #define SMB_VFS_READDIR_ATTR(conn, fname, mem_ctx, attr_data) \
|
---|
581 | smb_vfs_call_readdir_attr((conn)->vfs_handles, (fname), (mem_ctx), (attr_data))
|
---|
582 | #define SMB_VFS_NEXT_READDIR_ATTR(conn, fname, mem_ctx, attr_data) \
|
---|
583 | smb_vfs_call_readdir_attr((handle)->next, (fname), (mem_ctx), (attr_data))
|
---|
584 |
|
---|
585 | #endif /* _VFS_MACROS_H */
|
---|