summaryrefslogtreecommitdiff
path: root/source3/modules
AgeCommit message (Collapse)AuthorFilesLines
2012-04-12Fix the same bug reported by Kirill Malkin ↵Jeremy Allison1-4/+24
<kirill.malkin@starboardstorage.com> and fixed by Volker for vfs_aio_fork as ref 0aacdbfada46329e0ad9dacfa90041a1c7dbf3e8. From that change: 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. Fix this differently here by not calling directly back into smbd, but using a new function aio_linux_setup_returns() to setup the return values that wait_for_aio_completion() in the main smbd will pick up by calling handle_aio_completd().
2012-04-12s3: Fix a typoVolker Lendecke1-1/+1
Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Thu Apr 12 23:38:24 CEST 2012 on sn-devel-104
2012-04-11Simplify the logic around doing an immediate event reschedule.Jeremy Allison1-23/+7
We don't need to do a talloc here, we already have a long-lived pointer we can pass in as the private data. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Apr 11 08:05:47 CEST 2012 on sn-devel-104
2012-04-11build: Add tevent deps for users of tevent callsAndrew Bartlett1-3/+3
This isn't strictly required - this isn't a build break at the moment, but is a good practice to directly depend on the major libraries we use, and helps us to have more fine-grained rather than global dependencies. Andrew Bartlett
2012-04-11Add a new module, aio_linux which implements Linux kernel aio support. Docs ↵Jeremy Allison2-0/+740
to follow. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Apr 11 02:29:04 CEST 2012 on sn-devel-104
2012-04-09s3: Initialize aio_pending_size from aio_pthreadVolker Lendecke1-0/+19
2012-04-09s3: Initialize aio_pending_size from aio_pthreadVolker Lendecke1-19/+22
2012-04-09s3: Move the aio signal init to the vfs moduleVolker Lendecke1-0/+8
On platforms that don't have an RT signal space, signal initialization fails. aio_fork and aio_pthread don't need the signal, so this would block them from running as well.
2012-04-06Bug found by Herb. blkcnt_t st_ex_blksize is defined as a signed value. When ↵Jeremy Allison1-0/+13
it is on a 32-bit system and defined as a long, then inside vfswrap_get_alloc_size() we cast to a uint64_t. This sign-extends when converting to unsigned, so if the high bit of st_ex_blksize is set we return insane values to clients.
2012-04-06build: Remove SMB_OFF_T, replace with off_tAndrew Bartlett20-104/+104
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
2012-04-05s3-vfs: Remove unused lremovexattr call from VFS modules, system.c and configureAndrew Bartlett7-117/+0
If this is ever needed again, it would be more appropriate as an options argument to removexattr. Andrew Bartlett
2012-04-05s3-vfs: Remove unused lsetxattr call from VFS modules, system.c and configureAndrew Bartlett7-127/+0
If this is ever needed again, it would be more appropriate as an options argument to listxattr. Andrew Bartlett
2012-04-05s3-vfs: Remove unused llistxattr call from VFS modules, system.c and configureAndrew Bartlett6-87/+0
If this is ever needed again, it would be more appropriate as an options argument to listxattr. Andrew Bartlett
2012-04-05s3-vfs: Remove unused lgetxattr call from VFS modules, system.c and configureAndrew Bartlett7-122/+0
2012-04-05build: Remove SMB_STRUCT_DIR defineAndrew Bartlett17-107/+107
2012-04-05build: Remove SMB_STRUCT_DIRENT defineAndrew Bartlett12-41/+41
2012-04-05build: Remove sys_rewinddir wrapperAndrew Bartlett2-2/+2
2012-04-05build: Remove sys_closedir wrapperAndrew Bartlett2-2/+2
2012-04-05build: Remove sys_telldir wrapperAndrew Bartlett2-2/+2
2012-04-05build: Remove sys_seekdir wrapperAndrew Bartlett2-2/+2
2012-04-05build: Remove sys_readdir wrapperAndrew Bartlett3-3/+3
2012-04-05build: Remove sys_opendir wrapperAndrew Bartlett2-2/+2
2012-04-05build: Remove sys_open wrapperAndrew Bartlett2-4/+4
2012-04-05build: Remove sys_lseek wrapperAndrew Bartlett1-1/+1
2012-04-05build: Remove sys_ftruncate wrapperAndrew Bartlett1-4/+4
2012-04-05Remove off64_t declarationsAndrew Bartlett2-2/+2
2012-04-03s3-vfs: initial work on posix:eadb moduleAndrew Bartlett2-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
2012-03-31s3-aio-fork: Fix a segfault in vfs_aio_forkVolker Lendecke1-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
2012-03-31s3-aio-fork: Fix aio_suspend event hierarchyVolker Lendecke1-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.
2012-03-31s3-aio-fork: Fix an alignment warning on OS/XVolker Lendecke1-2/+2
2012-03-30More strlcat/strlcpy truncate checks.Jeremy Allison3-8/+21
2012-03-26s3: Pass filters explicitly through vfs notify watchVolker Lendecke4-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
2012-03-24lib/util: Remove obsolete sys_getpid() and sys_fork().Jelmer Vernooij3-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
2012-03-22s3:vfs_gpfs: fix some compiler warningsChristian Ambach2-4/+4
Autobuild-User: Christian Ambach <ambi@samba.org> Autobuild-Date: Thu Mar 22 20:14:34 CET 2012 on sn-devel-104
2012-03-22s3:vfs_gpfs: remove fallback to linux_setleaseChristian Ambach1-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
2012-03-22s3:vfs_gpfs: correct use of profiling macrosChristian Ambach1-4/+5
under certain conditions START_PROFILE could have been called, but no END_PROFILE
2012-03-22s3:vfs_gpfs: Implement fallocate callback for GPFSChristof Schmitt3-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.
2012-03-22s3:vfs_gpfs: Report disk space and usage on GPFS share according to quotasChristof Schmitt1-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.
2012-03-22s3:vfs_gpfs: add GPFS api calls for quota and free space reportingChristof Schmitt2-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
2012-03-22s3:vfs_tsmsm: Fix a misspelling of a config parameter in the doc-commentMichael Adam1-1/+1
The module uses "tsmsm:dmapi attribute" instead of "tsmsm:attribute name".
2012-03-21s3: Remove "conn" from sys_notify_contextVolker Lendecke1-1/+1
2012-03-21s3: Pass "path" through vfs_notify_watchVolker Lendecke4-4/+11
2012-03-17Fix second part of bug #8811 - sd_has_inheritable_components segfaults on an ↵Jeremy Allison1-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
2012-03-11s3: Improve statvfs supportBrad Smith1-6/+6
Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Sun Mar 11 14:18:04 CET 2012 on sn-devel-104
2012-03-02s3: Further fix for bug 8777Brad Smith1-1/+1
2012-02-25s3: Fix bug 8777, sys_statvfs() wrapper support for OpenBSD/FreeBSD/DragonFlyBrad Smith1-1/+1
2012-02-10s3:vfs_gpfs:quieten an expectable warning messageChristian Ambach1-1/+5
Autobuild-User: Christian Ambach <ambi@samba.org> Autobuild-Date: Fri Feb 10 20:14:12 CET 2012 on sn-devel-104
2012-02-10s3:vfs_gpfs: fix a compiler warningChristian Ambach1-1/+2
2012-02-10s3:vfs_gpfs:Fix query of creation time from GPFSChristof Schmitt1-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>
2012-02-10s3:vfs_gpfs: make "gpfs:getrealfilename" a per share optionStefan Metzmacher2-7/+15
metze Signed-off-by: Christian Ambach <ambi@samba.org>