summaryrefslogtreecommitdiff
path: root/source3/torture/cmd_vfs.c
Commit message (Collapse)AuthorAgeFilesLines
* s3: Filenames: Add uint32_t flags parameter to synthetic_smb_fname().Jeremy Allison2016-03-241-8/+21
| | | | | | | | | Get it from parent/deriving smb_filename if present. Use 0 (as usually this a Windows-style lookup) if not. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Uri Simchoni <uri@samba.org>
* s3:lib: Move internal lp_posix_pathnames() call out of utility function ↵Jeremy Allison2016-03-101-7/+21
| | | | | | | | | synthetic_smb_fname_split(). Make it a passed in parameter instead. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Uri Simchoni <uri@samba.org>
* s3:lib: Remove the const SMB_STRUCT_STAT * parameter from ↵Jeremy Allison2016-03-101-7/+7
| | | | | | | | | synthetic_smb_fname_split(). Only one caller uses this, and this can be handled externally. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Uri Simchoni <uri@samba.org>
* VFS: Modify chown to take a const struct smb_filename * instead of const char *Jeremy Allison2016-03-051-1/+11
| | | | | | | Preparing to reduce use of lp_posix_pathnames(). Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* VFS: Modify chmod_acl to take a const struct smb_filename * instead of const ↵Jeremy Allison2016-03-031-1/+11
| | | | | | | | | char * Preparing to reduce use of lp_posix_pathnames(). Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* VFS: Modify chmod to take a const struct smb_filename * instead of const char *Jeremy Allison2016-03-031-1/+11
| | | | | | | Preparing to reduce use of lp_posix_pathnames(). Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* VFS: Modify opendir to take a const struct smb_filename * instead of const ↵Jeremy Allison2016-03-011-2/+26
| | | | | | | | | | | | | char * Preparing to reduce use of lp_posix_pathnames(). Uses the same techniques as commit 616d068f0cebb8e50a855b6e30f36fccb7f5a3c8 (synthetic_smb_fname()) to cope with modules that modify the incoming pathname. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* VFS: Modify rmdir to take a const struct smb_filename * instead of const char *Jeremy Allison2016-02-251-8/+12
| | | | | | | | | | | | | | Preparing to reduce use of lp_posix_pathnames(). Uses the same techniques as commit 616d068f0cebb8e50a855b6e30f36fccb7f5a3c8 (synthetic_smb_fname()) to cope with modules that modify the incoming pathname. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Michael Adam <obnox@samba.org> Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Thu Feb 25 20:46:49 CET 2016 on sn-devel-144
* s3: VFS: Modify mkdir to take a const struct smb_filename * instead of const ↵Jeremy Allison2016-02-241-1/+12
| | | | | | | | | | | | | | | | char * Preparing to reduce use of lp_posix_pathnames(). Uses the same techniques as commit 616d068f0cebb8e50a855b6e30f36fccb7f5a3c8 (synthetic_smb_fname()) to cope with modules that modify the incoming pathname. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Uri Simchoni <uri@samba.org> Autobuild-User(master): Uri Simchoni <uri@samba.org> Autobuild-Date(master): Wed Feb 24 16:05:55 CET 2016 on sn-devel-144
* s3: VFS: Modify SMB_VFS_GET_NT_ACL to take a const struct smb_filename * ↵Jeremy Allison2016-02-161-1/+11
| | | | | | | | | | | | | | | | | | | | | | | instead of const char * Bumps VFS version to 35. Preparing to reduce use of lp_posix_pathnames(). Most of this is boilerplate, the only subtleties are in the modules: vfs_catia.c vfs_media_harmony.c vfs_shadow_copy2.c vfs_unityed_media.c Where the path is modified then passed to SMB_VFS_NEXT_GET_NT_ACL(). In these cases the change uses synthetic_smb_fname() to create a new struct smb_filename from the modified path. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <rb@sernet.de>
* Convert all uses of uint32/16/8 to _t in source3/torture.Richard Sharpe2015-05-121-1/+1
| | | | | Signed-off-by: Richard Sharpe <rsharpe@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s3/vfs: remove unused SMB_VFS_DISK_FREE() small_query parameterDavid Disseldorp2015-02-171-1/+1
| | | | | | | | | | | | | | | The small_query parameter for SMB_VFS_DISK_FREE() was, prior to the previous commit, used to obtain 16-bit wide free-space information for the deprecated dskattr SMB_COM_QUERY_INFORMATION_DISK command. With the dskattr handler now performing the 16-bit collapse directly, the small_query parameter can be removed from the entire code path. Signed-off-by: David Disseldorp <ddiss@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Tue Feb 17 05:37:20 CET 2015 on sn-devel-104
* s3-torture: Make sure status is used initialized.Andreas Schneider2013-12-061-4/+3
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* vfstest: fix uninitialised variable usage in openDavid Disseldorp2013-11-081-2/+3
| | | | | | | | The vfstest open command currently fails intermittently due to a read of a potentially uninitialised status variable. Signed-off-by: David Disseldorp <ddiss@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* vfstest: Convert cmd_set_nt_acl to synthetic_smb_fnameVolker Lendecke2013-04-171-4/+3
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* vfstest: Convert cmd_utime to synthetic_smb_fnameVolker Lendecke2013-04-171-5/+3
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* vfstest: Convert cmd_lstat to synthetic_smb_fnameVolker Lendecke2013-04-171-5/+3
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* vfstest: Convert cmd_stat to synthetic_smb_fnameVolker Lendecke2013-04-171-5/+3
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* vfstest: Convert cmd_rename to synthetic_smb_fnameVolker Lendecke2013-04-171-9/+6
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* vfstest: Convert cmd_pathfunc to synthetic_smb_fnameVolker Lendecke2013-04-171-6/+4
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* vfstest: Convert cmd_open to synthetic_smb_fnameVolker Lendecke2013-04-171-4/+3
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* vfs_catia: write a testcase - add a translate command to vfstestGuenter Kukkukk2013-03-111-0/+75
| | | | | | | first approach Signed-off-by: Guenter Kukkukk <kukks@samba.org> Reviewed-by: Richard Sharpe <realrichardsharpe@gmail.com>
* s3:torture/vfstest implement sys_acl_blob_get_fdChristian Ambach2013-02-041-0/+45
| | | | | Signed-off-by: Christian Ambach <ambi@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* s3:torture/vfstest implement sys_acl_blob_get_fileChristian Ambach2013-02-041-0/+32
| | | | | Signed-off-by: Christian Ambach <ambi@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* Ensure we Correctly set fsp->is_directory before dealing with ACLs.Andrew Bartlett2012-11-131-1/+1
| | | | Reviewed by: Jeremy Allison <jra@samba.org>
* smbd: Add mem_ctx to {f,}get_nt_acl VFS callAndrew Bartlett2012-10-111-2/+6
| | | | | | | | | | | This makes it clear which context the returned SD is allocated on, as a number of callers do not want it on talloc_tos(). As the ACL transformation allocates and then no longer needs a great deal of memory, a talloc_stackframe() call is used to contain the memory that is not returned further up the stack. Andrew Bartlett
* smbd: Add mem_ctx to sys_acl_init() and all callersAndrew Bartlett2012-10-111-2/+2
| | | | | | | | | | This changes from allocation on NULL to allocation on the supplied memory context. Currently that supplied context is talloc_tos() at the the final consumer of the ACL. Andrew Bartlett
* s3-torture: Allow vfstest to set ACLs on a directoryAndrew Bartlett2012-08-171-6/+11
| | | | | Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Fri Aug 17 02:35:49 CEST 2012 on sn-devel-104
* s3-selftest: Add a seperate test for ACL tests using vfstestAndrew Bartlett2012-08-161-10/+35
| | | | | | | | | | | This does not check for consistency or correctness yet, that will be done with python unit tests. The purpose of this test is to ensure that the vfstest wrapper doesn't crash. Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Thu Aug 16 09:32:25 CEST 2012 on sn-devel-104
* s3-torture: Add ACL commands to vfstestAndrew Bartlett2012-08-161-0/+311
| | | | | | This will allow easier investigation of our ACL layer. Andrew Bartlett
* s3-torture: Use talloc more in vfstestAndrew Bartlett2012-08-161-12/+7
| | | | | | This matches the rest of Samba, which allocates many of these structures with talloc. Andrew Bartlett
* s3-torture: Initialise fsp fully in vfstest openAndrew Bartlett2012-08-161-0/+34
|
* loadparm: make the source3/ lp_ functions take an explicit TALLOC_CTX *.Rusty Russell2012-07-181-1/+1
| | | | | | | | | | They use talloc_tos() internally: hoist that up to the callers, some of whom don't want to us talloc_tos(). A simple patch, but hits a lot of files. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* build: Remove SMB_OFF_T, replace with off_tAndrew Bartlett2012-04-061-3/+3
| | | | | | | | | Now that we always require a 64 bit off_t, we no longer need SMB_OFF_T. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Fri Apr 6 01:47:43 CEST 2012 on sn-devel-104
* build: Remove SMB_STRUCT_DIRENT defineAndrew Bartlett2012-04-051-1/+1
|
* lib/util: Remove dummy wrapper for getgrgid().Jelmer Vernooij2012-03-241-3/+3
|
* lib/util: Remove dummy wrapper for getpwuid().Jelmer Vernooij2012-03-241-3/+3
|
* s3: Add a new set of andx chain handling routinesVolker Lendecke2012-03-101-0/+2
| | | | This is in preparation of getting rid of chain_reply.
* s3-vfstest: Add removexattrVolker Lendecke2012-02-021-0/+21
|
* s3-vfstest: Add setxattrVolker Lendecke2012-02-021-0/+27
|
* s3-vfstest: Add listxattrVolker Lendecke2012-02-021-0/+48
|
* s3-vfstest: Add getxattrVolker Lendecke2012-02-021-0/+37
|
* s3-vfstest: Fix a double-free on closing a fileVolker Lendecke2012-02-021-1/+1
| | | | "mem_ctx" will be gone after we leave the routine
* s3-vfstest: Fix some nonblank line endingsVolker Lendecke2012-02-011-10/+10
|
* s3-talloc Change TALLOC_ARRAY() to talloc_array()Andrew Bartlett2011-06-091-2/+2
| | | | | Using the standard macro makes it easier to move code into common, as TALLOC_ARRAY isn't standard talloc.
* Remove the char * argument from the SMB_VFS_GETWD() call. Now alwaysJeremy Allison2011-06-011-2/+3
| | | | | | | returns malloc'ed memory. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Jun 1 04:06:12 CEST 2011 on sn-devel-104
* s3-vfs: include smbd/smbd.h in vfs modules.Günther Deschner2011-03-301-0/+1
| | | | Guenther
* s3-includes: only include system/filesys.h when needed.Günther Deschner2011-03-301-0/+1
| | | | Guenther
* s3-includes: only include system/passwd.h when needed.Günther Deschner2011-03-301-0/+1
| | | | Guenther
* lib/util/util_pw: share sys_get{pw,gr} group of calls.Günther Deschner2011-03-301-0/+1
| | | | Guenther