summaryrefslogtreecommitdiffstats
path: root/source3/smbd/smb2_lock.c
Commit message (Collapse)AuthorAgeFilesLines
* lib/util/time.c: timeval_current_ofs_msecRusty Russell2011-06-011-3/+1
| | | | | | | | | | Several places want "milliseconds from current time", and several were simply doing "msec * 1000" which can (and does in one place) result in a usec value over 1 a million. Using a helper to do this is safer and more readable. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* s3-globals Remove smbd_event_context() (use server_event_context())Andrew Bartlett2011-05-311-1/+1
| | | | | | | | This has been a wrapper around server_event_context() for some time now, and removing this from dummmysmbd.c assists with library dependencies. Andrew Bartlett
* s3-tevent: only include ../lib/util/tevent wrappers where needed.Günther Deschner2011-04-291-0/+1
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Fri Apr 29 14:00:30 CEST 2011 on sn-devel-104
* s3-messages: make ndr_messaging.h part of messages.h.Günther Deschner2011-03-301-1/+0
| | | | Guenther
* s3-messages: only include messages.h where needed.Günther Deschner2011-03-301-0/+1
| | | | Guenther
* s3: include smbd/smbd.h where needed.Günther Deschner2011-03-301-0/+1
| | | | Guenther
* s3: Remove smbd_server_conn from smb2 receive_unlock_msgVolker Lendecke2010-10-031-1/+9
|
* s3: Remove procid_self() from cancel_pending_lock_requests_by_fid_smb2()Volker Lendecke2010-07-051-1/+1
|
* s3: Remove procid_self() from remove_pending_lock()Volker Lendecke2010-07-051-1/+1
|
* s3: Remove smbd_messaging_context() from reprocess_blocked_smb2_lock()Volker Lendecke2010-07-051-1/+1
|
* s3: Remove smbd_messaging_context() from remove_pending_lock()Volker Lendecke2010-07-051-1/+1
|
* s3: Remove smbd_messaging_context() from push_blocking_lock_request_smb2()Volker Lendecke2010-07-051-1/+1
|
* s3: Remove procid_self() from push_blocking_lock_request_smb2()Volker Lendecke2010-07-051-2/+2
|
* s3-smbd: Make sure that status is initialized when used.Andreas Schneider2010-06-281-1/+1
| | | | Found by clang-analyzer.
* s3: Remove smbd_server_conn from cancel_pending_lock_requests_by_fid_smb2Volker Lendecke2010-06-121-1/+1
|
* s3: Explicitly pass sconn to process_blocking_lock_queue_smb2Volker Lendecke2010-06-121-3/+3
|
* s3: Remove smbd_server_conn from push_blocking_lock_request_smb2Volker Lendecke2010-06-121-1/+1
|
* (Finally) fix bug #7158 - SMB2 connection resets during IOZone tests from ↵Jeremy Allison2010-05-191-1/+1
| | | | | | | | | | | | 64-bit Vista client It turns out that the persistent handles are used by the Microsoft redirector to index files on oplock break requests. So even if we don't do durable handles (yet) we must set the persistent handle on create. For now just use the same handle value as we use for volatile. Jeremy.
* Fix the processing of unlocks followed by locks. We now pass SMB2-LOCK test.Jeremy Allison2010-05-101-9/+5
| | | | Jeremy.
* Fix more of the SMB2-LOCK tests. Correctly unlock locks on error.Jeremy Allison2010-05-101-3/+19
| | | | Jeremy.
* Only MULTIPLE-UNLOCK test left to fix !Jeremy Allison2010-05-071-1/+1
| | | | Jeremy.
* This patch looks bigger than it is. It does 2 things. 1). Renames smbpid -> ↵Jeremy Allison2010-05-071-14/+14
| | | | | | smblctx in our locking code. 2). Widens smblctx to 64-bits internally. Preparing to use the SMB2 handle as the locking context. Jeremy.
* Make us pass all SMB2 lock tests except MULTIPLE-UNLOCK and CONTEXT. Them ↵Jeremy Allison2010-05-071-2/+8
| | | | | | next :-). Jeremy.
* Fix cancel by close lock test.Jeremy Allison2010-05-061-24/+36
| | | | Jeremy.
* Fix more SMB2 locking. We still crash but this won't last :-).Jeremy Allison2010-05-061-45/+96
| | | | Jeremy.
* Move to MS-FSA algorithm when checking for invalid lock range.Jeremy Allison2010-05-051-7/+0
| | | | | | Satisfies SMB and SMB2. Jeremy.
* s3: only include gen_ndr headers where needed.Günther Deschner2010-05-061-0/+1
| | | | | | | | | | | | | | | | | This shrinks include/includes.h.gch by the size of 7 MB and reduces build time as follows: ccache build w/o patch real 4m21.529s ccache build with patch real 3m6.402s pch build w/o patch real 4m26.318s pch build with patch real 3m6.932s Guenther
* Get closer to passing SMB2 lock test. Still crashes but we get further.Jeremy Allison2010-05-051-24/+32
| | | | | | More work to follow later. Jeremy.
* Plumb the SMB2 front end into the blocking lock backend.Jeremy Allison2010-04-301-18/+454
| | | | | | | | | | Metze, you'll probably be happier with this work as it doesn't abuse tevent in the way you dislike. This is a first cut at the code, which will need lots of testing but I'm hoping this will give people an idea of where I'm going with this. Jeremy.
* Carefully label SMB1-specific locking calls.Jeremy Allison2010-04-291-0/+5
| | | | Jeremy.
* Plumb SMB2 stubs into all the places we defer SMB1 operations.Jeremy Allison2010-04-091-1/+1
| | | | | | | | Rename functions to be internally consistent. Next step is to cope queueing single (non-compounded) SMB2 requests to put some code inside the stubs. Jeremy.
* Stop smb2 from calling into smb1 blocking lock request code.Jeremy Allison2010-04-081-0/+20
| | | | | | | | | | | Allocate a uint16_t internal SMB1 mid for an SMB2 request. Add a back pointer from the faked up smb_request struct to the smb2 request. Getting ready to add restart code for blocking locks, share mode violations and oplocks in SMB2. Jeremy.
* s3:smbd: implement SMB2 Cancel correctly.Stefan Metzmacher2009-08-171-5/+1
| | | | metze
* libcli: move some common SMB and SMB2 stuff into libcli/smb/Stefan Metzmacher2009-08-121-1/+1
| | | | | | This will hold code that's shared between source3 and source4. metze
* s3:smbd: rename conn => sconn for smbd_server_connection structsStefan Metzmacher2009-08-081-4/+4
| | | | | | | This should avoid confusion between smbd_server_connection and connection_struct variables. metze
* s3 smb2: Remove unused variableTim Prouty2009-07-101-1/+0
|
* s3:smbd: add support for SMB2 LockStefan Metzmacher2009-07-101-1/+151
| | | | metze
* s3:smbd: pass down the client pid to smbd_smb2_lock_send()Stefan Metzmacher2009-07-101-0/+6
| | | | metze
* s3:smbd: fix parsing of SMB2 Lock requests with lock_count > 1Stefan Metzmacher2009-07-101-10/+13
| | | | | | We should not reuse the variable 'i'. metze
* s3:smbd: add marshalling layer for SMB2 Lock supportStefan Metzmacher2009-07-021-0/+229
metze