summaryrefslogtreecommitdiffstats
path: root/source3/modules
Commit message (Collapse)AuthorAgeFilesLines
...
* s3: Fix the talloc hierarchy in shadow_copy2_connectpathVolker Lendecke2011-03-141-2/+9
| | | | | | | | We have to return on talloc_tos() because we don't have a mem_ctx given to us. So we have to create a separate temporary talloc context. Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Mon Mar 14 19:21:11 CET 2011 on sn-devel-104
* s3: This module needs rewriting...Volker Lendecke2011-03-141-1/+1
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Mon Mar 14 17:47:32 CET 2011 on sn-devel-104
* s3: Pass the aio_force operation through vfs_gpfsVolker Lendecke2011-03-021-0/+7
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Mar 2 19:24:27 CET 2011 on sn-devel-104
* s3: Ask GPFS for the IS_OFFLINE operationVolker Lendecke2011-03-021-0/+31
|
* s3: Announce HSM in the gpfs moduleVolker Lendecke2011-03-021-0/+23
|
* s3: Pass smb_filename through the set_offline vfs opVolker Lendecke2011-03-024-3/+26
|
* s3: Pass smb_filename through the is_offline vfs opVolker Lendecke2011-03-024-5/+40
|
* s3: Fix operation names in vfs_full_audit.cVolker Lendecke2011-03-021-2/+2
|
* s3: GPFS can't deal with mangled namesVolker Lendecke2011-03-021-0/+7
| | | | In getrealfilename, avoid calling the GPFS function
* Fix some typesJelmer Vernooij2011-02-281-1/+1
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Mon Feb 28 23:30:06 CET 2011 on sn-devel-104
* s3: Survive an idle child that was killedChristian Ambach2011-02-281-0/+6
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Mon Feb 28 14:53:20 CET 2011 on sn-devel-104
* s3: Improve a dbg msg in aio_forkVolker Lendecke2011-02-261-4/+7
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sat Feb 26 17:42:37 CET 2011 on sn-devel-104
* s3: Fix a 64-bit warning in vfs_gpfs.cVolker Lendecke2011-02-251-1/+2
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Fri Feb 25 14:56:51 CET 2011 on sn-devel-104
* s3-vfs: make syncops_connect in modules/vfs_syncops.c static.Günther Deschner2011-02-251-2/+2
| | | | Guenther
* Fix bug 7950 - Samba 3.5.x fails BASE-CREATEX_SHAREMODES_DIR smbtorture4 testJeremy Allison2011-02-231-1/+3
| | | | | | We need to revalidate the pathname once re-constructed from a root fsp. Jeremy.
* s3-proto: remove some prototypes of non-existing functions.Günther Deschner2011-02-231-3/+0
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Wed Feb 23 15:42:35 CET 2011 on sn-devel-104
* s3: Improve an error msg in vfs_gpfsVolker Lendecke2011-02-231-1/+2
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Feb 23 14:12:39 CET 2011 on sn-devel-104
* s3-auth Rename auth_serversupplied_info varaiables: server_info -> session_infoAndrew Bartlett2011-02-228-27/+27
| | | | | | | | | | | | | | | | | | | | | These variables, of type struct auth_serversupplied_info were poorly named when added into 2001, and in good consistant practice, this has extended all over the codebase in the years since. The structure is also not ideal for it's current purpose. Originally intended to convey the results of the authentication modules, it really describes all the essential attributes of a session. This rename will reduce the volume of a future patch to replaced these with a struct auth_session_info, with auth_serversupplied_info confined to the lower levels of the auth subsystem, and then eliminated. (The new structure will be the output of create_local_token(), and the change in struct definition will ensure that this is always run, populating local groups and privileges). Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
* vfs_smb_traffic_analyzer shall also transfer the clients IP address.Holger Hetterich2011-02-192-4/+7
| | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Feb 19 01:53:18 CET 2011 on sn-devel-104
* s3:vfs:syncops add option to disable metasync per shareChristian Ambach2011-02-181-4/+14
| | | | | | | | | | | introduce an option to disable the metadata sync in case the filesystem handles this correctly the sync can be skipped, but synchronization of the data that was written can still be configured (in opposition to the disable flag disabling all sync operations) Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Fri Feb 18 17:31:59 CET 2011 on sn-devel-104
* lib/util/charset Use top level iconv.c in source3Andrew Bartlett2011-02-183-5/+13
| | | | | | | | | | | | The two files were very similar already, the only change required was to adopt the s3 module registration fucntion name. (NTSTATUS wasn't used as the charset code does not otherwise use that type). Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-waf: use SAMBA3_*() build rules in source3/buildAndrew Tridgell2011-02-181-58/+58
| | | | | | | | | | this brings the s3 waf build much closer to the proposed s3build top level build, using the same bld.SAMBA3_*() rules There are a few renames of subsystems in here, with a 3 suffix where it would create a conflict. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s3-auth Rename cryptic 'ptok' to security_tokenAndrew Bartlett2011-02-102-3/+3
| | | | | | | | | This will allow the auth_serversupplied_info struct to be migrated to auth_session_info easier. Adnrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* Correctly plumb in VFS_FDOPENDIR.Jeremy Allison2011-02-091-0/+1
|
* Add fdopendir to the VFS. We will use this to reuse a directory fd already ↵Jeremy Allison2011-02-097-0/+203
| | | | | | | open by NtCreateX. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Feb 9 00:55:22 CET 2011 on sn-devel-104
* If possible (O_DIRECTORY exists) open an fd for a directory open.Jeremy Allison2011-02-082-2/+2
| | | | | | | | | | | Start of the move towards handle-based code for directory access. Currently makes fstat/fchown code work for directories rather than falling back to pathnames. Jeremy. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Tue Feb 8 06:34:41 CET 2011 on sn-devel-104
* 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.