summaryrefslogtreecommitdiff
path: root/source3/modules
AgeCommit message (Collapse)AuthorFilesLines
2012-08-16s3:vfs_gpfs: make sure parameters are set correctly for leasesChristian Ambach1-0/+25
gpfs:leases requires kernel oplocks = yes and level2 oplocks = no to work properly make sure those are set correctly for a share
2012-08-16s3:vfs_gpfs: Fix compile error in gpfs moduleChristof Schmitt1-0/+1
Fix this compile error by adding fcntl.h as a include that defines F_RDLCK and F_WRLCK: modules/gpfs.c: In function ‘set_gpfs_lease’: modules/gpfs.c:102: error: ‘F_RDLCK’ undeclared (first use in this function) modules/gpfs.c:102: error: (Each undeclared identifier is reported only once modules/gpfs.c:102: error: for each function it appears in.) modules/gpfs.c:105: error: ‘F_WRLCK’ undeclared (first use in this function)
2012-08-16s3-vfs: Continue to make vfs_xattr_tdb non-recursiveAndrew Bartlett1-24/+50
We now always use _NEXT_ VFS calls, even to build the file id. Andrew Bartlett
2012-08-16s3-vfs: Add new VFS module to fake setting an ACLAndrew Bartlett1-0/+374
The purpose of this module is to remove the relience on the system having ACL support to test NT ACLs. Andrew Bartlett
2012-08-15s3-vfs: Set errno in xattr emulationAndrew Bartlett2-0/+7
The caller may check this errno. Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Wed Aug 15 18:05:33 CEST 2012 on sn-devel-104
2012-08-15s3-vfs: Avoid loops in VFS modules: call _NEXT functions in xattr emulationAndrew Bartlett2-8/+8
We need to call the next module in the stack otherwise we will loop if the stat call is in turn implemented in terms of extended attribute lookup. Andrew Bartlett
2012-08-15s3-vfs: ensure we strictly free the talloc_stackframeAndrew Bartlett1-1/+1
We must do this when leaving the function or else in development, we will panic. Andrew Bartlett
2012-08-15librpc/idl: Make smb_acl_t public so we can pull/push it as a blobAndrew Bartlett1-0/+9
2012-08-15s3-smbd: Remove sys_acl_*() VFS wrapper functionsAndrew Bartlett3-761/+0
We no longer do struct smb_acl_t manipuations via the VFS layer, which is now reduced to handling the get/set functions. The only backend that implemented these functions (aside from audit) was the vfs_default module calling the sys_acl code. The various ACL implementation modules either worked on the fully initilaised smb_acl_t object or on NT ACLs. This not only makes the operation of the posix ACL code more efficient (as allocation and free is not put via the VFS), it makes it easier to test and removes the fantasy that a module could safely redefine this structure or the behaviour here. The smb_acls.idl now defines the structure, and it is now allocated with talloc. These operations were originally added to the VFS in commit 3bb219161a270f12c27c3bc7e1220829c6e9f284. Andrew Bartlett
2012-08-15s3-smbd: Change allocation of smb_acl_t to talloc()Andrew Bartlett7-53/+39
The acl element is changed to be a talloc child, and is no longer one element longer than requested by virtue of the acl[1] base pointer. This also avoids one of the few remaining cases of over-allocation of a structure. Andrew Bartlett
2012-08-14s3-vfs: Put vfs_aixacl_util.c helper functions into a header fileAndrew Bartlett3-3/+24
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Tue Aug 14 02:16:11 CEST 2012 on sn-devel-104
2012-08-11s3-nfs4acls: Remove lookup_sid and sidmap from NFSv4 ACL mapping and check ↵Andrew Bartlett1-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
2012-08-09Correctly check for errors in strlower_m() returns.Jeremy Allison1-1/+3
2012-08-09Check error returns on strnorm().Jeremy Allison1-1/+3
2012-08-09Check error returns from strupper_m() (in all reasonable places).Jeremy Allison2-2/+7
2012-08-08vfs_dirsort: Remove unnecessary return; statementBjörn Jacke1-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
2012-08-08vfs_afsacl.c: Remove some unnecessary return; statementsBjörn Jacke1-5/+0
2012-08-08vfs_full_audit: Remove some unnecessary return; statementsBjörn Jacke1-9/+0
2012-08-08vfs_time_audit: Remove unnecessary return; statementBjörn Jacke1-2/+0
2012-08-08vfs_time_audit: Remove some unnecessary return; statementsBjörn Jacke1-7/+0
2012-08-08vfs-mediaharmony: Remove some unnecessary return; statementsVolker Lendecke1-3/+0
2012-08-07vfs_media_harmony: fix return of voidBjörn Jacke1-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
2012-08-07media_harmony VFS module: Add and build by default.Andrew Klaassen1-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
2012-07-18config: The AIO engine is indepent of HAVE_AIO nowVolker Lendecke1-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>
2012-07-18s3: Add aio_fsync to the aio_linux moduleVolker Lendecke1-0/+44
Signed-off-by: Jeremy Allison <jra@samba.org>
2012-07-18s3: Add aio_fsync to the aio_fork moduleVolker Lendecke1-1/+112
Signed-off-by: Jeremy Allison <jra@samba.org>
2012-07-18s3-aio-fork: make "read_cmd" an enumVolker Lendecke1-7/+35
Signed-off-by: Jeremy Allison <jra@samba.org>
2012-07-18s3: Add aio_fsync to the aio_posix moduleVolker Lendecke1-0/+57
Signed-off-by: Jeremy Allison <jra@samba.org>
2012-07-18s3-vfs: async fsyncVolker Lendecke3-0/+183
Signed-off-by: Jeremy Allison <jra@samba.org>
2012-07-18s3: Move the aio_pthread read/write functionality to vfs_defaultVolker Lendecke3-231/+139
Signed-off-by: Jeremy Allison <jra@samba.org>
2012-07-18s3-aio: Remove unused VFS functions and moreVolker Lendecke3-316/+0
Signed-off-by: Jeremy Allison <jra@samba.org>
2012-07-18s3-vfs: Add pwrite_send/recv to vfs modulesVolker Lendecke2-0/+142
Signed-off-by: Jeremy Allison <jra@samba.org>
2012-07-18s3-vfs: Add pread_send/recv to vfs modulesVolker Lendecke2-0/+145
Signed-off-by: Jeremy Allison <jra@samba.org>
2012-07-18s3: Convert aio_linux to pread/pwrite_send/recvVolker Lendecke1-543/+100
Signed-off-by: Jeremy Allison <jra@samba.org>
2012-07-18s3: Convert aio_fork to pread/pwrite_send/recvVolker Lendecke1-323/+174
Signed-off-by: Jeremy Allison <jra@samba.org>
2012-07-18s3-aio_fork: Convert get_idle_child from NTSTATUS to errnoVolker Lendecke1-14/+17
Signed-off-by: Jeremy Allison <jra@samba.org>
2012-07-18s3-aio_fork: Convert create_aio_child from NTSTATUS to errnoVolker Lendecke1-16/+20
Signed-off-by: Jeremy Allison <jra@samba.org>
2012-07-18s3: Add vfs_aio_posixVolker Lendecke2-0/+253
Signed-off-by: Jeremy Allison <jra@samba.org>
2012-07-18s3: Make smbd/aio.c not depend on aio.h anymoreVolker Lendecke1-0/+1
Signed-off-by: Jeremy Allison <jra@samba.org>
2012-07-18s3:vfs_aio_pthread: Convert to libasysVolker Lendecke2-525/+123
Signed-off-by: Jeremy Allison <jra@samba.org>
2012-07-18s3-vfs: async preadVolker Lendecke1-0/+45
Signed-off-by: Jeremy Allison <jra@samba.org>
2012-07-18s3-vfs: async pwriteVolker Lendecke1-0/+48
Signed-off-by: Jeremy Allison <jra@samba.org>
2012-07-18s3:Really ignore unknown special ids in NFSv4 ACLs.Alexander Werth1-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
2012-07-18loadparm: make the source3/ lp_ functions take an explicit TALLOC_CTX *.Rusty Russell6-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>
2012-07-18source3/modules/vfs_xattr_tdb.c: fix stackframe leakRusty Russell1-1/+3
xattr_tdb_getxattr() doesn't free its stackframe. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2012-07-17s3-linux-aio: Fix error handlingVolker Lendecke1-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
2012-07-17Add debug message when SD hash doesn't match.Jeremy Allison1-0/+5
2012-07-13Use HAVE_FSYNC, we bothered to test for it.Jeremy Allison1-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
2012-07-13Linux-specific optimization in aio_open code.Jeremy Allison1-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
2012-07-12Add an optimization to pthread aio writes to also do fsync if requested.Jeremy Allison1-0/+15
Should help by ensuring complete writes done in sub-thread, not in the main thread.