summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* OneFS implementation of BRL VFS ops:Zack Kirsch2009-02-135-4/+479
| | | | | | | | | | | | | | | | | | | | | | | | | * Much of the beginning should look familiar, as I re-used the OneFS oplock callback record concept. This was necessary to keep our own state around - it really only consists of a lock state, per asynchronous lock that is currently unsatisfied. The onefs_cbrl_callback_records map to BLRs by the id. * There are 4 states an async lock can be in. NONE means there is no async currently out for the lock, as opposed to ASYNC. DONE means we've locked *every* lock (keep in mind a request can ask for multiple locks at a time.) ERROR is an error. * onefs_cbrl_async_success: The lock_num is incremented, and the state changed, so that when process_blocking_lock_queue is run, we will try the *next* lock, rather than the same one again. * onefs_brl_lock_windows() has some complicated logic: * We do a no-op if we're passed a BLR and the matching state is ASYNC -- this means Samba is trying to get the same lock twice, and we just need to wait longer, so we return an error. * PENDING lock calls happen when the lock is being queued on the BLQ -- we do async in this case. * We also do async in the case that we're passed a BLR, but the lock is not pending. This is an async lock being probed by process_blocking_lock_queue. * We do a sync lock for any normal first request of a lock. * Failure is returned, but it doesn't go to the client unless the lock has actually timed out.
* Add VFS ops for Windows BRL: Lock, Unlock and Cancel:Zack Kirsch2009-02-1311-110/+358
| | | | | | | | | | | | | | | | | | | | | | | This patch adds 3 new VFS OPs for Windows byte range locking: BRL_LOCK_WINDOWS, BRL_UNLOCK_WINDOWS and BRL_CANCEL_WINDOWS. Specifically: * I renamed brl_lock_windows, brl_unlock_windows and brl_lock_cancel to *_default as the default implementations of the VFS ops. * The blocking_lock_record (BLR) is now passed into the brl_lock_windows and brl_cancel_windows paths. The Onefs implementation uses it - future implementations may find it useful too. * Created brl_lock_cancel to do what brl_lock/brl_unlock do: set up a lock_struct and call either the Posix or Windows lock function. These happen to be the same for the default implementation. * Added helper functions: increment_current_lock_count() and decrement_current_lock_count(). * Minor spelling correction in brl_timeout_fn: brl -> blr. * Changed blocking_lock_cancel() to return the BLR that it has cancelled. This allows us to assert its the lock that we wanted to cancel. If this assert ever fires, this path will need to take in the BLR to cancel, rather than choosing on its own. * Adds a small helper function: find_blocking_lock_record_by_id(). Used by the OneFS implementation, but could be useful for others.
* Remove typedef struct blocking_lock_record and move references to struct ↵Zack Kirsch2009-02-131-19/+19
| | | | blocking_lock_record.
* s4:configure: require the same version for external and internal libteventStefan Metzmacher2009-02-132-2/+2
| | | | | | Until we reach 1.0.0, we better require the exact same version. metze
* tevent: raise version to 0.9.3Stefan Metzmacher2009-02-131-1/+1
| | | | | | | - aio events are removed - tevent_req infrastructure was added metze
* lib/tevent: add tevent_req infrastructureStefan Metzmacher2009-02-134-202/+303
| | | | | | | This is almost a copy of the async_req code, which will be removed later. metze
* lib/tevent: add tevent_req.c as copy of lib/async_req/async_req.cStefan Metzmacher2009-02-131-0/+338
| | | | metze
* lib/tevent: expose ev_timeval_zero() for internal usageStefan Metzmacher2009-02-132-1/+2
| | | | metze
* lib/tevent: remove broken tevent_aio supportStefan Metzmacher2009-02-135-610/+0
| | | | | | | | | | | | It makes no sense to support aio events because, the current implementation was based on IOCB_CMD_EPOLL_WAIT which never made it into the main kernel tree. The native linux aio can be used with select/epoll using eventfd(), which means we can implement aio with fd events and implement aio outside of tevent. metze
* s4:lib/socket: add socket_address_copy()Stefan Metzmacher2009-02-132-0/+35
| | | | metze
* s4:ldb_ildap: remove compiler warningsStefan Metzmacher2009-02-131-4/+9
| | | | metze
* s4:libcli/ldap: use const char * const *attributes as in all other placesStefan Metzmacher2009-02-132-2/+2
| | | | metze
* s4:ntvfs_generic: use talloc_get_type() to remote compiler warningsStefan Metzmacher2009-02-131-3/+5
| | | | metze
* s4:torture/samba3rpc: fix the build after get_myname() changesStefan Metzmacher2009-02-131-3/+3
| | | | metze
* Remove the s4 version of smbspool.cVolker Lendecke2009-02-131-353/+0
|
* Fix an uninitialized variable, introdued with 4d100f2fVolker Lendecke2009-02-131-1/+1
|
* Replace get_myname() with the talloc version from v3-3-testVolker Lendecke2009-02-1310-56/+23
|
* s3:auth: only create_local_token() should add S-1-22-X-Y sidsStefan Metzmacher2009-02-131-27/+0
| | | | metze
* s3:auth: add S-1-22-X-Y sids to the local tokenStefan Metzmacher2009-02-131-0/+38
| | | | metze
* Fix Coverity ID 707 (RESOURCE_LEAK)Volker Lendecke2009-02-131-0/+1
|
* Fix Coverity ID 742 (RESOURCE_LEAK)Volker Lendecke2009-02-131-6/+3
|
* Fix Coverity ID 744Volker Lendecke2009-02-131-1/+1
| | | | | This was marked as a resource leak. This change makes the code a bit clearer that we always free error_string.
* Fix Coverity ID 745 (RESOURCE_LEAK)Volker Lendecke2009-02-131-0/+1
|
* Remove useless invocation of messaging_init() in RPC-PAC testAndrew Bartlett2009-02-131-9/+0
|
* Merge branch 'master' of ssh://git.samba.org/data/git/samba into master-develAndrew Bartlett2009-02-131-23/+56
|\
| * s3-netlogon: implement _netr_ServerAuthenticate3.Günther Deschner2009-02-131-23/+56
| | | | | | | | Guenther
* | Push sam_get_server_info_principal into the auth subsystemAndrew Bartlett2009-02-138-63/+122
|/ | | | | | | | | This means it must be accessed via the supplied auth_context in the GENSEC server, and should remove the hard depenceny of GENSEC on the auth subsystem and ldb (allowing LDB not to rely on LDB is considered a good thing, apparently) Andrew Bartlett
* Remove auth/ntlm as a dependency of GENSEC by means of function pointers.Andrew Bartlett2009-02-1322-110/+230
| | | | | | | | | | | When starting GENSEC on the server, the auth subsystem context must be passed in, which now includes function pointers to the key elements. This should (when the other dependencies are fixed up) allow GENSEC to exist as a client or server library without bundling in too much of our server code. Andrew Bartlett
* Fix Coverity ID 871 -- do not dereference "sp" before checking for NULLVolker Lendecke2009-02-121-1/+3
|
* Fix Coverity ID 872 -- we have alread dereferenced "ac" 2 lines aboveVolker Lendecke2009-02-121-1/+1
|
* s3 onefs: rename custom parameter to plural to match previous usageSteven Danneman2009-02-123-5/+5
|
* Fix Coverity IDs 879 and 880 (RESOURCE_LEAK, REVERSE_INULL)Volker Lendecke2009-02-121-4/+7
|
* s3: Added new parameter "map untrusted to domain"Steven Danneman2009-02-125-6/+62
| | | | | | | When enabled this reverts smbd to the legacy domain remapping behavior when a user provides an untrusted domain This partially reverts d8c54fdd
* s3-spoolss: remove old spoolss_SetPrinterDataEx.Günther Deschner2009-02-124-146/+0
| | | | Guenther
* s3-spoolss: use pidl for _spoolss_SetPrinterDataEx.Günther Deschner2009-02-122-55/+23
| | | | Guenther
* s3-net: use rpccli_spoolss_SetPrinterDataEx.Günther Deschner2009-02-121-2/+9
| | | | Guenther
* s3-spoolss: remove old spoolss_GetPrinterDataEx.Günther Deschner2009-02-124-181/+0
| | | | Guenther
* s3-rpcclient: use rpccli_spoolss_GetPrinterDataEx.Günther Deschner2009-02-121-3/+41
| | | | Guenther
* s3-spoolss: use pidl for _spoolss_GetPrinterDataEx.Günther Deschner2009-02-122-73/+28
| | | | Guenther
* s3: re-run make samba3-idl.Günther Deschner2009-02-124-6/+20
| | | | Guenther
* spoolss: fix IDL for spoolss_SetPrinterDataEx.Günther Deschner2009-02-121-1/+1
| | | | Guenther
* Fix "make etags" properly :-)Volker Lendecke2009-02-121-36/+1
|
* re-run make samba3-idl.Günther Deschner2009-02-126-205/+243
| | | | Guenther
* s3-spoolss: add init_systemtime helper.Günther Deschner2009-02-123-0/+48
| | | | Guenther
* spoolss: always set version 2 in notify info and option structs.Günther Deschner2009-02-121-2/+2
| | | | Guenther
* spoolss: add spoolss_NotifyTable enum.Günther Deschner2009-02-121-1/+9
| | | | Guenther
* spoolss: fix some cases in the spoolss_NotifyData union.Günther Deschner2009-02-121-21/+12
| | | | Guenther
* spoolss: add spoolss_DriverInfo8.Günther Deschner2009-02-121-0/+28
| | | | Guenther
* spoolss: fix spoolss_AddPrinterEx IDL.Günther Deschner2009-02-121-1/+2
| | | | Guenther
* [Bug 6069] Add a fstatvfs function for libsmbclientDerrell Lipman2009-02-1212-0/+688
| | | | | | - port functionality from v3_3_test to master Derrell