summaryrefslogtreecommitdiffstats
path: root/source3/modules
Commit message (Collapse)AuthorAgeFilesLines
* Fix try_chown code. Use new vfs_chown_fsp() which always trys fd first.Jeremy Allison2011-02-051-4/+4
| | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Feb 5 03:33:59 CET 2011 on sn-devel-104
* s3: Remove superfluous ;Günther Deschner2011-02-022-4/+4
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Wed Feb 2 15:44:21 CET 2011 on sn-devel-104
* s3: Fix bug 7940 -- fall back for utimes callsVolker Lendecke2011-02-011-4/+14
| | | | | | | | There are systems where ./configure has detected advanced utimes calls which are then not available on other kernels. We should do a proper fallback. Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Tue Feb 1 22:37:35 CET 2011 on sn-devel-104
* s3-waf: On FreeBSD, compile zfsacl if sunacl.h is around.Günther Deschner2011-01-311-1/+1
| | | | | | | | | Volker, please check. Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Mon Jan 31 10:51:10 CET 2011 on sn-devel-104
* s3: On FreeBSD, compile zfsacl if sunacl.h is aroundVolker Lendecke2011-01-301-0/+4
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sun Jan 30 12:17:49 CET 2011 on sn-devel-104
* s3-modules: Fixed the for-loop code block.Andreas Schneider2011-01-261-0/+1
| | | | s3-modules: Fixed the for-loop code block.
* s3:vfs:shadow_copy2: fix indentation in _SHADOW2_NEXT_SMB_FNAMEMichael Adam2011-01-211-2/+2
| | | | | Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Fri Jan 21 10:57:45 CET 2011 on sn-devel-104
* s3:vfs:shadow_copy2: Fix shadow-copy module for drag&drop from a snapshotVolker Lendecke2011-01-211-0/+4
| | | | | | | We have to return NT_STATUS_NOT_SAME_DEVICE to trigger the Windows client to start a copy itself. Unbeknownst to us via the ACLs snapshots are read-only, so a rename would trigger a EACCES. Unfortunately the MacOS/X finder does not do the smart NOT_SAME_DEVICE fallback that Windows does.
* s3:vfs:gpfs: fix logic when gpfs:winattr is false (the default!)Rusty Russell2011-01-211-1/+11
| | | | | | | | | | | | | | | | On my autocluster setup, it's not set. Maybe it should be? Otherwise smbclient and some Windows client programs will get errors like: # smbclient //localhost/data -Uadministrator%XXX Domain=[VSOFS1] OS=[Unix] Server=[Samba 3.4.2-ctdb-10] smb: \> put /etc/resolv.conf resolv.conf NT_STATUS_ACCESS_DENIED closing remote file \resolv.conf smb: \> Caused by attempting to update the time on close. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: Michael Adam <obnox@samba.org>
* Make processing of incoming stream rename paths common between reply_mv and ↵Jeremy Allison2011-01-201-19/+1
| | | | ntrename. Ensure we don't depend on "./" in the streams module.
* s3:vfs aio_fork children do not go awayChristian Ambach2011-01-141-1/+13
| | | | | | | | | | | | | | | on RHEL 5.5, recvmsg() does not return when it is reading from the socket and the process on the other side closes its connection. This left aio children around that should have gone already and were just wasting system resources. This patch makes the child go away by writing invalid data to it so that the child exits. Pair-Programmed-With: Volker Lendecke <vl@samba.org> Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Fri Jan 14 09:57:18 CET 2011 on sn-devel-104
* s3:vfs fix children cleanup in aio_forkChristian Ambach2011-01-141-0/+1
| | | | | | | the cleanup loop in aio_fork always stopped operation on the first inactive child it found. In case lots of children need to be reaped, it will take multiple runs before all children are gone
* Fix bug #7909 - map SYNCHRONIZE acl permission statically in zfs_acl vfs module.Paul B. Henson2011-01-132-1/+6
| | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu Jan 13 20:02:32 CET 2011 on sn-devel-104
* s3: Fix some warnings in the zfsacl moduleVolker Lendecke2011-01-081-15/+15
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sat Jan 8 13:42:20 CET 2011 on sn-devel-104
* Keep track of the sparse status of an open file handle. Allows bypass ofJeremy Allison2010-12-211-1/+1
| | | | | | | | strict allocation on sparse files. Files opened as POSIX opens are always sparse. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Tue Dec 21 04:12:22 CET 2010 on sn-devel-104
* Added call out to a Linux-compatible fallocate() when we need to extend a fileJeremy Allison2010-12-211-2/+3
| | | | | | | allocation extent without changing end-of-file size. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Tue Dec 21 02:41:24 CET 2010 on sn-devel-104
* s3: Did I say this module is from hell?Volker Lendecke2010-12-191-1/+1
|
* Rename vfs operation posix_fallocate to just fallocate and add the ↵Jeremy Allison2010-12-184-23/+34
| | | | | | | | | | | | | | | | | | | | | | vfs_fallocate_mode parameter. It turns out we need the fallocate operations to be able to both allocate and extend filesize, and to allocate and not extend filesize, and posix_fallocate can only do the former. So by defining the vfs op as posix_fallocate we lose the opportunity to use any underlying syscalls (like Linux fallocate) that can do the latter as well. We don't currently use the non-extending filesize call, but now I've changed the vfs op definition we can in the future. For the moment simply map the fallocate op onto posix_fallocate for the VFS_FALLOCATE_EXTEND_SIZE case and return ENOSYS for the VFS_FALLOCATE_KEEP_SIZE case. Jeremy. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Dec 18 08:59:27 CET 2010 on sn-devel-104
* s3/vfs_gpfs: map SPARSE attribute to/from WINATTRs, tooBjörn Jacke2010-12-171-2/+8
|
* Do more vfs_stat_fsp calls instead of FSTAT - ensures fsp->fsp_name->st is ↵Jeremy Allison2010-12-161-13/+20
| | | | | | | kept up to date. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu Dec 16 23:41:06 CET 2010 on sn-devel-104
* Protect the onefs sendfile from EAGAIN/EWOULDBLOCK.Jeremy Allison2010-12-151-1/+5
| | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Dec 15 03:26:43 CET 2010 on sn-devel-104
* Replace lseek()/write()/lseek() triple with pwrite call. We already emulate thisJeremy Allison2010-12-031-12/+2
| | | | | | | | | inside pwrite under the covers. Jeremy. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Dec 3 03:39:42 CET 2010 on sn-devel-104
* posix_fallocate() returns an errno, not -1 on error.Jeremy Allison2010-12-031-1/+1
|
* Merge the two conflicting allocation codes into one function, ↵Jeremy Allison2010-12-031-22/+4
| | | | | | | | vfs_slow_fallocate() and use that from both the truncate and fill_sparse functions. Jeremy.
* Oops. Missed adding vfswrap_posix_fallocate to vfs_default_fns table.Jeremy Allison2010-12-031-0/+1
| | | | | | | Jeremy. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Dec 3 02:26:23 CET 2010 on sn-devel-104
* Move posix_fallocate into the VFS where it belongs.Jeremy Allison2010-12-024-2/+80
| | | | Jeremy.
* s3-waf: avoid module name uppercasing.Günther Deschner2010-12-011-106/+106
| | | | | | | | | | This finally allows mixed case module names like the classic build (./configure --shared_modules=charset_CP850) Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Wed Dec 1 18:39:14 CET 2010 on sn-devel-104
* s3: Fix a typoVolker Lendecke2010-12-011-1/+1
|
* s3: Attempt to fix the shadow_copy2 moduleVolker Lendecke2010-12-011-2/+2
| | | | | | This module is from hell. Please make 100% sure that you did test it properly when touching it! This module has probably given me more grey hair than any other piece of Samba, so PLEASE PLEASE PLEASE be careful here!!!
* Fix bug #7812 - vfs_acl_xattr/vfs_acl_tdb: ACL inheritance cannot be disabledJeremy Allison2010-11-241-0/+6
| | | | | | | | | | | We were losing the incoming security descriptor revision number and most importantly the "type" field as sent by the client. Ensure we correctly store these in the xattr object. Jeremy. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Nov 24 00:18:57 CET 2010 on sn-devel-104
* switch from mtime to ctime which is more reliable if files can be accessed ↵olivier2010-11-201-4/+4
| | | | | | | outside samba as well Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Nov 20 03:07:04 CET 2010 on sn-devel-104
* Move the uglyness of #ifdef REALPATH_TAKES_NULL into the vfs_defaultJeremy Allison2010-11-207-17/+28
| | | | | | | | | | | | | module, change the signature of VFS_REALPATH to always return a malloc'ed string. Needed to make some privileges work I plan on doing shortly easier to code. Jeremy. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Nov 20 02:15:50 CET 2010 on sn-devel-104
* s3/vfs_tsmsm: remove unneeded cast to off_tBjörn Jacke2010-11-181-2/+2
| | | | | | | "off_t" is wrong on 32 bit systems anyhow ... Autobuild-User: Björn Jacke <bj@sernet.de> Autobuild-Date: Thu Nov 18 14:47:59 UTC 2010 on sn-devel-104
* s3/vfs_tsmsm: fix debug output for large filesBjörn Jacke2010-11-181-6/+6
|
* s3/time_audit: fix a change that was just for debuggin purposeѕBjörn Jacke2010-11-101-2/+2
| | | | | Autobuild-User: Björn Jacke <bjacke@samba.org> Autobuild-Date: Wed Nov 10 12:28:41 UTC 2010 on sn-devel-104
* Fix bug 7781 - Samba transforms ShareName to lowercase (sharename) when ↵Jeremy Allison2010-11-101-4/+3
| | | | | | | | | adding new share via MMC Change the find_service() interface to not depend on fstring, and create a useable talloc-based interface. Jeremy.
* s3/vfs_time_audit: use monotonic clock for time deltasBjörn Jacke2010-11-101-334/+445
| | | | | Autobuild-User: Björn Jacke <bjacke@samba.org> Autobuild-Date: Wed Nov 10 01:13:22 UTC 2010 on sn-devel-104
* s3-waf: add vfs_time_audit to the build.Günther Deschner2010-10-281-0/+8
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Thu Oct 28 15:14:27 UTC 2010 on sn-devel-104
* s3: FILE_WRITE_DATA & friends have gone from includes.hVolker Lendecke2010-10-281-0/+1
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Thu Oct 28 13:37:06 UTC 2010 on sn-devel-104
* s3: Add a vfs_time_audit moduleAbhidnya P Chirmule2010-10-281-0/+2306
| | | | | | | This warns if a file system is slow Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Thu Oct 28 08:56:44 UTC 2010 on sn-devel-104
* s3: Fix bug 7759Volodymyr Khomenko2010-10-281-16/+18
|
* s3: Make gpfs winattrs work againVolker Lendecke2010-10-271-7/+31
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Oct 27 15:32:00 UTC 2010 on sn-devel-104
* s3: fix the build of idmap_adex, idmap_tdb2, idmap_hash and several vfs modules.Günther Deschner2010-10-181-0/+1
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Mon Oct 18 14:39:39 UTC 2010 on sn-devel-104
* Ensure we have correct parameters to use Windows ACL modules.Jeremy Allison2010-10-162-4/+9
| | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Oct 16 03:36:04 UTC 2010 on sn-devel-104
* Add acl_xattr:ignore system acls boolean (normally false) to allowJeremy Allison2010-10-163-11/+38
| | | | | | | | | | | Samba ACL module to ignore mapping to lower POSIX layer. With this fix Samba 3.6.x now passes RAW-ACLs (with certain smb.conf parameters set). Jeremy. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Oct 16 01:26:31 UTC 2010 on sn-devel-104
* Add debug message to get_nt_acl_internal() to see what we got.Jeremy Allison2010-10-151-0/+7
|
* Fix valgrind "uninitialized read" error on "info" when returning !NT_STATUS_OK.Jeremy Allison2010-10-151-1/+5
| | | | Jeremy.
* Fix bug #7734 - When creating files with "inherit ACLs" set to true, we ↵Jeremy Allison2010-10-151-1/+1
| | | | | | neglect to apply appropriate create masks. Jeremy.
* s3:gpfs: Add support for the gpfs_ftruncate callChristian Ambach2010-10-133-2/+28
| | | | | | | | ported from the v3-4-ctdb branch to master This used to be commit 1f138cc9f4a Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Oct 13 13:34:25 UTC 2010 on sn-devel-104
* s3:vfs:gpfs convert sharemodes/leases parameterChristian Ambach2010-10-132-20/+64
| | | | | convert gpfs:sharemodes and gpfs:leases parameters from a global setting to a per share setting