summaryrefslogtreecommitdiff
path: root/source3/lib
AgeCommit message (Collapse)AuthorFilesLines
2009-03-08Convert wb_resp_read to tevent_reqVolker Lendecke2-25/+22
2009-03-08Convert wb_req_read to tevent_reqVolker Lendecke1-17/+16
2009-03-08Convert wb_req_write to tevent_reqVolker Lendecke2-27/+28
2009-03-08Add tevent_req wbc helpersVolker Lendecke1-0/+37
2009-03-08Add "queue" to writev_sendVolker Lendecke1-2/+2
Unless higher levels queue themselves somehow, writev will *always* be queued. So the queueing should be done at the right level.
2009-03-06s3:errormap: add ECANCELED, ERRDOS/ERRbadfid, NT_STATUS_CANCELLED mappingStefan Metzmacher1-0/+3
If someone knows a better dos error, please tell me... metze
2009-03-04s3:dbwrap_ctdb_marshall_add: don't leak the ctdb_rec_data to the outsideMichael Adam1-6/+6
Michael
2009-03-04s3:smbconf: move smbconf_share_exists checks into backendMichael Adam1-4/+9
Michael
2009-03-04s3: Remove madvise supportSteven Danneman1-7/+0
This reverts 193be432. The MADVISE_PROTECT is inherited by all child processes and cannot be unset. The intention of the original patch was to protect the parent process, but allow children to be killed in low memory. Since this isn't possible with the current API, reverting the whole feature.
2009-03-04s3: Fix a memleak in dbwrap_rbt.Michael Adam1-4/+4
The SMB_MALLOC'ed rbt node data was not free'd on talloc free of the db context. This is a quick fix using talloc instead of malloc for allocation of the node data. Since malloc was originally used for performance reasons, one might want to reverse to malloc and create a talloc destructor that walks the tree and frees all the node data if this talloc approach proves to be too slow.. Michael
2009-03-03Fix "ignore return" warning.Jeremy Allison1-2/+3
Jeremy.
2009-03-02Fix wbclient.c wrt tevent_req changes too.Simo Sorce1-4/+3
2009-03-02Attempt to fix the buildVolker Lendecke1-2/+2
Simo, with which compiler did you build this? I'd be curious to learn about the compiler settings that make this build. Thanks, Volker
2009-03-02Make struct tevent_req opaqueSimo Sorce2-30/+23
Move struct tevent_req in tevent_internal, and ad getters and setters for private data and the callback function. This patch also renames 'private_state' into 'data'. What is held in this pointer is in fact data and not a state like enum tevent_req_state. Calling it 'state' is confusing. The functions addedd are: tevent_req_set_callback() - sets req->async.fn and req->async.private_data tevent_req_set_print_fn() - sets req->private_print tevent_req_callback_data() - gets req->async.private_data tevent_req_data() - gets rea->data This way it is much simpler to keep API/ABI compatibility in the future.
2009-03-02Use samba3's own iconv implementation for now, until all changes areJelmer Vernooij1-2/+2
merged.
2009-03-01s3: Fix incompatible type warningsTim Prouty1-1/+1
2009-03-01Merge branch 'master' of git://git.samba.org/samba into convenienceJelmer Vernooij3-411/+16
2009-03-01Use common header file for character set handling in Samba 3 and Samba 4.Jelmer Vernooij2-3/+3
2009-03-01Move secacl to top-level.Jelmer Vernooij1-118/+0
2009-03-01Move secace.c to top-level.Jelmer Vernooij2-293/+16
2009-03-01Merge branch 'master' of ssh://git.samba.org/data/git/samba into talloc-nextJelmer Vernooij1-4/+4
2009-03-01Move next_token_talloc() to top-level.Jelmer Vernooij1-112/+0
2009-03-01Eliminate two duplicate SEC_ACE_TYPE constants already provided byJelmer Vernooij1-4/+4
security.idl.
2009-02-28Fix async reading winbindd_responseVolker Lendecke1-1/+1
2009-02-26Remove a temporary debug message -- sorryVolker Lendecke1-1/+0
2009-02-26Convert open_socket_out to tevent_reqVolker Lendecke1-41/+41
2009-02-26s3:libsmbconf: add transactions to the libsmbconf apiMichael Adam1-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
2009-02-26Add db_tdb_parseVolker Lendecke1-0/+12
Signed-off-by: Michael Adam <obnox@samba.org>
2009-02-26Add dbwrap->parse_recordVolker Lendecke1-0/+26
Signed-off-by: Michael Adam <obnox@samba.org>
2009-02-26Speed up "net conf list"Volker Lendecke1-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>
2009-02-26Speed up "net conf list"Volker Lendecke1-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>
2009-02-25s3: Report the correct path when dumping core on FreeBSDTim Prouty1-1/+83
Utilize the kern.corefile sysctl value on FreeBSD
2009-02-25s3: Refactor and cleanup the error paths in dump_core_setupTim Prouty1-42/+49
2009-02-25s3:events: map TEVENT_DEBUG_TRACE to debug level 10Stefan Metzmacher1-1/+1
metze
2009-02-24s3: Fix a bug that prevent core files from being createdTim Prouty1-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
2009-02-24Use read_packet for wb_resp_readVolker Lendecke1-90/+29
2009-02-24Use read_packet for wb_req_readVolker Lendecke1-92/+36
2009-02-24Remove read_pktVolker Lendecke1-99/+0
2009-02-24Use async writev for wb_resp_writeVolker Lendecke1-53/+23
2009-02-24Use async writev in wb_req_writeVolker Lendecke1-52/+22
2009-02-24Convert async_connect to tevent_reqVolker Lendecke2-31/+60
2009-02-24s3-lib: add marshall_sec_desc_buf and unmarshall_sec_desc_buf helpers.Günther Deschner1-0/+63
Guenther
2009-02-23Refactored sys_fork() and sys_pid() into shared util librarySteven Danneman1-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().
2009-02-23More warning fixes for Solaris.Jeremy Allison4-7/+7
Jeremy.
2009-02-20s3: Refactor of madvise() usage in c441f58dSteven Danneman1-0/+7
* move to reinit_after_fork() to protect all Samba daemons * only protect parent processes
2009-02-20Moved become_daemon() and close_low_fds() to shared util libSteven Danneman1-67/+0
2009-02-19s3: Add extid to the dev/inode pairTim Prouty1-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.
2009-02-19s3: Modify SMB_VFS_FILE_ID_CREATE to take a stat structTim Prouty1-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.
2009-02-19Fix an uninitialized variableVolker Lendecke1-0/+1
2009-02-18S3: Stop creating SMBD cores when failing to create a pipe.todd stecher1-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.