summaryrefslogtreecommitdiffstats
path: root/source/locking/brlock.c
Commit message (Collapse)AuthorAgeFilesLines
* Quieten valgrind message on make valgrindtest. This doesn'tJeremy Allison2008-04-111-0/+5
| | | | | seem to be valid (vl - feel free to confirm). Jeremy.
* Merge leftovers of 0e1a86bc845 in 3-0-ctdbVolker Lendecke2008-03-171-1/+1
|
* Fix some "set but never used" warningsVolker Lendecke2008-01-201-5/+0
|
* Merge CTDB-related fixes from samba-ctdb 3.0 branch ↵Alexander Bokovoy2008-01-161-14/+15
| | | | | (http://samba.org/~tridge/3_0-ctdb) Signed-off-by: Alexander Bokovoy <ab@samba.org>
* Tiny simplificationsVolker Lendecke2007-12-101-5/+2
| | | | | | locking.c:open_read_only was unused don't export the silly boolean flag locking_init(bool read_only)
* RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison2007-10-181-28/+28
| | | | | | | bugs in various places whilst doing this (places that assumed BOOL == int). I also need to fix the Samba4 pidl generation (next checkin). Jeremy.
* r25055: Add file_id_string_tosVolker Lendecke2007-10-101-1/+1
| | | | This removes file_id_string_static and file_id_string_static2
* r24266: Remove the "open files database hash size" parameterVolker Lendecke2007-10-101-2/+1
| | | | This has been superseded by the "tdb_hashsize:<tdbname>" parameter
* r24034: Print the full cluster pid in print_lock_structVolker Lendecke2007-10-101-2/+2
|
* r23885: Fix make test on opi.Volker Lendecke2007-10-101-0/+1
|
* r23882: Fix Coverity id 389 -- finally (I hope)Volker Lendecke2007-10-101-7/+11
|
* r23784: use the GPLv3 boilerplate as recommended by the FSF and the license textAndrew Tridgell2007-10-101-2/+1
|
* r23779: Change from v2 or later to v3 or later.Jeremy Allison2007-10-101-1/+1
| | | | Jeremy.
* r23759: Fix make test -- sorryVolker Lendecke2007-10-101-2/+2
|
* r23755: Fix Coverity id 384Volker Lendecke2007-10-101-1/+7
|
* r23516: Fix bug found & fixed by Doug Rudoff (doug_rudoff@isilon.com)Jeremy Allison2007-10-101-0/+6
| | | | | | | - when cleaning up invalid locks make sure we mark the lck struct as modified so it'll get saved back correctly (that was the original intent). Jeremy.
* r23510: Tidy calls to smb_panic by removing trailing newlines. Print theJames Peach2007-10-101-5/+5
| | | | failed expression in SMB_ASSERT.
* r23316: Ouch... This would not have run in production without cluster codeVolker Lendecke2007-10-101-2/+2
| | | | anyway.
* r23204: Add MSG_SMB_BRL_VALIDATE. Tridge, this is a bit different from your bzrVolker Lendecke2007-10-101-0/+106
| | | | | | | | | | branch, please check if it fulfils your needs. Two changes: The validation is not done inside the brlock.c traverse_fn, it's done as a separate routine. Secondly, this patch does not call the checker routines in smbcontrol directly but depends on a running smbd.
* r23195: Add void *private_data to brl_forallVolker Lendecke2007-10-101-10/+28
|
* r23183: Check in a change made by Tridge:Volker Lendecke2007-10-101-11/+9
| | | | | | | | | | | | | This replaces the internal explicit dev/ino file id representation by a "struct file_id". This is necessary as cluster file systems and NFS don't necessarily assign the same device number to the shared file system. With this structure in place we can now easily add different schemes to map a file to a unique 64-bit device node. Jeremy, you might note that I did not change the external interface of smb_share_modes.c. Volker
* r23169: Merge 535 of Tridge's bzr tree:Volker Lendecke2007-10-101-2/+5
| | | | | store the right data after cleaning lock records. This fixes RAW-BENCH-LOCK after a recovery on a cluster
* r23165: Convert brlock.tdb to dbwrapVolker Lendecke2007-10-101-38/+51
|
* r23014: For all branches, ensure that if we're blocked on a POSIXJeremy Allison2007-10-101-3/+22
| | | | | | | | lock we know nothing about that we retry the lock every 10 seconds instead of waiting for the standard select timeout. This is how we used to (and are supposed to) work. Jeremy.
* r22846: Chunk one to replace message_send_pid with messaging_send: Deep insideVolker Lendecke2007-10-101-23/+28
| | | | | | locking/locking.c we have to send retry messages to timed lock holders. The majority of this patch passes a "struct messaging_context" down there. No functional change, survives make test.
* r22736: Start to merge the low-hanging fruit from the now 7000-line cluster ↵Volker Lendecke2007-10-101-6/+6
| | | | | | | | | patch. This changes "struct process_id" to "struct server_id", keeping both is just too much hassle. No functional change (I hope ;-)) Volker
* r22688: Change lock_data in struct byte_range_lock from void * to struct ↵Volker Lendecke2007-10-101-24/+15
| | | | lock_struct *
* r22588: Make all uses of TALLOC_MEMDUP consistent.Jeremy Allison2007-10-101-3/+8
| | | | Jeremy.
* r22009: change TDB_DATA from char * to unsigned char *Stefan Metzmacher2007-10-101-4/+4
| | | | | | and fix all compiler warnings in the users metze
* r21723: Make use of the per-hashchain "freelists"Volker Lendecke2007-10-101-0/+3
|
* r19668: Convert the locking params to use struct share_param instead of snumVolker Lendecke2007-10-101-8/+8
|
* r17924: Get rid of warnings now that talloc is merged.Volker Lendecke2007-10-101-3/+1
| | | | | | Destructors now take a pointer to the "real" destroyed object as an argument. Volker
* r17452: Some C++ warningsVolker Lendecke2007-10-101-2/+3
|
* r17346: Add optimisation vl needs for the cluster code whereJeremy Allison2007-10-101-8/+37
| | | | | | we don't get the chainlock when getting the byte range lock record read-only. Jeremy.
* r17314: Optimisation for POSIX locking. If we're downgradingJeremy Allison2007-10-101-29/+66
| | | | | | | a POSIX lock (applying a read-lock) and we overlap pending read locks then send them an unlock message, we may have allowed them to proceed. Jeremy.
* r17293: After the results from the cluster tests in Germany,Jeremy Allison2007-10-101-6/+0
| | | | | | | | | | | | | | | | | | | | | | | | fix the messaging code to call the efficient calls : save_re_uid() set_effective_uid(0); messaging_op restore_re_uid(); instead of using heavyweight become_root()/unbecome_root() pairs around all messaging code. Fixup the messaging code to ensure sec_init() is called (only once) so that non-root processes still work when sending messages. This is a lighter weight solution to become_root()/unbecome_root() (which swaps all the supplemental groups) and should be more efficient. I will migrate all server code over to using this (a similar technique should be used in the passdb backend where needed). Jeremy.
* r17279: conn->cnum is the tid we've given to the client. This has nothing to ↵Volker Lendecke2007-10-101-6/+6
| | | | | | | | | | do with our internal share number. Funny that it worked at all :-) Volker
* r17276: Don't change the POSIX lock ref count if posix locking = no.Jeremy Allison2007-10-101-2/+2
| | | | Jeremy.
* r17181: Fix the build farm RAW-READ bug. When making a copyJeremy Allison2007-10-101-1/+3
| | | | | | | | | | of the lock array in order to delete them individually it's also important to make a copy of the *size* of this array. Otherwise the unlock decrements the termination index of your for loop :-). Doh ! Big thanks to Volker for showing me how to set up the build farm to track this one down. This is not a 3.0.23a issue. Jeremy.
* r17105: Fix the race Volker found - we had a non-lockedJeremy Allison2007-10-101-7/+7
| | | | | | | | | | | | | | | | | | | | | region between detecting a pending lock was needed and when we added the blocking lock record. Make sure that we hold the lock over all this period. Removed the old code for doing blocking locks on SMB requests that never block (the old SMBlock and friends). Discovered something interesting about the strange NT_STATUS_FILE_LOCK_CONFLICT return. If we asked for a lock with zero timeout, and we got an error of NT_STATUS_FILE_LOCK_CONFLICT, treat it as though it was a blocking lock with a timeout of 150 - 300ms. This only happens when timeout is sent as zero and can be seen quite clearly in ethereal. This is the real replacement for old do_lock_spin() code. Re-worked the blocking lock select timeout to correctly use milliseconds instead of the old second level resolution (far too coarse for this work). Jeremy.
* r17098: Samba3 now cleanly passes Samba4 RAW-LOCK tortureJeremy Allison2007-10-101-33/+24
| | | | | | | | test. Phew - that was painful :-). But what it means is that we now implement lock cancels and I can add lock cancels into POSIX lock handling which will fix the fast/slow system call issue with cifsfs ! Jeremy.
* r17046: Ensure we're using the right pointers ...Jeremy Allison2007-10-101-11/+7
| | | | Jeremy.
* r17043: Fix memleak when processing CIFS POSIX lock/unlockJeremy Allison2007-10-101-4/+5
| | | | | | | requests. Maybe the Linux kernel OOM killer will be kinder to smbd now :-). Back to tdbtorture tests on cifsfs. Jeremy.
* r17041: Trying to track down a *big* memory leak in the new lock code.Jeremy Allison2007-10-101-1/+1
| | | | | Fix a small one first.... (easy to valgrind). Jeremy
* r16987: Fix the logic errors in ref-counting Windows locks.Jeremy Allison2007-10-101-2/+6
| | | | | | Hopefully will fix the build farm. Still a few errors in RAW-LOCK to look at though... Jeremy.
* r16973: Fix subtle logic error in lock ref counting found byJeremy Allison2007-10-101-4/+4
| | | | | cifsfs client code. Jeremy.
* r16945: Sync trunk -> 3.0 for 3.0.24 code. Still needJeremy Allison2007-10-101-106/+198
| | | | | | | to do the upper layer directories but this is what everyone is waiting for.... Jeremy.
* r15419: Never write the same function twice :-). In a traversalJeremy Allison2007-10-101-62/+60
| | | | | function we must copy the data before modifying. Jeremy.
* r15402: Fix for bug #3587. Dead entries can be left in the lockingJeremy Allison2007-10-101-1/+102
| | | | | | | db. Make this db self-cleaning on first read of entry after open, and also on smbstatus -b call. Needs more testing when I get back from Boston but passes valgrind at first look. Jeremy.
* r15269: Fix incorrect boolean in assert to make POSIX lock testsJeremy Allison2007-10-101-1/+1
| | | | | pass with CIFSFS. Jeremy.