Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2009-02-13 | OneFS implementation of BRL VFS ops: | Zack Kirsch | 5 | -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. | |||||
2009-02-13 | Add VFS ops for Windows BRL: Lock, Unlock and Cancel: | Zack Kirsch | 11 | -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. | |||||
2009-02-13 | Remove typedef struct blocking_lock_record and move references to struct ↵ | Zack Kirsch | 1 | -19/+19 | |
blocking_lock_record. | |||||
2009-02-13 | s4:configure: require the same version for external and internal libtevent | Stefan Metzmacher | 1 | -1/+1 | |
Until we reach 1.0.0, we better require the exact same version. metze | |||||
2009-02-13 | Fix an uninitialized variable, introdued with 4d100f2f | Volker Lendecke | 1 | -1/+1 | |
2009-02-13 | Replace get_myname() with the talloc version from v3-3-test | Volker Lendecke | 6 | -35/+6 | |
2009-02-13 | s3:auth: only create_local_token() should add S-1-22-X-Y sids | Stefan Metzmacher | 1 | -27/+0 | |
metze | |||||
2009-02-13 | s3:auth: add S-1-22-X-Y sids to the local token | Stefan Metzmacher | 1 | -0/+38 | |
metze | |||||
2009-02-13 | Fix Coverity ID 742 (RESOURCE_LEAK) | Volker Lendecke | 1 | -6/+3 | |
2009-02-13 | Fix Coverity ID 744 | Volker Lendecke | 1 | -1/+1 | |
This was marked as a resource leak. This change makes the code a bit clearer that we always free error_string. | |||||
2009-02-13 | Fix Coverity ID 745 (RESOURCE_LEAK) | Volker Lendecke | 1 | -0/+1 | |
2009-02-13 | s3-netlogon: implement _netr_ServerAuthenticate3. | Günther Deschner | 1 | -23/+56 | |
Guenther | |||||
2009-02-12 | s3 onefs: rename custom parameter to plural to match previous usage | Steven Danneman | 3 | -5/+5 | |
2009-02-12 | Fix Coverity IDs 879 and 880 (RESOURCE_LEAK, REVERSE_INULL) | Volker Lendecke | 1 | -4/+7 | |
2009-02-12 | s3: Added new parameter "map untrusted to domain" | Steven Danneman | 4 | -4/+41 | |
When enabled this reverts smbd to the legacy domain remapping behavior when a user provides an untrusted domain This partially reverts d8c54fdd | |||||
2009-02-12 | s3-spoolss: remove old spoolss_SetPrinterDataEx. | Günther Deschner | 4 | -146/+0 | |
Guenther | |||||
2009-02-12 | s3-spoolss: use pidl for _spoolss_SetPrinterDataEx. | Günther Deschner | 2 | -55/+23 | |
Guenther | |||||
2009-02-12 | s3-net: use rpccli_spoolss_SetPrinterDataEx. | Günther Deschner | 1 | -2/+9 | |
Guenther | |||||
2009-02-12 | s3-spoolss: remove old spoolss_GetPrinterDataEx. | Günther Deschner | 4 | -181/+0 | |
Guenther | |||||
2009-02-12 | s3-rpcclient: use rpccli_spoolss_GetPrinterDataEx. | Günther Deschner | 1 | -3/+41 | |
Guenther | |||||
2009-02-12 | s3-spoolss: use pidl for _spoolss_GetPrinterDataEx. | Günther Deschner | 2 | -73/+28 | |
Guenther | |||||
2009-02-12 | Fix "make etags" properly :-) | Volker Lendecke | 1 | -36/+1 | |
2009-02-12 | s3-spoolss: add init_systemtime helper. | Günther Deschner | 3 | -0/+48 | |
Guenther | |||||
2009-02-12 | [Bug 6069] Add a fstatvfs function for libsmbclient | Derrell Lipman | 9 | -0/+460 | |
- port functionality from v3_3_test to master Derrell | |||||
2009-02-12 | There are systems where nanosleep is in libc *and* in librt. | Björn Jacke | 1 | -2/+1 | |
Let's just do the test in librt when the first one failed. | |||||
2009-02-12 | tidy up timestamp checks | Björn Jacke | 2 | -319/+47 | |
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. | |||||
2009-02-12 | today valgrind is available on 64bit Linux, too | Björn Jacke | 2 | -16/+1 | |
2009-02-11 | s3: Change behavior when seeing an unknown domain. | Dan Sledz | 3 | -42/+35 | |
After a lot of testing against various Windows servers (W2K, W2K3, W2K8), within an AD domain it seems that unknown domains will only be translated to the local account domain, not the netbios name of the member server's domain. This makes samba act more like Windows. | |||||
2009-02-11 | s3: Implement wbcGetSidAliases | Dan Sledz | 7 | -88/+221 | |
* 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. | |||||
2009-02-11 | s3: Implement wbcGetpwsid | Dan Sledz | 5 | -20/+75 | |
* 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. | |||||
2009-02-11 | Fix double free caused by incorrect talloc_steal usage. | Dan Sledz | 1 | -2/+2 | |
2009-02-11 | Added nsswitch/ object files to make clean | Steven Danneman | 1 | -5/+4 | |
* also removed duplicate paths to lib directories in make clean | |||||
2009-02-12 | s3-spoolss: remove duplicate PRINTER_NOTIFY_INFO_DISCARDED define. | Günther Deschner | 1 | -2/+0 | |
Guenther | |||||
2009-02-11 | s3-spoolss: use SPOOLSS_PRINTER_CONTROL flags defined in IDL. | Günther Deschner | 2 | -10/+4 | |
Guenther | |||||
2009-02-11 | s3: remove old copy of SPOOLSS_ADDPRINTERDRIVEREX flags. | Günther Deschner | 1 | -7/+0 | |
Guenther | |||||
2009-02-11 | s3-spoolss: Fix uninitialised variable warning. | Günther Deschner | 1 | -0/+2 | |
Guenther | |||||
2009-02-11 | s3-spoolss: fix rpc_server stub names for opnum 0x42 and 0x43. | Günther Deschner | 1 | -6/+6 | |
Guenther | |||||
2009-02-11 | s3 OneFS: Expand the usage of the ignore sacl parameter | todd stecher | 2 | -0/+11 | |
2009-02-11 | s3:build: some implementations of "ln" are picky about the order of arguments | Michael Adam | 1 | -15/+15 | |
Michael | |||||
2009-02-11 | Only assign argv[1] after the argc check, thanks Tim! | Volker Lendecke | 1 | -1/+3 | |
2009-02-11 | Fix an uninitialized variable | Volker Lendecke | 1 | -1/+1 | |
2009-02-10 | s3: Remove some unused vars | Tim Prouty | 1 | -5/+3 | |
2009-02-10 | s3-rpcclient: use one macro for all printername formats. | Günther Deschner | 1 | -117/+51 | |
Guenther | |||||
2009-02-10 | s3-spoolss: remove more whitespace. | Günther Deschner | 1 | -135/+135 | |
Guenther | |||||
2009-02-10 | s3-spoolss: remove devmode fields from include file. | Günther Deschner | 1 | -34/+0 | |
Guenther | |||||
2009-02-10 | s3-spoolss: remove old spoolss_ReplyOpenPrinter. | Günther Deschner | 4 | -133/+0 | |
Guenther | |||||
2009-02-10 | s3-spoolss: use rpccli_spoolss_ReplyOpenPrinter. | Günther Deschner | 1 | -8/+10 | |
Guenther | |||||
2009-02-10 | S3: Add in missing full audit entries. | todd stecher | 1 | -6/+34 | |
2009-02-10 | S3: Fixes for coverity issues. | todd stecher | 5 | -10/+26 | |
2009-02-10 | Remove an unused extern reference | Volker Lendecke | 1 | -2/+0 | |