summaryrefslogtreecommitdiffstats
path: root/source3/modules
Commit message (Collapse)AuthorAgeFilesLines
* s3-vfs: initial work on posix:eadb moduleAndrew Bartlett2012-04-032-0/+441
| | | | | | | | This is a module that, like vfs_xattr_tdb, stores extended attributes in a DB on disk. This uses the format needed to support the posix:eadb smb.conf option. Andrew Bartlett
* s3-aio-fork: Fix a segfault in vfs_aio_forkVolker Lendecke2012-03-311-7/+9
| | | | | | | | | | | | | | | | | | | | | | aio_suspend does not signal the main process with a signal, it just waits. The aio_fork module does not use the signal at all, it directly calls back into the main smbd by calling smbd_aio_complete_aio_ex. This is an abstraction violation, but the alternative would have been to use signals where they are not needed. However, in wait_for_aio_completion this bites us: With aio_fork we call handle_aio_completed twice on the same aio_ex struct: Once from the call to handle_aio_completion within the aio_fork module and once from the code in wait_for_aio_completion. This patch fixes it in a pretty bad way by introducing flag variables and more state. But the mid-term plan is to replace the posix aio calls from the vfs and do pread_send/recv and pwrite_send/recv at the vfs layer, so this will significantly change anyway. Thanks to Kirill Malkin <kirill.malkin@starboardstorage.com> for reporting this crash! Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Sat Mar 31 15:25:55 CEST 2012 on sn-devel-104
* s3-aio-fork: Fix aio_suspend event hierarchyVolker Lendecke2012-03-311-10/+8
| | | | | We end up here multiple times. There's no real point putting the events into the child struct, at the end of this routine we need to free them anyway.
* s3-aio-fork: Fix an alignment warning on OS/XVolker Lendecke2012-03-311-2/+2
|
* More strlcat/strlcpy truncate checks.Jeremy Allison2012-03-303-8/+21
|
* s3: Pass filters explicitly through vfs notify watchVolker Lendecke2012-03-264-11/+17
| | | | | | | | | This removes a dependency on "struct notify_entry" and makes the nature of the API more explicit. We depend upon the VFS module to mask out elements from e->filter and e->subdir_filter that it took over to handle. Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Mon Mar 26 17:45:44 CEST 2012 on sn-devel-104
* lib/util: Remove obsolete sys_getpid() and sys_fork().Jelmer Vernooij2012-03-243-3/+3
| | | | | | | | | The performance of these is minimal (these days) and they can return invalid results when used as part of applications that do not use sys_fork(). Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Mar 24 21:55:41 CET 2012 on sn-devel-104
* s3:vfs_gpfs: fix some compiler warningsChristian Ambach2012-03-222-4/+4
| | | | | Autobuild-User: Christian Ambach <ambi@samba.org> Autobuild-Date: Thu Mar 22 20:14:34 CET 2012 on sn-devel-104
* s3:vfs_gpfs: remove fallback to linux_setleaseChristian Ambach2012-03-221-6/+0
| | | | | | if setting the lease in GPFS failed, there is not much sense in trying to set a lease just locally that would not inform us of openers on other cluster nodes
* s3:vfs_gpfs: correct use of profiling macrosChristian Ambach2012-03-221-4/+5
| | | | under certain conditions START_PROFILE could have been called, but no END_PROFILE
* s3:vfs_gpfs: Implement fallocate callback for GPFSChristof Schmitt2012-03-223-0/+54
| | | | | | | GPFS provides the gpfs_prealloc call. Implement the fallocate callback with mode VFS_FALLOCATE_EXTEND_SIZE using this call. There is no support for VFS_FALLOCATE_KEEP_SIZE, so report this mode as not available.
* s3:vfs_gpfs: Report disk space and usage on GPFS share according to quotasChristof Schmitt2012-03-221-0/+129
| | | | | | | | | | | | | | | | | | When a client requests the information about free space and space used, adjust the reported values according to quotas in the GPFS file system: - Retrieve quotas for the current user, current group and fileset for the top level of the share. - If the soft block quota grace time has expired, report disk as full. - If a hard block quota has been exceeded, report disk as full. - If none of the hard block quotas been exceeded, report share size and free space according to the lowest limits found in the quotas. - If no applicable hard block quota has been set, report the information from the statfs call. This feature is disabled by default and has to be enabled by setting the option gpfs:dfreequota.
* s3:vfs_gpfs: add GPFS api calls for quota and free space reportingChristof Schmitt2012-03-222-0/+80
| | | | | | Add the GPFS api calls for reporting the quotas and free space: - get_gpfs_quota for querying a quota - get_gpfs_fset_id for mapping a path to a fileset id
* s3:vfs_tsmsm: Fix a misspelling of a config parameter in the doc-commentMichael Adam2012-03-221-1/+1
| | | | The module uses "tsmsm:dmapi attribute" instead of "tsmsm:attribute name".
* s3: Remove "conn" from sys_notify_contextVolker Lendecke2012-03-211-1/+1
|
* s3: Pass "path" through vfs_notify_watchVolker Lendecke2012-03-214-4/+11
|
* Fix second part of bug #8811 - sd_has_inheritable_components segfaults on an ↵Jeremy Allison2012-03-171-5/+20
| | | | | | | | | SD that se_access_check accepts. This fixes a coredump with a NULL DACL in add_directory_inheritable_components(). Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Mar 17 01:05:57 CET 2012 on sn-devel-104
* s3: Improve statvfs supportBrad Smith2012-03-111-6/+6
| | | | | Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Sun Mar 11 14:18:04 CET 2012 on sn-devel-104
* s3: Further fix for bug 8777Brad Smith2012-03-021-1/+1
|
* s3: Fix bug 8777, sys_statvfs() wrapper support for OpenBSD/FreeBSD/DragonFlyBrad Smith2012-02-251-1/+1
|
* s3:vfs_gpfs:quieten an expectable warning messageChristian Ambach2012-02-101-1/+5
| | | | | Autobuild-User: Christian Ambach <ambi@samba.org> Autobuild-Date: Fri Feb 10 20:14:12 CET 2012 on sn-devel-104
* s3:vfs_gpfs: fix a compiler warningChristian Ambach2012-02-101-1/+2
|
* s3:vfs_gpfs:Fix query of creation time from GPFSChristof Schmitt2012-02-101-0/+3
| | | | | | | | | | | | | | Setting the creation time through SetFileTime on a GPFS file system and querying it with GetFileTime shows a mismatch. The vfs_gpfs module first retrieves the information from the operating system and the flag st_ex_calculated_birthtime is set to false. When vfs_gpfs retrieves the birthtime from GPFS the flag st_ex_calculated_birthtime has to be set to true. Otherwise the birth time will get overwritten by a call to update_stat_ex_mtime, reporting the wrong time to a client system. Signed-off-by: Christian Ambach <ambi@samba.org>
* s3:vfs_gpfs: make "gpfs:getrealfilename" a per share optionStefan Metzmacher2012-02-102-7/+15
| | | | | | metze Signed-off-by: Christian Ambach <ambi@samba.org>
* s3:vfs_gpfs: make "gpfs:ftruncate" a per share optionStefan Metzmacher2012-02-102-3/+14
| | | | | | metze Signed-off-by: Christian Ambach <ambi@samba.org>
* s3:vfs_gpfs: make "gpfs:winattr" a per share optionStefan Metzmacher2012-02-102-5/+73
| | | | | | metze Signed-off-by: Christian Ambach <ambi@samba.org>
* s3:vfs_gpfs: be less verbose in get/set_xattr functionsStefan Metzmacher2012-02-101-2/+2
| | | | | | metze Signed-off-by: Christian Ambach <ambi@samba.org>
* Fix bug #7933 - samba fails to honor SEC_STD_WRITE_OWNER bit with the ↵Jeremy Allison2012-02-031-1/+36
| | | | acl_xattr module.
* s3-xattr_tdb: Fix listxattrVolker Lendecke2012-02-021-1/+1
| | | | We have to tell the caller how many bytes we actually want
* s3: Simplify streams_depot a bitVolker Lendecke2012-02-021-14/+5
| | | | | b0c0b949 is a bit involved. Passing down booleans is almost never very clear
* s3: Add rmdir operation to streams_depotVolker Lendecke2012-02-011-0/+47
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Feb 1 01:05:57 CET 2012 on sn-devel-104
* Use sys_pread/sys_pwrite to cope correctly with 64-bit sizes. As in the ↵Jeremy Allison2012-01-261-2/+16
| | | | | | | default VFS case fall back from pread -> read and pwrite -> write on an ESPIPE error in the worker thread. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu Jan 26 02:11:28 CET 2012 on sn-devel-104
* s3: Fix a panic in aio_pthreadVolker Lendecke2012-01-251-1/+1
| | | | | | | | | Found by Nir Drang <nir@fabrix.tv> Thanks! Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Jan 25 18:22:37 CET 2012 on sn-devel-104
* s3: improve the code in the AES encryption.Matthieu Patou2012-01-251-8/+8
| | | | | | | | | Remove looping replace them by memcpy. Fix bug #8674 (Buffer overflow in vfs_smb_traffic_analyzer). Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Jan 25 03:12:14 CET 2012 on sn-devel-104
* s3: Fix bug #8674.Jeremy Allison2012-01-251-2/+1
| | | | Buffer overflow issue with AES encryption in samba traffic analyzer.
* s3-aio-pthread: num threads should be intVolker Lendecke2012-01-181-4/+2
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Jan 18 21:04:20 CET 2012 on sn-devel-104
* s3: Add a "lock_order" argument to db_openVolker Lendecke2012-01-183-3/+6
| | | | | | | This will be used to enforce a lock hierarchy between the databases. We have seen deadlocks between locking.tdb, brlock.tdb, serverid.tdb and notify*.tdb. These should be fixed by refusing a dbwrap_fetch_locked that does not follow a defined lock hierarchy.
* s3: Split a line with 1 statementsVolker Lendecke2012-01-121-1/+2
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Thu Jan 12 13:10:19 CET 2012 on sn-devel-104
* Ensure we always free aio_ex on all error paths by moving the TALLOC_FREEJeremy Allison2012-01-122-1/+3
| | | | | | | call out of smbd_aio_complete_aio_ex() and into the caller. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu Jan 12 03:10:52 CET 2012 on sn-devel-104
* First part of fix for bug #8673 - NT ACL issue.Jeremy Allison2012-01-111-18/+31
| | | | | Simplify the logic in the unlink/rmdir calls - makes it readable (and correct).
* s3-aio_pthread: Fix the buildVolker Lendecke2012-01-101-1/+1
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Tue Jan 10 11:54:01 CET 2012 on sn-devel-104
* s3-aio_pthread: Make "pd_list" staticVolker Lendecke2012-01-101-1/+1
|
* Remove the commented out code.Jeremy Allison2012-01-061-52/+1
|
* Add "aio num threads" parameter to allow manual configuration ofJeremy Allison2012-01-061-16/+15
| | | | | threads via smb.conf if required. Ignore the number of cores. See comments inline.
* Add a sys_get_number_of_cores() function that calls sysconf or sysctlJeremy Allison2012-01-061-2/+13
| | | | and tunes the aio threads.
* Add some debug to vfs_aio_pthread so I can see when jobs start and stop.Jeremy Allison2012-01-051-0/+16
| | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu Jan 5 20:28:00 CET 2012 on sn-devel-104
* Add S3 vfs_aio_pthread module to replace broken glibc aio code.Jeremy Allison2012-01-052-0/+647
| | | | | | | Compiles but not yet tested. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu Jan 5 01:43:51 CET 2012 on sn-devel-104
* s3:vfs fix up vfs_gpfs after function pointer renamesChristian Ambach2011-12-151-25/+25
| | | | | | | In 422494a8e630e2ca89386344eaa5346388698a32, vfs_gpfs.c was forgotten Autobuild-User: Christian Ambach <ambi@samba.org> Autobuild-Date: Thu Dec 15 21:08:02 CET 2011 on sn-devel-104
* s3:smbd/oplock_onefs: pass smbd_server_connection to onefs_oplock_wait_record()Stefan Metzmacher2011-12-131-1/+2
| | | | metze
* vfs: Make function pointer names consistent. They all end in _fnRichard Sharpe2011-12-1245-702/+702
| | | | | Autobuild-User: Richard Sharpe <sharpe@samba.org> Autobuild-Date: Mon Dec 12 04:58:40 CET 2011 on sn-devel-104