summaryrefslogtreecommitdiffstats
path: root/source3/modules
Commit message (Collapse)AuthorAgeFilesLines
...
* s3-nfs4acls: Remove lookup_sid and sidmap from NFSv4 ACL mapping and check ↵Andrew Bartlett2012-08-111-115/+13
| | | | | | | | | | | | | | | | | | gid first By checking just the IDMAP, and by removing the sidmap and lookup_sid calls, we support IDMAP_BOTH. This is because by checking for a mapping to a GID first, we can rely on the fact that IDMAP_BOTH will resolve to a GID. If the sidmap idea is valued - it allows multiple SIDs to map to a single unix ID, this should be done in the IDMAP layer. Andrew Bartlett Signed-off-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Sat Aug 11 01:17:36 CEST 2012 on sn-devel-104
* Correctly check for errors in strlower_m() returns.Jeremy Allison2012-08-091-1/+3
|
* Check error returns on strnorm().Jeremy Allison2012-08-091-1/+3
|
* Check error returns from strupper_m() (in all reasonable places).Jeremy Allison2012-08-092-2/+7
|
* vfs_dirsort: Remove unnecessary return; statementBjörn Jacke2012-08-081-2/+0
| | | | | Autobuild-User(master): Björn Jacke <bj@sernet.de> Autobuild-Date(master): Wed Aug 8 02:17:13 CEST 2012 on sn-devel-104
* vfs_afsacl.c: Remove some unnecessary return; statementsBjörn Jacke2012-08-081-5/+0
|
* vfs_full_audit: Remove some unnecessary return; statementsBjörn Jacke2012-08-081-9/+0
|
* vfs_time_audit: Remove unnecessary return; statementBjörn Jacke2012-08-081-2/+0
|
* vfs_time_audit: Remove some unnecessary return; statementsBjörn Jacke2012-08-081-7/+0
|
* vfs-mediaharmony: Remove some unnecessary return; statementsVolker Lendecke2012-08-081-3/+0
|
* vfs_media_harmony: fix return of voidBjörn Jacke2012-08-071-3/+6
| | | | | | | caught by the Studio Compiler Autobuild-User(master): Björn Jacke <bj@sernet.de> Autobuild-Date(master): Tue Aug 7 22:22:48 CEST 2012 on sn-devel-104
* media_harmony VFS module: Add and build by default.Andrew Klaassen2012-08-071-0/+2438
| | | | | | | | | | | | | - Supersedes previous patch. - Added various fixes for fake mtime functionality. - Now requires lp_cache_locked_write_times patch (bug 8912). - Removed various xattr functions to comply with recent VFS changes. - Changed SMB_STRUCT_DIR to DIR and SMB_STRUCT_DIRENT to struct dirent to comply with recent VFS changes. - Added manpage. - Added sample trigger_avid_update.py script. Autobuild-User(master): Björn Jacke <bj@sernet.de> Autobuild-Date(master): Tue Aug 7 15:16:39 CEST 2012 on sn-devel-104
* config: The AIO engine is indepent of HAVE_AIO nowVolker Lendecke2012-07-181-0/+2
| | | | | | | | | Compile the basic aio engine always, it works via libasys/pthreadpool_sync in a sync fashion even if no pthreads are around. Everything else (linux aio, posix aio, aio fork) is now compiled as modules based on specific system capabilities Signed-off-by: Jeremy Allison <jra@samba.org>
* s3: Add aio_fsync to the aio_linux moduleVolker Lendecke2012-07-181-0/+44
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* s3: Add aio_fsync to the aio_fork moduleVolker Lendecke2012-07-181-1/+112
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* s3-aio-fork: make "read_cmd" an enumVolker Lendecke2012-07-181-7/+35
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* s3: Add aio_fsync to the aio_posix moduleVolker Lendecke2012-07-181-0/+57
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* s3-vfs: async fsyncVolker Lendecke2012-07-183-0/+183
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* s3: Move the aio_pthread read/write functionality to vfs_defaultVolker Lendecke2012-07-183-231/+139
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* s3-aio: Remove unused VFS functions and moreVolker Lendecke2012-07-183-316/+0
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* s3-vfs: Add pwrite_send/recv to vfs modulesVolker Lendecke2012-07-182-0/+142
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* s3-vfs: Add pread_send/recv to vfs modulesVolker Lendecke2012-07-182-0/+145
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* s3: Convert aio_linux to pread/pwrite_send/recvVolker Lendecke2012-07-181-543/+100
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* s3: Convert aio_fork to pread/pwrite_send/recvVolker Lendecke2012-07-181-323/+174
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* s3-aio_fork: Convert get_idle_child from NTSTATUS to errnoVolker Lendecke2012-07-181-14/+17
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* s3-aio_fork: Convert create_aio_child from NTSTATUS to errnoVolker Lendecke2012-07-181-16/+20
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* s3: Add vfs_aio_posixVolker Lendecke2012-07-182-0/+253
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* s3: Make smbd/aio.c not depend on aio.h anymoreVolker Lendecke2012-07-181-0/+1
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* s3:vfs_aio_pthread: Convert to libasysVolker Lendecke2012-07-182-525/+123
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* s3-vfs: async preadVolker Lendecke2012-07-181-0/+45
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* s3-vfs: async pwriteVolker Lendecke2012-07-181-0/+48
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* s3:Really ignore unknown special ids in NFSv4 ACLs.Alexander Werth2012-07-181-0/+1
| | | | | | | Signed-off-by: Christian Ambach <ambi@samba.org> Autobuild-User(master): Christian Ambach <ambi@samba.org> Autobuild-Date(master): Wed Jul 18 17:45:05 CEST 2012 on sn-devel-104
* loadparm: make the source3/ lp_ functions take an explicit TALLOC_CTX *.Rusty Russell2012-07-186-7/+7
| | | | | | | | | | 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>
* source3/modules/vfs_xattr_tdb.c: fix stackframe leakRusty Russell2012-07-181-1/+3
| | | | | | | xattr_tdb_getxattr() doesn't free its stackframe. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* s3-linux-aio: Fix error handlingVolker Lendecke2012-07-171-4/+2
| | | | | | | Signed-off-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Tue Jul 17 21:22:31 CEST 2012 on sn-devel-104
* Add debug message when SD hash doesn't match.Jeremy Allison2012-07-171-0/+5
|
* Use HAVE_FSYNC, we bothered to test for it.Jeremy Allison2012-07-131-0/+2
| | | | | Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Fri Jul 13 04:44:42 CEST 2012 on sn-devel-104
* Linux-specific optimization in aio_open code.Jeremy Allison2012-07-131-0/+22
| | | | | | | | Use initial_allocation_size to allocate on disk if sent. Ignore failures (upper level will cope). Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Fri Jul 13 00:35:48 CEST 2012 on sn-devel-104
* Add an optimization to pthread aio writes to also do fsync if requested.Jeremy Allison2012-07-121-0/+15
| | | | | Should help by ensuring complete writes done in sub-thread, not in the main thread.
* s3: make log message of FSCTL_IS_VOLUME_DIRTY more clearBjörn Jacke2012-07-121-1/+1
|
* s3:vfs_gpfs: fix ACL length calculationRalph Wuerthner2012-07-111-9/+4
| | | | | | | | | | GPFS 3.5 introduces ACL enhancements which are breaking our ACL length calculations. Signed-off-by: Ralph Wuerthner <ralph.wuerthner@de.ibm.com> Autobuild-User(master): Christian Ambach <ambi@samba.org> Autobuild-Date(master): Wed Jul 11 21:28:23 CEST 2012 on sn-devel-104
* s3:vfs_gpfs: Check softquota before gracetimeChristof Schmitt2012-07-111-1/+2
| | | | | | | gpfs_quotactl can return a non-zero softquota gracetime even when no softquota has been set. This could lead to "disk full" being reported to a client. The easiest fix is to check for a valid softquota before checking the softquota gracetime.
* Add in the threaded async open engine.Jeremy Allison2012-07-111-0/+393
| | | | | | | | | | | | | | | | | Fixes all issues raised originally. This code will only do threaded opens with thread-specific credentials (Linux for now) and changes credentials before doing the call. Also only fires on O_CREAT|O_EXCL so will only create new files, never open old ones async. Volker, this is isolated enough that it shouldn't prevent you from refactoring it into a new module when the aio pread/pwrite code is moved into the default aio path. Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Wed Jul 11 08:04:56 CEST 2012 on sn-devel-104
* Allow init_aio_threadpool() to be setup for different threadpool handles ↵Jeremy Allison2012-07-031-10/+19
| | | | with different completion functions.
* s3-param: Rename loadparm_s3_context -> loadparm_s3_helpersAndrew Bartlett2012-06-272-2/+2
| | | | | | | | | | | | | | | | | This helps clarify the role of this structure and wrapper function. The purpose here is to provide helper functions to the lib/param loadparm_context that point back at the s3 lp_ functions. This allows a struct loadparm_context to be passed to any point in the code, and always refer to the correct loadparm system. If this has not been set, the variables loaded in the lib/param code will be returned. As requested by Michael Adam. Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Wed Jun 27 17:11:16 CEST 2012 on sn-devel-104
* s3: Fix a typoVolker Lendecke2012-06-251-1/+1
| | | | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Mon Jun 25 17:13:59 CEST 2012 on sn-devel-104
* s3: Avoid a call to server_event_context()Volker Lendecke2012-06-251-1/+1
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-vfs_gpfs: Fix bug #9003, posix acl on gpfsVolker Lendecke2012-06-221-2/+2
| | | | | | | | | | | | | gpfs2smb_acl can leave errno!=0 around even if it returned a correct result!=NULL. We can only rely on errno being set if another error condition (in this case result==NULL) indicates an error. If result!=NULL, errno is undefined and can be anything. This leads to SAFE_FREE(result) further down even in the success case. Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Fri Jun 22 19:27:39 CEST 2012 on sn-devel-104
* Fix bug #8974 - Kernel oplocks are broken when uid(file) != uid(process).Jeremy Allison2012-06-211-5/+0
| | | | | | | Based on a fix from "Etienne Dechamps " <e-t172@akegroup.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Thu Jun 21 21:53:58 CEST 2012 on sn-devel-104
* s3:vfs_gpfs: add "gpfs:acl" optionBjörn Baumbach2012-06-151-0/+81
| | | | | | | | With "gpfs:acl=no" you can pass the acl calls to the next SMB_VFS module. Based on a patch from Hans-Dieter Schuster <hans-dieter.schuster@ts.fujitsu.com> Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>