summaryrefslogtreecommitdiffstats
path: root/source/smbd/close.c
Commit message (Collapse)AuthorAgeFilesLines
* r25387: Sync with 3.2.0 svn treeGerald Carter2007-09-271-49/+63
|
* r25055: Add file_id_string_tosVolker Lendecke2007-09-101-2/+2
| | | | This removes file_id_string_static and file_id_string_static2
* r24660: Merge the inbuf/outbuf changesVolker Lendecke2007-08-251-1/+0
|
* r24122: merge from SAMBA_3_2:Stefan Metzmacher2007-08-021-1/+1
| | | | | | | | | add a file_id_create() hook into the VFS layer it's needed for some cluster filesystems to overload this function. metze
* r23906: Fix POSIX unlink bug found by Steve. If weJeremy Allison2007-07-171-2/+9
| | | | | | used lstat during the open (which we always do for POSIX) then use lstat for the unlink. 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.
* r23183: Check in a change made by Tridge:Volker Lendecke2007-05-291-7/+10
| | | | | | | | | | | | | 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
* r22868: Replace some message_send_pid calls with messaging_send_pid calls. MoreVolker Lendecke2007-05-141-2/+4
| | | | tomorrow.
* r22846: Chunk one to replace message_send_pid with messaging_send: Deep insideVolker Lendecke2007-05-141-1/+1
| | | | | | 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.
* r22785: Merge Tridge's "fixed change notify for delete on close" r22784Volker Lendecke2007-05-111-0/+4
|
* r21714: Change the VFS interface to use struct timespecJeremy Allison2007-03-051-2/+2
| | | | | | | | | | for utimes - change the call to ntimes. This preserves nsec timestamps we get from stat (if the system supports it) and only maps back down to usec or sec resolution on time set. Looks bigger than it is as I had to move lots of internal code from using time_t and struct utimebuf to struct timespec. Jeremy.
* r21322: No feedback means consent :-)Volker Lendecke2007-02-131-5/+0
| | | | | | | | | | | It does not matter if I screw up 3.0.25 or 3.0.26 with this, so do it rather sooner than later. Add the notify support that already exists in 3_0 to 3_0_25. If you want to see this patch dissected into digestable parts, look at 3_0, revisions at about 20800 and following. Volker
* r21280: Fix an uninitialized variable warning. Jeremy, please check.Volker Lendecke2007-02-111-3/+3
| | | | Volker
* r21274: As we now have POSIX opens which can unlinkJeremy Allison2007-02-111-0/+9
| | | | | | | | with other open files we may have taken the delete code path with more than one share mode entry - ensure we only delete once by resetting the delete on close flag. Jeremy.
* r21209: Add in the POSIX extensions.Jeremy Allison2007-02-071-55/+56
| | | | Jeremy.
* r20916: Add in the delete on close final fix - but only enabledJeremy Allison2007-01-191-0/+1
| | | | | with -DDEVELOPER. Jeremy.
* r20883: W00t! I now understand how "delete on close" reallyJeremy Allison2007-01-181-2/+37
| | | | | | | | | | | | | | | | 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.
* r20719: Sync up the changes in the fileserver code between SAMBA_3_0.Jeremy Allison2007-01-121-5/+18
| | | | | copy now returns NTSTATUS, part of close does the same. Jeremy.
* r20534: Final merge of Volker's work - we should be in syncJeremy Allison2007-01-041-0/+12
| | | | | | | | | | | | on the file server code now except for the change notify code. "Closing a dir with del-on-close set requires the same as files: Don't actually unlink/rmdir if another process still has it open. Jeremy, this is a potential merger to 3.0.24." Jeremy.
* r20533: Adopt Volker's "Simplify logic of close_remove_share_mode()".Jeremy Allison2007-01-041-51/+67
| | | | Jeremy.
* r19810: more merge work....does not compile currently. Working on smbd mergeGerald Carter2006-11-211-4/+0
|
* r15837: starting sync up for 3.0.23rc1 (in sync with SAMBA_3_0 r15822)Gerald Carter2006-05-231-65/+75
|
* r13748: Don't reference memory after we just freed it (Doh!).Jeremy Allison2006-02-281-2/+3
| | | | | | Thanks to tridge's changes to the directory delete on close tests for catching this. Jeremy.
* r13571: Replace all calls to talloc_free() with thye TALLOC_FREE()Gerald Carter2006-02-201-2/+2
| | | | macro which sets the freed pointer to NULL.
* r13293: Rather a big patch I'm afraid, but this should fix bug #3347Jeremy Allison2006-02-021-15/+51
| | | | | | | | 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-2/+2
| | | | | | jason qian <jason@infrant.com> was a *fantastic* help in tracking this down. Jeremy.
* r12877: Stop passing structs around in smb messages, insteadJeremy Allison2006-01-121-1/+5
| | | | | | | | | 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.
* r12460: Fixes for bug 3349Volker Lendecke2005-12-241-0/+2
|
* r12213: Final fix for #3303 - send rename messages to smbd'sJeremy Allison2005-12-131-11/+34
| | | | | | | | that have open file handles to allow them to correctly implement delete on close. There is a further correctness fix I'm intending to add to this to cope with different share paths, but not right now... Jeremy.
* r12203: Add the share path into the sharemode db. This involvesJeremy Allison2005-12-121-2/+2
| | | | | | | | | | revving the minor version number for libsmbsharemodes (we now have a new _ex interface that takes the share path as well as the filename). Needed for #3303. Some code written by SATOH Fumiyasu <fumiya@samba.gr.jp> included in the changes to locking/locking.c. The smbstatus output is a bit of a mess and needs overhauling... Jeremy.
* r12160: The filename parameter to get_share_mode_lock is goingJeremy Allison2005-12-101-2/+2
| | | | | | to become very important as we fix #3303, so make sure we don't accidently set it here. Jeremy.
* r11344: I don't think share mode conflicts occur on deletingJeremy Allison2005-10-271-17/+6
| | | | | | a directory when you've got permissions. Need to write a smbtorture test for this. Jeremy.
* r11341: Put directory opens into the share mode db so weJeremy Allison2005-10-271-4/+34
| | | | | | | | can treat them similarly to file opens (delete on close, share mode violations etc.). This fixes bug #3216 I will up the default hash size on the locking db in a later commit as this means more entries. Jeremy.
* r10656: BIG merge from trunk. Features not copied overGerald Carter2005-09-301-39/+48
| | | | | | | * \PIPE\unixinfo * winbindd's {group,alias}membership new functions * winbindd's lookupsids() functionality * swat (trunk changes to be reverted as per discussion with Deryck)
* r8531: Fix a memleakVolker Lendecke2005-07-171-0/+1
|
* r8219: Merge the new open code from HEAD to 3.0. Haven't yet run the tortureJeremy Allison2005-07-081-30/+16
| | | | | | | | | tests on this as it's very late NY time (just wanted to get this work into the tree). I'll test this over the weekend.... Jerry - in looking at the difference between the two trees there seem to be some printing/ntprinting.c and registry changes we might want to examine to try keep in sync. Jeremy.
* r7963: Add aio support to 3.0.Jeremy Allison2005-06-271-0/+14
| | | | Jeremy.
* r5731: Get delayed write semantics closer to W2K3. We need to store 2 times.Jeremy Allison2005-03-101-1/+3
| | | | | This may fix bug #2382. Jeremy.
* r3121: Bug #1956. Ensure errno is saved and restored consistently on a ↵Jeremy Allison2004-10-211-8/+18
| | | | | | normal_close. Jeremy.
* r1263: Make "defer sharing violations" a global parameter.Jeremy Allison2004-06-261-0/+4
| | | | Jeremy.
* r1085: Now it's had some proper user testing, merge in the deferred open ↵Jeremy Allison2004-06-081-0/+30
| | | | | | | | fix. I'm still doing more testing, but it fixes a behaviour that we've been wrong on ever since the start of Samba. Jeremy.
* r370: The 'it does never happen -- error on close()' does happen when you exceedVolker Lendecke2004-04-261-1/+1
| | | | | | | | | | | | your quota on an AFS file system. The specific errno was thrown away by close_normal_file(). Thus we returned NT_STATUS_UNSUCCESSFUL and not NT_STATUS_DISK_FULL as we should. Fix that. (Not that this gives more sane Windows app behaviour.... :-( ) Jerry, jra, could you please look over this one, it's been quite a while since I touch file server code. Volker
* r2: import HEAD into svn+ssh://svn.samba.org/home/svn/samba/trunkCVS Import User2004-04-041-0/+311
metze