summaryrefslogtreecommitdiffstats
path: root/source/locking/locking.c
Commit message (Collapse)AuthorAgeFilesLines
* r25055: Add file_id_string_tosVolker Lendecke2007-09-101-2/+2
| | | | This removes file_id_string_static and file_id_string_static2
* r24266: Remove the "open files database hash size" parameterVolker Lendecke2007-08-071-2/+1
| | | | 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
* 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.
* r23784: use the GPLv3 boilerplate as recommended by the FSF and the license textAndrew Tridgell2007-07-101-2/+1
|
* r23780: Find and fix more GPL2 -> GPL3.Jeremy Allison2007-07-091-1/+1
| | | | Jeremy.
* r23511: Merge branches/SAMBA_3_0@23510James Peach2007-06-151-12/+12
| | | | | 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
* r23222: share_mode_forall() is only for counting and status display stuff, soVolker Lendecke2007-05-291-1/+1
| | | | traverse_read is enough here
* r23183: Check in a change made by Tridge:Volker Lendecke2007-05-291-51/+35
| | | | | | | | | | | | | 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
* 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.
* r23014: For all branches, ensure that if we're blocked on a POSIXJeremy Allison2007-05-191-2/+4
| | | | | | | | 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-161-10/+10
| | | | | | | | 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-141-9/+17
| | | | | | 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.
* 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-061-0/+3
|
* 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-071-3/+6
| | | | 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-211-123/+126
|
* 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
|
* r16348: * merging changes from SAMBA_3_0 r16346Gerald Carter2006-06-191-1/+1
| | | | * updating release notes to match
* r16104: Set version to 3.0.23rc2Gerald Carter2006-06-081-1/+1
| | | | | Bring release tree up to current 3.0 tree (svn merge -r15845:16103 $SVNURL/branches/SAMBA_3_0)
* r15837: starting sync up for 3.0.23rc1 (in sync with SAMBA_3_0 r15822)Gerald Carter2006-05-231-16/+8
|
* r15083: Using talloc with destructors is nice and all, but in thisJeremy Allison2006-04-131-12/+12
| | | | | | | case it's in a performace critical path and it *hurts* us. Go back to plain malloc/free with an explicit destructor call. Jeremy.
* r15018: Merge Volker's ipc/trans2/nttrans changes overJeremy Allison2006-04-101-118/+187
| | | | | | | | into 3.0. Also merge the new POSIX lock code - this is not enabled unless -DDEVELOPER is defined. This doesn't yet map onto underlying system POSIX locks. Updates vfs to allow lock queries. Jeremy.
* r14763: Add a new tuning parameter, open files database hash size,Jeremy Allison2006-03-291-1/+2
| | | | | | | | | this allows us to experiment with ensuring the tdb hash size for our open files and locking db are appropriately sized. Make the hash size larger by default (10007 instead of 1049) and make the locking db hash size the same as the open file db hash size. Jeremy.
* r14428: Call fill_share_mode_entry with NO_OPLOCK instead of 0.James Peach2006-03-151-3/+3
|
* r13571: Replace all calls to talloc_free() with thye TALLOC_FREE()Gerald Carter2006-02-201-7/+7
| | | | macro which sets the freed pointer to NULL.
* r13412: Don't use arbitrary uint32 size for uid and gid storage. UseJeremy Allison2006-02-091-23/+22
| | | | | | correct system size. Fixed a bug that was accidentally introduced by use of uint32 - uid was stored twice, not uid and gid. Jeremy.
* r13329: Fix libsmbsharemodes.so to work with the stored delete token.Jeremy Allison2006-02-041-18/+0
| | | | | | Less trouble than I thought plus it didn't need an interface change (thank goodness !). Jeremy.
* r13294: Fix basic delete on close tests - don't forget to tellJeremy Allison2006-02-021-5/+10
| | | | | the data struct how big the token is... :-). Jeremy.
* r13293: Rather a big patch I'm afraid, but this should fix bug #3347Jeremy Allison2006-02-021-15/+142
| | | | | | | | by saving the UNIX token used to set a delete on close flag, and using it when doing the delete. libsmbsharemodes.so still needs updating to cope with this change. Samba4 torture tests to follow. Jeremy.
* r13274: Fix for bug #3467. Not a show stopper.Jeremy Allison2006-02-011-3/+17
| | | | | | jason qian <jason@infrant.com> was a *fantastic* help in tracking this down. Jeremy.
* r13198: Fix issues exposed by Jerry's testing on 64-bit SolarisJeremy Allison2006-01-271-22/+0
| | | | | (I hope). Separate 3.0.21b patch sent to Jerry. Jeremy.
* r13194: Don't do extra memcpy's unless we're asked to.Jeremy Allison2006-01-271-1/+5
| | | | Jeremy.
* r13192: Fix up alignment issues when printing share modeJeremy Allison2006-01-271-4/+8
| | | | | | entries. Add paranioa to debug so we know when an entry is unused. Jeremy.
* r13110: remove an invalid debug message about call get_share_mode_lock() ↵Gerald Carter2006-01-241-1/+0
| | | | with a NULL service path and fname (we do it all the time internally)
* r12877: Stop passing structs around in smb messages, insteadJeremy Allison2006-01-121-7/+10
| | | | | | | | | always linearize into little-endian. Should fix all Solaris issues with this, plus provide a cleaner base moving forward for cluster-aware Samba where smbd's can communicate across different compilers/architectures (eventually these message will have to go cross-machine). Jeremy.
* r12234: Reduce the race condition for renames by holding the lockJeremy Allison2005-12-141-1/+5
| | | | | | longer. Instigated by complaints on the fix for #3303 from SATOH Fumiyasu <fumiyas@miraclelinux.com>. Jeremy.