summaryrefslogtreecommitdiff
path: root/source3/smbd/smb2_lock.c
AgeCommit message (Collapse)AuthorFilesLines
2012-09-22s3:smbd: remove struct member smbd_smb2_request.cancelled - it was only writtenMichael Adam1-1/+0
2012-09-22s3:smb2_lock: let smbd_smb2_lock_cancel() trigger NT_STATUS_CANCELEDStefan Metzmacher1-26/+3
Instead of violating the tevent_req layers. metze
2012-08-05s3:smb2_lock: make use of SMBD_SMB2_* macrosStefan Metzmacher1-10/+7
metze
2012-08-05s3:smb2_lock: remove unused in_smbpidStefan Metzmacher1-8/+0
metze
2012-06-29s3:smbd: make use of smbXsrv_open for smb1/2/3Stefan Metzmacher1-1/+1
This makes sure we generate unique persistent file ids, which are stored in smbXsrv_open_global.tdb. Pair-Programmed-With: Michael Adam <obnox@samba.org> metze Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Fri Jun 29 21:01:11 CEST 2012 on sn-devel-104
2012-06-15s3:smbd: change smb2_lock.c to use fsp_fnum_dbg() for fsp->fnum logging.Michael Adam1-6/+6
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-06-09s3:smb2_lock: make use of file_fsp_smb2()Stefan Metzmacher1-30/+12
metze
2012-06-09s3:smb2_lock: use fsp->fnum as locking contextStefan Metzmacher1-1/+1
fsp->fnum is the same as in_file_id_volatile. When we start to support durable handles we should pass in_file_id_persistent. metze
2012-06-09s3:smb2_lock: use smb2req->compat_chain_fsp instead of looking it up againStefan Metzmacher1-6/+1
metze
2011-12-16s3:smbd: avoid using sconn_server_id()Stefan Metzmacher1-3/+3
metze
2011-12-14s3:smb2_lock: use talloc_get_type_abort() as private_data can't be NULLStefan Metzmacher1-5/+1
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Dec 14 13:34:25 CET 2011 on sn-devel-104
2011-12-12s3:smb2_lock: pass smbd_server_connection as private_data to ↵Stefan Metzmacher1-6/+7
received_unlock_msg() metze
2011-12-12s3:smb2_server: use sconn->ev_ctx instead of sconn->smb2.event_ctxStefan Metzmacher1-1/+1
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Dec 12 16:08:59 CET 2011 on sn-devel-104
2011-12-12s3:smb2_lock: avoid using server_event_context()Stefan Metzmacher1-2/+2
metze
2011-11-15s3:smb2_server: pass explicit defer_times to smbd_smb2_request_pending_queue()Stefan Metzmacher1-1/+1
metze
2011-09-07s3:smb2_server: use smbd_smb2_request_verify_sizes() in smb2_lock.cStefan Metzmacher1-11/+5
metze
2011-06-01lib/util/time.c: timeval_current_ofs_msecRusty Russell1-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>
2011-05-31s3-globals Remove smbd_event_context() (use server_event_context())Andrew Bartlett1-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
2011-04-29s3-tevent: only include ../lib/util/tevent wrappers where needed.Günther Deschner1-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
2011-03-30s3-messages: make ndr_messaging.h part of messages.h.Günther Deschner1-1/+0
Guenther
2011-03-30s3-messages: only include messages.h where needed.Günther Deschner1-0/+1
Guenther
2011-03-30s3: include smbd/smbd.h where needed.Günther Deschner1-0/+1
Guenther
2010-10-03s3: Remove smbd_server_conn from smb2 receive_unlock_msgVolker Lendecke1-1/+9
2010-07-05s3: Remove procid_self() from cancel_pending_lock_requests_by_fid_smb2()Volker Lendecke1-1/+1
2010-07-05s3: Remove procid_self() from remove_pending_lock()Volker Lendecke1-1/+1
2010-07-05s3: Remove smbd_messaging_context() from reprocess_blocked_smb2_lock()Volker Lendecke1-1/+1
2010-07-05s3: Remove smbd_messaging_context() from remove_pending_lock()Volker Lendecke1-1/+1
2010-07-05s3: Remove smbd_messaging_context() from push_blocking_lock_request_smb2()Volker Lendecke1-1/+1
2010-07-05s3: Remove procid_self() from push_blocking_lock_request_smb2()Volker Lendecke1-2/+2
2010-06-28s3-smbd: Make sure that status is initialized when used.Andreas Schneider1-1/+1
Found by clang-analyzer.
2010-06-12s3: Remove smbd_server_conn from cancel_pending_lock_requests_by_fid_smb2Volker Lendecke1-1/+1
2010-06-12s3: Explicitly pass sconn to process_blocking_lock_queue_smb2Volker Lendecke1-3/+3
2010-06-12s3: Remove smbd_server_conn from push_blocking_lock_request_smb2Volker Lendecke1-1/+1
2010-05-19(Finally) fix bug #7158 - SMB2 connection resets during IOZone tests from ↵Jeremy Allison1-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.
2010-05-10Fix the processing of unlocks followed by locks. We now pass SMB2-LOCK test.Jeremy Allison1-9/+5
Jeremy.
2010-05-10Fix more of the SMB2-LOCK tests. Correctly unlock locks on error.Jeremy Allison1-3/+19
Jeremy.
2010-05-07Only MULTIPLE-UNLOCK test left to fix !Jeremy Allison1-1/+1
Jeremy.
2010-05-07This patch looks bigger than it is. It does 2 things. 1). Renames smbpid -> ↵Jeremy Allison1-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.
2010-05-07Make us pass all SMB2 lock tests except MULTIPLE-UNLOCK and CONTEXT. Them ↵Jeremy Allison1-2/+8
next :-). Jeremy.
2010-05-06Fix cancel by close lock test.Jeremy Allison1-24/+36
Jeremy.
2010-05-06Fix more SMB2 locking. We still crash but this won't last :-).Jeremy Allison1-45/+96
Jeremy.
2010-05-05Move to MS-FSA algorithm when checking for invalid lock range.Jeremy Allison1-7/+0
Satisfies SMB and SMB2. Jeremy.
2010-05-06s3: only include gen_ndr headers where needed.Günther Deschner1-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
2010-05-05Get closer to passing SMB2 lock test. Still crashes but we get further.Jeremy Allison1-24/+32
More work to follow later. Jeremy.
2010-04-30Plumb the SMB2 front end into the blocking lock backend.Jeremy Allison1-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.
2010-04-29Carefully label SMB1-specific locking calls.Jeremy Allison1-0/+5
Jeremy.
2010-04-09Plumb SMB2 stubs into all the places we defer SMB1 operations.Jeremy Allison1-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.
2010-04-08Stop smb2 from calling into smb1 blocking lock request code.Jeremy Allison1-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.
2009-08-17s3:smbd: implement SMB2 Cancel correctly.Stefan Metzmacher1-5/+1
metze
2009-08-12libcli: move some common SMB and SMB2 stuff into libcli/smb/Stefan Metzmacher1-1/+1
This will hold code that's shared between source3 and source4. metze