summaryrefslogtreecommitdiffstats
path: root/source3/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* s3:smbldap: add smbldap_talloc_first_attribute()Stefan Metzmacher2010-01-141-0/+34
| | | | | | | metze Signed-off-by: Stefan Metzmacher <metze@samba.org> (cherry picked from commit c992127f8a96c37940a6d298c7c6859c47f83d9b)
* s3: Remove unused samr_make_sam_obj_sdVolker Lendecke2010-01-101-40/+0
|
* s3-time: fix build warnings after we moved to shared time functions.Günther Deschner2010-01-081-6/+6
| | | | | | Bjoern, please check. Guenther
* s3:lib/time: remove TIME_T_MIN/MAX definesBjörn Jacke2010-01-071-8/+0
| | | | we already get them from lib/util/time.h
* ѕ3:lib/time: replace make_dos_ and put_dos_ functions with those from lib/util/Björn Jacke2010-01-071-89/+6
|
* s3:lib/time: remoce null_mtime() - use null_time()Björn Jacke2010-01-071-13/+2
|
* s3:lib/time: remove unused nt_time_equalsBjörn Jacke2010-01-071-8/+0
| | | | we have nt_time_equal doing the same in lib/util/
* s3: Adapt sid_dup_talloc to README.CodingVolker Lendecke2010-01-021-8/+9
|
* s3: add LDAP Alias Dereferencing supportBjörn Jacke2009-12-101-0/+11
| | | | Thanks to Dan Cox for initial patch for 3.0. This closes #2350.
* s3-ldb: use GUID_to_ndr_blob()Andrew Tridgell2009-12-101-2/+1
| | | | this also fixes an error in NTSTATUS handling
* s3: make sys_posix_fallocate more genericBjörn Jacke2009-12-081-4/+4
| | | | this is in preparation for other preallocation methods to be introduced.
* s3: let gencache_init() use tdb_check()Stefan Metzmacher2009-12-071-0/+25
| | | | | | | If the check fails we try to clear the tdb and start with an empty cache. metze
* s3: let tdb_validate_child() use tdb_check()Stefan Metzmacher2009-12-071-0/+11
| | | | metze
* s3:dbwrap_ctdb: increase the number of commit retries 5-->100Michael Adam2009-12-051-1/+1
| | | | | | | | This is to cope with timeouts when recoveries and transactions collide. Maybe 100 is too hight, but 10 or even 20 have been too low in a very busy environment. Michael
* s3:dbwrap_ctdb: increase the rsn of the __transaction_lock__ when storingMichael Adam2009-12-051-0/+2
| | | | | | | so that it is correctly handled by recoveries. Also set the dmaster explicitly. Michael
* s3: Fix explicit stat64 supportVolker Lendecke2009-12-051-3/+12
|
* s3: check if glibc has broken posix_fallocateBjörn Jacke2009-12-041-1/+1
|
* Restructure the ACL code some more, get the internal semanticsJeremy Allison2009-12-021-0/+20
| | | | | | | | | | | | | | | | | right. The previous bugs were due to the fact that get_nt_acl_internal() could return an NTSTATUS error if there was no stored ACL blob, but otherwise would return the underlying ACL from the filysystem. Fix this so it always returns a valid acl if it can, and if it does not its an error to be reported back to the client. This then changes the inherit acl code. Previously we were trying to match Windows by setting a minimal ACL on a new file that didn't inherit anything from a parent directory. This is silly - the returned ACL wouldn't match the underlying UNIX permissions. The current code will correctly inherit from a parent if a parent has any inheritable ACE entries that apply to the new object, but will return a mapping from the underlying UNIX permissions if the parent has no inheritable entries. This makes much more sense for new files/directories. Jeremy.
* s3: prefer posix_fallocate for doing "strict allocate"Björn Jacke2009-12-021-0/+14
| | | | | | | | | | | | | | | | posix_fallocate is more efficient than manual zero'ing the file. When preallocation in kernel space is supported it's extremely fast. Support for preallocation at fs layer via posix_fallocate and fallocate at kernel site can be found in Linux kernel 2.6.23/glibc 2.10 with ext4, XFS and OCFS2. Other systems that I know of which support fast preallocation in kernel space are AIX 6.1 with JFS2 and recent Solaris versions with ZFS maybe UFS2, too. People who have a system with preallocation in kernel space might want to set "strict allocate = yes". This reduces file fragentation and it's also safer for setups with quota being turned on. As of today most systems still don't have preallocation in kernel space, and that's why "strict allocate = no" will stay the default for now.
* s3: Cope with older external libtdbVolker Lendecke2009-12-021-0/+2
|
* s3: Fix a "not handled in switch" warningVolker Lendecke2009-11-291-0/+1
|
* s3: Move directory_exist_stat to testparm.c, it only looks at the modeVolker Lendecke2009-11-291-21/+0
|
* s3: Pass fake_dir_create_times down to file_exist_stat, none of the callers ↵Volker Lendecke2009-11-291-2/+3
| | | | look at the mtime
* s3: "get_file_size" only looks at the sizeVolker Lendecke2009-11-291-1/+1
|
* s3: "socket_exist" only looks at the modeVolker Lendecke2009-11-291-1/+1
|
* s3: "sys_path_to_bdev" only looks at the devicenumberVolker Lendecke2009-11-291-4/+3
|
* s3: "check_log_size" only looks at the sizeVolker Lendecke2009-11-291-2/+1
|
* s3: Pass the "fake dir create times" parameter to sys_*statVolker Lendecke2009-11-294-18/+25
| | | | Step 0 to restore it as a per-share paramter
* s3-rpc: Avoid including every pipe's client and server stubs everywhere in ↵Günther Deschner2009-11-2611-0/+12
| | | | | | samba. Guenther
* s3-registry: fix REG_MULTI_SZ handling in registry_push_value.Günther Deschner2009-11-251-3/+20
| | | | | | Catched by smbconftort test on the buildfarm. Guenther
* s3-registry: use push_reg_multi_sz() in registry_push_value().Günther Deschner2009-11-241-59/+3
| | | | Guenther
* s3-registry: remove reg_pull_multi_sz().Günther Deschner2009-11-242-28/+18
| | | | Guenther
* Revert "s3: Make the implicit reference to Protocol in mask_match() explicit"Volker Lendecke2009-11-231-8/+4
| | | | This reverts commit e23d8a3d1f558a7e98ef2afd71e1d15c5b3a71bc.
* Revert "s3: Make the implicit reference to Protocol in mask_match_list() ↵Volker Lendecke2009-11-231-3/+3
| | | | | | explicit" This reverts commit 1e22899d268ae5a089f941a204413c07ee64fc78.
* Revert "s3: Make the implicit reference to Protocol in is_in_path() explicit"Volker Lendecke2009-11-231-3/+2
| | | | This reverts commit f7b4151a64d8c6851e62255a7139fd00a5fc63a3.
* Revert "s3: Move the global variable Protocol to struct smbd_server_connection"Volker Lendecke2009-11-231-0/+12
| | | | This reverts commit c85a4c9ba4a7de65a7850f6f9708df66bd24deea.
* s3: Make alloc_sub_basic() staticVolker Lendecke2009-11-211-2/+5
|
* s3: Move the global variable Protocol to struct smbd_server_connectionVolker Lendecke2009-11-211-12/+0
|
* s3: Make the implicit reference to Protocol in is_in_path() explicitVolker Lendecke2009-11-211-2/+3
|
* s3: Make the implicit reference to Protocol in mask_match_list() explicitVolker Lendecke2009-11-211-3/+3
|
* s3: Make the implicit reference to Protocol in mask_match() explicitVolker Lendecke2009-11-211-4/+8
|
* s3: Fix some nonempty blank linesVolker Lendecke2009-11-212-43/+42
|
* s3: Avoid two calls to strcmp()Volker Lendecke2009-11-211-4/+4
|
* s3: Fix a bool/enum mismatchVolker Lendecke2009-11-211-1/+1
|
* s3:fix endianness bug in dbwrap_change_int32_atomic() (bug #6901)Michael Adam2009-11-211-4/+6
| | | | Michael
* s3:fix endianness bug in dbwrap_change_uint32_atomic() (bug #6901)Michael Adam2009-11-211-4/+6
| | | | Michael
* s3: Factor timeval_string out of current_timestring()Volker Lendecke2009-11-191-12/+13
|
* s3:load_interfaces(): use function gfree_interfaces() that we have.Michael Adam2009-11-181-9/+1
| | | | | | To reduce code duplication. Michael
* Remove "store create time" code, cause create time to be storedJeremy Allison2009-11-172-0/+34
| | | | | | | | | | | | in the "user.DOSATTRIB" EA. From the docs: In Samba 3.5.0 and above the "user.DOSATTRIB" extended attribute has been extended to store the create time for a file as well as the DOS attributes. This is done in a backwards compatible way so files created by Samba 3.5.0 and above can still have the DOS attribute read from this extended attribute by earlier versions of Samba, but they will not be able to read the create time stored there. Storing the create time separately from the normal filesystem meta-data allows Samba to faithfully reproduce NTFS semantics on top of a POSIX filesystem. Passes make test but will need more testing. Jeremy.
* s3: Fix a memleak in sys_popenVolker Lendecke2009-11-151-0/+1
| | | | Found with "dfree command" set