summaryrefslogtreecommitdiff
path: root/source3/lib
AgeCommit message (Collapse)AuthorFilesLines
2009-12-10s3: add LDAP Alias Dereferencing supportBjörn Jacke1-0/+11
Thanks to Dan Cox for initial patch for 3.0. This closes #2350.
2009-12-10s3-ldb: use GUID_to_ndr_blob()Andrew Tridgell1-2/+1
this also fixes an error in NTSTATUS handling
2009-12-08s3: make sys_posix_fallocate more genericBjörn Jacke1-4/+4
this is in preparation for other preallocation methods to be introduced.
2009-12-07s3: let gencache_init() use tdb_check()Stefan Metzmacher1-0/+25
If the check fails we try to clear the tdb and start with an empty cache. metze
2009-12-07s3: let tdb_validate_child() use tdb_check()Stefan Metzmacher1-0/+11
metze
2009-12-05s3:dbwrap_ctdb: increase the number of commit retries 5-->100Michael Adam1-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
2009-12-05s3:dbwrap_ctdb: increase the rsn of the __transaction_lock__ when storingMichael Adam1-0/+2
so that it is correctly handled by recoveries. Also set the dmaster explicitly. Michael
2009-12-05s3: Fix explicit stat64 supportVolker Lendecke1-3/+12
2009-12-04s3: check if glibc has broken posix_fallocateBjörn Jacke1-1/+1
2009-12-02Restructure the ACL code some more, get the internal semanticsJeremy Allison1-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.
2009-12-02s3: prefer posix_fallocate for doing "strict allocate"Björn Jacke1-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.
2009-12-02s3: Cope with older external libtdbVolker Lendecke1-0/+2
2009-11-29s3: Fix a "not handled in switch" warningVolker Lendecke1-0/+1
2009-11-29s3: Move directory_exist_stat to testparm.c, it only looks at the modeVolker Lendecke1-21/+0
2009-11-29s3: Pass fake_dir_create_times down to file_exist_stat, none of the callers ↵Volker Lendecke1-2/+3
look at the mtime
2009-11-29s3: "get_file_size" only looks at the sizeVolker Lendecke1-1/+1
2009-11-29s3: "socket_exist" only looks at the modeVolker Lendecke1-1/+1
2009-11-29s3: "sys_path_to_bdev" only looks at the devicenumberVolker Lendecke1-4/+3
2009-11-29s3: "check_log_size" only looks at the sizeVolker Lendecke1-2/+1
2009-11-29s3: Pass the "fake dir create times" parameter to sys_*statVolker Lendecke4-18/+25
Step 0 to restore it as a per-share paramter
2009-11-26s3-rpc: Avoid including every pipe's client and server stubs everywhere in ↵Günther Deschner11-0/+12
samba. Guenther
2009-11-25s3-registry: fix REG_MULTI_SZ handling in registry_push_value.Günther Deschner1-3/+20
Catched by smbconftort test on the buildfarm. Guenther
2009-11-24s3-registry: use push_reg_multi_sz() in registry_push_value().Günther Deschner1-59/+3
Guenther
2009-11-24s3-registry: remove reg_pull_multi_sz().Günther Deschner2-28/+18
Guenther
2009-11-23Revert "s3: Make the implicit reference to Protocol in mask_match() explicit"Volker Lendecke1-8/+4
This reverts commit e23d8a3d1f558a7e98ef2afd71e1d15c5b3a71bc.
2009-11-23Revert "s3: Make the implicit reference to Protocol in mask_match_list() ↵Volker Lendecke1-3/+3
explicit" This reverts commit 1e22899d268ae5a089f941a204413c07ee64fc78.
2009-11-23Revert "s3: Make the implicit reference to Protocol in is_in_path() explicit"Volker Lendecke1-3/+2
This reverts commit f7b4151a64d8c6851e62255a7139fd00a5fc63a3.
2009-11-23Revert "s3: Move the global variable Protocol to struct smbd_server_connection"Volker Lendecke1-0/+12
This reverts commit c85a4c9ba4a7de65a7850f6f9708df66bd24deea.
2009-11-21s3: Make alloc_sub_basic() staticVolker Lendecke1-2/+5
2009-11-21s3: Move the global variable Protocol to struct smbd_server_connectionVolker Lendecke1-12/+0
2009-11-21s3: Make the implicit reference to Protocol in is_in_path() explicitVolker Lendecke1-2/+3
2009-11-21s3: Make the implicit reference to Protocol in mask_match_list() explicitVolker Lendecke1-3/+3
2009-11-21s3: Make the implicit reference to Protocol in mask_match() explicitVolker Lendecke1-4/+8
2009-11-21s3: Fix some nonempty blank linesVolker Lendecke2-43/+42
2009-11-21s3: Avoid two calls to strcmp()Volker Lendecke1-4/+4
2009-11-21s3: Fix a bool/enum mismatchVolker Lendecke1-1/+1
2009-11-21s3:fix endianness bug in dbwrap_change_int32_atomic() (bug #6901)Michael Adam1-4/+6
Michael
2009-11-21s3:fix endianness bug in dbwrap_change_uint32_atomic() (bug #6901)Michael Adam1-4/+6
Michael
2009-11-19s3: Factor timeval_string out of current_timestring()Volker Lendecke1-12/+13
2009-11-18s3:load_interfaces(): use function gfree_interfaces() that we have.Michael Adam1-9/+1
To reduce code duplication. Michael
2009-11-17Remove "store create time" code, cause create time to be storedJeremy Allison2-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.
2009-11-15s3: Fix a memleak in sys_popenVolker Lendecke1-0/+1
Found with "dfree command" set
2009-11-14Attempt to fix the s4 build -- we can not use map_nt_error_from_unix in lib/Volker Lendecke1-0/+11
2009-11-08Revert "s3: Make libnetapi_open_pipe take strings instead of a ↵Volker Lendecke12-61/+54
ndr_interface_table" This reverts commit 5fc9d93408effe75abcd231c45cbc14656692ebe.
2009-11-08s3: Make libnetapi_open_pipe take strings instead of a ndr_interface_tableVolker Lendecke12-54/+61
2009-11-07s3: get_pipe_name_from_iface -> get_pipe_name_from_syntaxVolker Lendecke1-1/+1
2009-11-05s3: Add parameter "ctdb timeout"Volker Lendecke2-4/+21
When something in the cluster blocks, it can happen that we wait indefinitely long for ctdb, just adding to the blocking condition. In theory, nothing should block, but as someone said "In practice the difference between theory and practice is larger than in theory". This adds a timeout parameter in seconds, after which we stop waiting for ctdb and panic.
2009-11-04Remove "Protocol" as an extern, and add accessor functions.Jeremy Allison1-1/+11
Jeremy.
2009-11-03s3: Remove debug_ctx()Volker Lendecke2-18/+3
smbd just crashed on me: In a debug message I called a routine preparing a string that itself used debug_ctx. The outer routine also used it after the inner routine had returned. It was still referencing the talloc context that the outer debug_ctx() had given us, which the inner DEBUG had already freed.
2009-11-03s3:dbwrap_ctdb: add debug message to transaction_fetch_start()Michael Adam1-0/+4
for the case that another local process has started a transaction bewteen releasing the transaction_lock record and starting the transaction. Michael