summaryrefslogtreecommitdiffstats
path: root/source/locking
Commit message (Collapse)AuthorAgeFilesLines
* r25055: Add file_id_string_tosVolker Lendecke2007-09-102-3/+3
| | | | This removes file_id_string_static and file_id_string_static2
* r24571: Only look at errno if the close call actually failedVolker Lendecke2007-08-201-1/+4
| | | | Patch from Ofir Azoulay <Ofir.Azoulay@expand.com> -- thanks
* r24266: Remove the "open files database hash size" parameterVolker Lendecke2007-08-072-4/+2
| | | | This has been superseded by the "tdb_hashsize:<tdbname>" parameter
* r24121: merge from SAMBA_3_2:Stefan Metzmacher2007-08-021-4/+1
| | | | | | | use locking_key() instead of forming the TDB_DATA key by hand metze
* r24034: Print the full cluster pid in print_lock_structVolker Lendecke2007-07-241-2/+2
|
* r23958: Merge from 3_2-ctdb-tridge as requested by Metze.Jeremy Allison2007-07-181-0/+8
| | | | | | | | | /* cope with dead entries from the process not existing. These should not be considered valid, otherwise we end up doing zero timeout sharing violation */ Jeremy.
* r23908: Fix bug with interaction of optimization withJeremy Allison2007-07-171-8/+24
| | | | | | POSIX locking. We can't do lock counts with POSIX, so stop counting if we get a POSIX lock request. Jeremy.
* r23885: Fix make test on opi.Volker Lendecke2007-07-161-0/+1
|
* r23882: Fix Coverity id 389 -- finally (I hope)Volker Lendecke2007-07-161-7/+11
|
* r23784: use the GPLv3 boilerplate as recommended by the FSF and the license textAndrew Tridgell2007-07-103-6/+3
|
* r23780: Find and fix more GPL2 -> GPL3.Jeremy Allison2007-07-093-3/+3
| | | | Jeremy.
* r23759: Fix make test -- sorryVolker Lendecke2007-07-091-2/+2
|
* r23755: Fix Coverity id 384Volker Lendecke2007-07-091-1/+7
|
* r23516: Fix bug found & fixed by Doug Rudoff (doug_rudoff@isilon.com)Jeremy Allison2007-06-161-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.
* r23511: Merge branches/SAMBA_3_0@23510James Peach2007-06-153-28/+28
| | | | | Tidy calls to smb_panic by removing trailing newlines. Print the failed expression in SMB_ASSERT.
* r23486: Ok, this time with a hopefully successful make test in the right place:Volker Lendecke2007-06-141-4/+0
| | | | Remove two local variables
* r23316: Ouch... This would not have run in production without cluster codeVolker Lendecke2007-06-031-2/+2
| | | | anyway.
* r23222: share_mode_forall() is only for counting and status display stuff, soVolker Lendecke2007-05-291-1/+1
| | | | traverse_read is enough here
* r23204: Add MSG_SMB_BRL_VALIDATE. Tridge, this is a bit different from your bzrVolker Lendecke2007-05-291-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-05-291-10/+28
|
* r23183: Check in a change made by Tridge:Volker Lendecke2007-05-293-80/+52
| | | | | | | | | | | | | 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-05-271-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-05-271-38/+51
|
* r23164: Minor cosmetic checkinVolker Lendecke2007-05-271-2/+2
|
* r23163: Convert locking.tdb to dbwrapVolker Lendecke2007-05-271-91/+109
|
* r23162: Make use of messaging_send_bufVolker Lendecke2007-05-271-4/+2
|
* r23100: Implement the delete on close semantics I've just tested forJeremy Allison2007-05-231-1/+45
| | | | | | in Samba4 smbtorture. Fix rename on an open file handle. Needed for 3.0.25a. Jeremy.
* r23096: Make the lock failure message prettier.James Peach2007-05-231-4/+4
|
* r23014: For all branches, ensure that if we're blocked on a POSIXJeremy Allison2007-05-192-5/+26
| | | | | | | | 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.
* r22945: merge 22009 from SAMBA_3_0 + some warning fixes for new code:Stefan Metzmacher2007-05-163-18/+18
| | | | | | | | change TDB_DATA from char * to unsigned char * and fix all compiler warnings in the users metze
* r22846: Chunk one to replace message_send_pid with messaging_send: Deep insideVolker Lendecke2007-05-142-32/+45
| | | | | | 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-05-071-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-05-051-24/+15
| | | | lock_struct *
* r22588: Make all uses of TALLOC_MEMDUP consistent.Jeremy Allison2007-04-301-3/+8
| | | | Jeremy.
* r22542: Move over to using the _strict varients of the tallocJeremy Allison2007-04-271-1/+1
| | | | | calls. No functional changes. Looks bigger than it is :-). Jeremy.
* r21726: Fix stupid cut-n-paste typo. Thanks to volker forJeremy Allison2007-03-061-1/+1
| | | | | being on the ball..... :-). Jeremy.
* r21724: Optimization pointed out by Volker. If we don'tJeremy Allison2007-03-061-0/+20
| | | | | | have any outstanding locks or blocking locks then we don't need to read the lock db. on close. Jeremy.
* r21723: Make use of the per-hashchain "freelists"Volker Lendecke2007-03-062-0/+6
|
* r21711: Jeremy bugged me to keep 3.0.25 in sync :-)Volker Lendecke2007-03-051-7/+21
|
* r21257: Better fix for bug #4188 :Jeremy Allison2007-02-091-36/+1
| | | | | | Windows Vista RC1 and RC2 can't delete directory on Samba share based on work by Joe Meadows <jmeadows@webopolis.com>. Jeremy.
* r21209: Add in the POSIX extensions.Jeremy Allison2007-02-072-8/+15
| | | | Jeremy.
* r20916: Add in the delete on close final fix - but only enabledJeremy Allison2007-01-191-0/+4
| | | | | with -DDEVELOPER. Jeremy.
* r20883: W00t! I now understand how "delete on close" reallyJeremy Allison2007-01-181-23/+16
| | | | | | | | | | | | | | | | works - even with the strange "initial delete on close" semantics. The "initial delete on close" flag isn't committed to the share mode db until the handle is closed, and is discarded if any real "delete on close" was set. This allows me to remove the "initial_delete_on_close" flag from the share db, and move it into a BOOL in files_struct. Warning ! You must do a make clean after this. Cope with the wrinkle in directory delete on close which is done differently from files. We now pass all Samba4 smbtortute BASE-DELETE tests except for the one checking that files can't be created in a directory which has the delete on close set (possibly expensive to fix). Jeremy.
* r20873: Some correctness fixes w.r.t. Samba4 torture BASE-DELETE.Jeremy Allison2007-01-181-0/+40
| | | | | | | | Allow us to correctly refuse to set delete on close on a non-empty directory. There are still some delete-on-close wrinkles to be fixed, but I understand how to do that better now. I'll fix this tomorrow. Jeremy.
* r19810: more merge work....does not compile currently. Working on smbd mergeGerald Carter2006-11-213-985/+1093
|
* r17045: Make sure we're using the right pointers in theJeremy Allison2006-07-151-11/+7
| | | | | right place... Jeremy.
* r17044: One more for 3.0.23a - fix a reference after free...Jeremy Allison2006-07-151-0/+1
| | | | | (pointer swizzelling can be painful...). Jeremy.
* r17042: Fix critical memleak in POSIX locks (only) code.Jeremy Allison2006-07-141-0/+2
| | | | | This needs to be in 3.0.23a. Jeremy.
* r16674: After removing each individual post-3.0.23rc3 change:Gerald Carter2006-06-291-1/+1
| | | | | | | | | | | | | | This pulls is what I considered safe fixes from SAMBA_3_0. This boiled down to either Klocwork fixes or obvious compiler warning fixes. I did not include any changes to fnuction signatures not the version change to the passdb API. Also pulled in the 3 nmbd fixes requested by Jeremy and the wildcard delete fix. This code will sit for a few days in the cooker and then become 3.0.23 if nothing blows up. I don't care how many more compile warning fixes people throw into SAMBA_3_0.
* r16472: final pass for 3.0.23rc3 I think. Current with SAMBA_3_0 r16471Gerald Carter2006-06-221-9/+14
|