summaryrefslogtreecommitdiffstats
path: root/source3/lib
Commit message (Collapse)AuthorAgeFilesLines
* Remove a temporary debug message -- sorryVolker Lendecke2009-02-261-1/+0
|
* Convert open_socket_out to tevent_reqVolker Lendecke2009-02-261-41/+41
|
* s3:libsmbconf: add transactions to the libsmbconf apiMichael Adam2009-02-261-0/+18
| | | | | | | | | This is useful for wrapping higher level aggregate operations in transactions. The text backend implementations just return WERR_OK, the registry backend implementatoins use the regdb_transaction_start|commit|cancel routines just added. Michael
* Add db_tdb_parseVolker Lendecke2009-02-261-0/+12
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* Add dbwrap->parse_recordVolker Lendecke2009-02-261-0/+26
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* Speed up "net conf list"Volker Lendecke2009-02-261-115/+41
| | | | | | For 1000 shares this speeds up net conf list from .6 to .25 seconds on my box Signed-off-by: Michael Adam <obnox@samba.org>
* Speed up "net conf list"Volker Lendecke2009-02-261-0/+3
| | | | | | | With 1000 shares in the registry, this changed the time of "net conf list" from 1.1 seconds to .6 seconds. Signed-off-by: Michael Adam <obnox@samba.org>
* s3: Report the correct path when dumping core on FreeBSDTim Prouty2009-02-251-1/+83
| | | | Utilize the kern.corefile sysctl value on FreeBSD
* s3: Refactor and cleanup the error paths in dump_core_setupTim Prouty2009-02-251-42/+49
|
* s3:events: map TEVENT_DEBUG_TRACE to debug level 10Stefan Metzmacher2009-02-251-1/+1
| | | | metze
* s3: Fix a bug that prevent core files from being createdTim Prouty2009-02-241-1/+0
| | | | | | | Removed an erroneous free() that was causing the corepath to be NULL during dump_core(). This prevented dump_core() from actually calling abort() to create a core file. The bug was introduced in December by: 07e0094365e8dc360a83eec2e7cf9b1d5d8d6d00
* Use read_packet for wb_resp_readVolker Lendecke2009-02-241-90/+29
|
* Use read_packet for wb_req_readVolker Lendecke2009-02-241-92/+36
|
* Remove read_pktVolker Lendecke2009-02-241-99/+0
|
* Use async writev for wb_resp_writeVolker Lendecke2009-02-241-53/+23
|
* Use async writev in wb_req_writeVolker Lendecke2009-02-241-52/+22
|
* Convert async_connect to tevent_reqVolker Lendecke2009-02-242-31/+60
|
* s3-lib: add marshall_sec_desc_buf and unmarshall_sec_desc_buf helpers.Günther Deschner2009-02-241-0/+63
| | | | Guenther
* Refactored sys_fork() and sys_pid() into shared util librarySteven Danneman2009-02-231-29/+0
| | | | | | | | | | This fixes a bug in 116ce19b, where we didn't clear the pid cache in become_daemon() and thus the /var/run/smbd.pid didn't match the actual pid of the parent process. Currently S4 will clear the pid cache on fork but doesn't yet take advantage of the pid cache by using sys_pid() instead of the direct get_pid().
* More warning fixes for Solaris.Jeremy Allison2009-02-234-7/+7
| | | | Jeremy.
* s3: Refactor of madvise() usage in c441f58dSteven Danneman2009-02-201-0/+7
| | | | | * move to reinit_after_fork() to protect all Samba daemons * only protect parent processes
* Moved become_daemon() and close_low_fds() to shared util libSteven Danneman2009-02-201-67/+0
|
* s3: Add extid to the dev/inode pairTim Prouty2009-02-191-6/+24
| | | | | | | | | | | This extends the file_id struct to add an additional generic uint64_t field: extid. For backwards compatibility with dev/inodes stored in xattr_tdbs and acl_tdbs, the ext id is ignored for these databases. This patch should cause no functional change on systems that don't use SMB_VFS_FILE_ID_CREATE to set the extid. Existing code that uses the smb_share_mode library will need to be updated to be compatibile with the new extid.
* s3: Modify SMB_VFS_FILE_ID_CREATE to take a stat structTim Prouty2009-02-191-16/+1
| | | | | Since file_id_create_dev is incompatible with the concept of file_ids, it is now static and in the one file that needs it.
* Fix an uninitialized variableVolker Lendecke2009-02-191-0/+1
|
* S3: Stop creating SMBD cores when failing to create a pipe.todd stecher2009-02-181-1/+11
| | | | | | This was uncovered when the MAX FD limit was hit, causing an instant core and invoking error reporting. This fix causes SMBD to exit, but without building a core.
* Fix warning about missmatch of uint32_t and size_t.Jeremy Allison2009-02-171-1/+1
| | | | Jeremy.
* s3-netapi: fix Coverity #881 and #882.Günther Deschner2009-02-171-7/+56
| | | | Guenther
* Replace get_myname() with the talloc version from v3-3-testVolker Lendecke2009-02-131-30/+1
|
* tidy up timestamp checksBjörn Jacke2009-02-121-33/+33
| | | | | | AC_CHECK_MEMBERS should be a sufficient check, there's no need to do manual compile tests. We can also assume that we have ctime and atime members when we have the mtime member.
* s3: Implement wbcGetSidAliasesDan Sledz2009-02-111-0/+84
| | | | | | * Adds wbcGetSidAliases that calls the lookup_useraliases function. * Updates wbinfo and winbind_util.c to call the new function. * Also added winbind_get_groups helper function.
* s3: Implement wbcGetpwsidDan Sledz2009-02-111-0/+47
| | | | | | | | * Adds the plumbing required to lookup users by sid into winbind, wbinfo and smbd helper lib (winbind_util.c). * Removes some double declarations of winbind_util.c functions. * Bumps the winbind protocol version to 21 and the minor version of wbclient to 3.
* S3: Fixes for coverity issues.todd stecher2009-02-101-4/+10
|
* Add read_pkt_send/recvVolker Lendecke2009-02-101-0/+99
|
* s3 oplocks: Make the level2 oplock contention API more granularTim Prouty2009-02-091-0/+19
| | | | | | | | | | | | | | | | | | This replaces release_level2_oplocks_on_change with contend_level2_oplock_begin/end in order to contend level2 oplocks throughout an operation rather than just at the begining. This is necessary for some kernel oplock implementations, and also lays the groundwork for better correctness in Samba's standard level2 oplock handling. The next step for non-kernel oplocks is to add additional state to the share mode lock struct that prevents any new opens from granting oplocks while a contending operation is in progress. All operations that contend level 2 oplocks are now correctly spanned except for aio and synchronous writes. The two write paths both have non-trivial error paths that need extra care to get right. RAW-OPLOCK and the rest of 'make test' are still passing with this change.
* s3 async: Fix the build on systems that have ETIMEDOUT but not ETIMETim Prouty2009-02-091-4/+7
| | | | Fallback on EAGAIN
* async_sock: Use unix errnos instead of NTSTATUSKai Blin2009-02-093-143/+194
| | | | | This also switches wb_reqtrans to use wbcErr instead of NTSTATUS as it would be pointless to convert to errno first and to wbcErr later.
* netapi: add NetServer testsuite.Günther Deschner2009-02-064-1/+69
| | | | Guenther
* netapi: include more SERVER_INFO_X levels in example code.Günther Deschner2009-02-061-0/+16
| | | | Guenther
* netapi: implement more SERVER_INFO_X levels.Günther Deschner2009-02-061-1/+271
| | | | Guenther
* netapi: add SERVER_INFO_X to public header.Günther Deschner2009-02-061-0/+612
| | | | Guenther
* Have nmbd check all available interfaces for WINS before failingAravind Srinivasan2009-02-041-2/+5
| | | | | | | | | When nmbd is acting as WINS, it picks the first interface's IP as WINS server's IP. If the first interface's IP is zero, we will just quit (even though we might have other interfaces with valid IPs). This patch makes nmbd look at all interfaces and pick the first interface with a valid IP as the WINS server's IP.
* Fix bug #6082 - smbd_gpfs_getacl failed: Windows client can´t rename or ↵Jeremy Allison2009-02-021-1/+4
| | | | | | | | | delete file This fixes the generic rename/delete problem for 3.3.0 and above. Fixed slightly differently to discussions, user viewable modified ACLs are not a good idea :-). Jeremy.
* s3-wbclient: Use new tevent data typesKai Blin2009-02-022-15/+15
|
* Next step disentangling async_req from NTSTATUSVolker Lendecke2009-02-023-18/+18
| | | | Now I need to document this :-)
* Split up async_req into a generic and a NTSTATUS specific partVolker Lendecke2009-02-013-65/+65
|
* cli_get_pipe_name_from_interface does not really need a talloc_ctxVolker Lendecke2009-02-011-1/+1
|
* Remove the global variable "chain_size"Volker Lendecke2009-01-311-3/+0
|
* s3:smbconftort: don't use reserved words ('test:', 'failure:', 'success:')Stefan Metzmacher2009-01-301-31/+29
| | | | | | Temporary results printfs should not contain reserved subunit words. metze
* Merge branch 'master' of ssh://jra@git.samba.org/data/git/sambaJeremy Allison2009-01-291-1/+10
|\