vfs_full_audit: Rename kernel_flock to filesystem_sharemode
[Samba.git] / source3 / torture / vfstest.h
blobb80592fd20855acf598cf0b6ad5d6400beb7b9f7
1 /*
2 Unix SMB/CIFS implementation.
3 VFS module tester
5 Copyright (C) Simo Sorce 2002
6 Copyright (C) Eric Lorimer 2002
8 Most of this code was ripped off of rpcclient.
9 Copyright (C) Tim Potter 2000-2001
11 This program is free software; you can redistribute it and/or modify
12 it under the terms of the GNU General Public License as published by
13 the Free Software Foundation; either version 3 of the License, or
14 (at your option) any later version.
16 This program is distributed in the hope that it will be useful,
17 but WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 GNU General Public License for more details.
21 You should have received a copy of the GNU General Public License
22 along with this program. If not, see <http://www.gnu.org/licenses/>.
25 struct func_entry {
26 char *name;
27 int (*fn)(struct connection_struct *conn, const char *path);
30 struct vfs_state {
31 struct connection_struct *conn;
32 uint64_t mid;
33 struct files_struct *files[1024];
34 struct smb_Dir *currentdir;
35 long currentdir_offset;
36 void *data;
37 size_t data_size;
40 struct smb_request *vfstest_get_smbreq(TALLOC_CTX *mem_ctx,
41 struct vfs_state *vfs);
43 struct cmd_set {
44 const char *name;
45 NTSTATUS (*fn)(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc,
46 const char **argv);
47 const char *description;
48 const char *usage;
51 NTSTATUS cmd_test_chain(struct vfs_state *vfs, TALLOC_CTX *mem_ctx,
52 int argc, const char **argv);