summaryrefslogtreecommitdiffstats
path: root/source3/modules
Commit message (Collapse)AuthorAgeFilesLines
...
* s3-vfs: Remove unused lsetxattr call from VFS modules, system.c and configureAndrew Bartlett2012-04-057-127/+0
| | | | | | | If this is ever needed again, it would be more appropriate as an options argument to listxattr. Andrew Bartlett
* s3-vfs: Remove unused llistxattr call from VFS modules, system.c and configureAndrew Bartlett2012-04-056-87/+0
| | | | | | | If this is ever needed again, it would be more appropriate as an options argument to listxattr. Andrew Bartlett
* s3-vfs: Remove unused lgetxattr call from VFS modules, system.c and configureAndrew Bartlett2012-04-057-122/+0
|
* build: Remove SMB_STRUCT_DIR defineAndrew Bartlett2012-04-0517-107/+107
|
* build: Remove SMB_STRUCT_DIRENT defineAndrew Bartlett2012-04-0512-41/+41
|
* build: Remove sys_rewinddir wrapperAndrew Bartlett2012-04-052-2/+2
|
* build: Remove sys_closedir wrapperAndrew Bartlett2012-04-052-2/+2
|
* build: Remove sys_telldir wrapperAndrew Bartlett2012-04-052-2/+2
|
* build: Remove sys_seekdir wrapperAndrew Bartlett2012-04-052-2/+2
|
* build: Remove sys_readdir wrapperAndrew Bartlett2012-04-053-3/+3
|
* build: Remove sys_opendir wrapperAndrew Bartlett2012-04-052-2/+2
|
* build: Remove sys_open wrapperAndrew Bartlett2012-04-052-4/+4
|
* build: Remove sys_lseek wrapperAndrew Bartlett2012-04-051-1/+1
|
* build: Remove sys_ftruncate wrapperAndrew Bartlett2012-04-051-4/+4
|
* Remove off64_t declarationsAndrew Bartlett2012-04-052-2/+2
|
* 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.