summaryrefslogtreecommitdiffstats
path: root/source/smbd/oplock.c
Commit message (Collapse)AuthorAgeFilesLines
* Allow server manager to close open files selected by id.Jeremy Allison2008-05-271-1/+1
| | | | Jeremy.
* locking: store the write time in the locking.tdbStefan Metzmacher2008-04-071-3/+6
| | | | | | | | | This is needed to implement the strange write time update logic later. We need to store 2 time timestamps to distinguish between the time the file system had before the first client opened the file and a forced timestamp update. metze
* use talloc_tos in a few more placesVolker Lendecke2008-01-101-3/+3
|
* Refactor the crypto code after a very helpful conversationJeremy Allison2008-01-041-13/+13
| | | | | | with Volker. Mostly making sure we have data on the incoming packet type, not stored in the smb header. Jeremy.
* As the encryption is stream based there's no reasonJeremy Allison2007-12-301-5/+7
| | | | | | | oplock breaks can't be encrypted. If we have multiple contexts I should probably attach them to the connection struct, but for now use the global context number. Jeremy.
* Add SMB encryption. Still fixing client decrypt butJeremy Allison2007-12-261-1/+5
| | | | | negotiation works. Jeremy.
* Remove the smb_read_error global variable and replaceJeremy Allison2007-11-031-1/+0
| | | | | it with accessor functions. "One global or pstring a day...." :-). Jeremy.
* RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison2007-10-181-12/+12
| | | | | | | bugs in various places whilst doing this (places that assumed BOOL == int). I also need to fix the Samba4 pidl generation (next checkin). Jeremy.
* [GLUE] Rsync SAMBA_3_2_0 SVN r25598 in order to create the v3-2-test branch.samba-misc-tags/initial-v3-2-testGerald (Jerry) Carter2007-10-101-1/+1
|
* r25055: Add file_id_string_tosVolker Lendecke2007-10-101-12/+12
| | | | This removes file_id_string_static and file_id_string_static2
* 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.
* r23589: Ensure we will always release any timeout handlerJeremy Allison2007-10-101-6/+4
| | | | | | on fsp close or removal of oplock. Mulitple removals are safe. Jeremy.
* r23410: Merge the core of the cluster code.Volker Lendecke2007-10-101-0/+6
| | | | | | | | | | | | | | | | I'm 100% certain I've forgotten to merge something, but the main code should be in. It's mainly in dbwrap_ctdb.c, ctdbd_conn.c and messages_ctdbd.c. There should be no changes to the non-cluster case, it does survive make test on my laptop. It survives some very basic tests with ctdbd enables, I did not do the full test suite for clusters yet. Phew... Volker
* r23183: Check in a change made by Tridge:Volker Lendecke2007-10-101-56/+38
| | | | | | | | | | | | | 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-10-101-65/+77
| | | | tomorrow.
* r22736: Start to merge the low-hanging fruit from the now 7000-line cluster ↵Volker Lendecke2007-10-101-5/+5
| | | | | | | | | patch. This changes "struct process_id" to "struct server_id", keeping both is just too much hassle. No functional change (I hope ;-)) Volker
* r22391: Looks bigger than it is. Make "inbuf" availableJeremy Allison2007-10-101-1/+1
| | | | | | | to all callers of smb_setlen (via set_message() calls). This will allow the server to reflect back the correct encryption context. Jeremy.
* r21191: Add in the POSIX open/mkdir/unlink calls.Jeremy Allison2007-10-101-0/+2
| | | | | | | | Move more error code returns to NTSTATUS. Client test code to follow... See if this passes the build-farm before I add it into 3.0.25. Jeremy.
* r21064: The core of this patch isVolker Lendecke2007-10-101-10/+20
| | | | | | | | | | | | | | | | | | | | | | void message_register(int msg_type, void (*fn)(int msg_type, struct process_id pid, - void *buf, size_t len)) + void *buf, size_t len, + void *private_data), + void *private_data) { struct dispatch_fns *dfn; So this adds a (so far unused) private pointer that is passed from message_register to the message handler. A prerequisite to implement a tiny samba4-API compatible wrapper around our messaging system. That itself is necessary for the Samba4 notify system. Yes, I know, I could import the whole Samba4 messaging system, but I want to do it step by step and I think getting notify in is more important in this step. Volker
* r20846: Before this gets out of control...Volker Lendecke2007-10-101-2/+3
| | | | | | | | | | | This add a struct event_context and infrastructure for fd events to smbd. This is step zero to import lib/events. Jeremy, I rely on you to watch the change in receive_message_or_smb() closely. For the normal code path this should be the only relevant change. The rest is either not yet used or is cosmetic. Volker
* r20237: Replace exit_server with exit_server_cleanly where appropriate. AllJames Peach2007-10-101-3/+3
| | | | | send_smb failures should be clean exits. All times when we exit as a matter of policy should also be clean exits.
* r18224: Paranoia - ensure the oplock event handler isJeremy Allison2007-10-101-0/+6
| | | | | | | removed immediately in the handler. Extra debug info tracking down winbindd DC selection. Jeremy.
* r17452: Some C++ warningsVolker Lendecke2007-10-101-5/+5
|
* r17293: After the results from the cluster tests in Germany,Jeremy Allison2007-10-101-11/+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.
* r17134: Fix a debug messageVolker Lendecke2007-10-101-1/+1
|
* r16435: Add in the uid info that Jerry needs into theJeremy Allison2007-10-101-0/+2
| | | | | | | share_mode struct. Allows us to know the unix uid of the opener of the file/directory. Needed for info level queries on open files. Jeremy.
* r15958: Make us pass RAW-OPLOCK with kernel oplocks off.Jeremy Allison2007-10-101-0/+1
| | | | | | | This allows a requestor to set FORCE_OPLOCK_BREAK_TO_NONE to ensure we don't break to level 2. Fixed a couple of resource leaks in error paths in open_file_ntcreatex. Jeremy.
* r15668: DOS or FCB opens share one share mode entry from differentJeremy Allison2007-10-101-3/+3
| | | | | | | fsp pointers. Ensure we cope with this to pass Samba4 DENY tests (we used to pass these, there must have been a regression with newer code). We now pass them. Jeremy
* r15446: Tidy up the formatting of locking debug messages and make it moreJames Peach2007-10-101-18/+22
| | | | | consistent. Bring oplocks withing the purview of the locking debug channel.
* r15088: Remove all time() and gettimeofday() calls out of the mainlineJeremy Allison2007-10-101-15/+3
| | | | | | packet processing code. Only do these when needed (ie. in the idle timeout code). We drop an unneccessary global here too. Jeremy.
* r13916: Fix Coverity bug #29. Looks like my code. I wonder how much there is ↵Volker Lendecke2007-10-101-0/+1
| | | | | | | | still lurking... Volker
* r13571: Replace all calls to talloc_free() with thye TALLOC_FREE()Gerald Carter2007-10-101-8/+8
| | | | macro which sets the freed pointer to NULL.
* r13498: Fix the kernel oplocks code for IRIX. Should fix #3515.Jeremy Allison2007-10-101-16/+7
| | | | Jeremy.
* r13482: Push the FAM notification file descriptor into the selectJames Peach2007-10-101-10/+5
| | | | set to avoid unnecessary polling.
* r13233: build fixes for smbmnt; remove unused variable; ready to ship ↵Gerald Carter2007-10-101-1/+0
| | | | 3.0.21b now
* r13198: Fix issues exposed by Jerry's testing on 64-bit SolarisJeremy Allison2007-10-101-55/+138
| | | | | (I hope). Separate 3.0.21b patch sent to Jerry. Jeremy.
* r13192: Fix up alignment issues when printing share modeJeremy Allison2007-10-101-0/+9
| | | | | | entries. Add paranioa to debug so we know when an entry is unused. Jeremy.
* r12877: Stop passing structs around in smb messages, insteadJeremy Allison2007-10-101-55/+133
| | | | | | | | | 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.
* r12713: Remove use of uint8_t -> uint8.Jeremy Allison2007-10-101-1/+1
| | | | Jeremy.
* r12460: Fixes for bug 3349Volker Lendecke2007-10-101-0/+8
|
* r12203: Add the share path into the sharemode db. This involvesJeremy Allison2007-10-101-3/+3
| | | | | | | | | | 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.
* r10656: BIG merge from trunk. Features not copied overGerald Carter2007-10-101-1010/+321
| | | | | | | * \PIPE\unixinfo * winbindd's {group,alias}membership new functions * winbindd's lookupsids() functionality * swat (trunk changes to be reverted as per discussion with Deryck)
* r9126: Fix valgrind bug Volker found in interaction with new aio bufferJeremy Allison2007-10-101-5/+7
| | | | | flipping and oplocks. Jeremy.
* r8545: Fix oplock bug introduced by oplock code "simplification" :-).Jeremy Allison2007-10-101-5/+5
| | | | | | We *always* reply to an exclusive oplock break message even if we have no record of the oplock (and we always did before 3.0.20pre2). Jeremy.
* r8521: Another micro-step: Don't pass down a flag where not necessary.Volker Lendecke2007-10-101-14/+16
| | | | Volker
* r8508: Rename EXCLUSIVE_BREAK_SENT to BREAK_TO_NONE_SENT.Volker Lendecke2007-10-101-2/+2
| | | | Volker
* r8219: Merge the new open code from HEAD to 3.0. Haven't yet run the tortureJeremy Allison2007-10-101-29/+38
| | | | | | | | | 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 Allison2007-10-101-6/+20
| | | | Jeremy.
* r6252: Re-order position of become_root() to allow directory to beJeremy Allison2007-10-101-3/+4
| | | | | read first. Jeremy.