summaryrefslogtreecommitdiff
path: root/source3/smbd/smb2_lock.c
AgeCommit message (Collapse)AuthorFilesLines
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
2009-08-08s3:smbd: rename conn => sconn for smbd_server_connection structsStefan Metzmacher1-4/+4
This should avoid confusion between smbd_server_connection and connection_struct variables. metze
2009-07-10s3 smb2: Remove unused variableTim Prouty1-1/+0
2009-07-10s3:smbd: add support for SMB2 LockStefan Metzmacher1-1/+151
metze
2009-07-10s3:smbd: pass down the client pid to smbd_smb2_lock_send()Stefan Metzmacher1-0/+6
metze
2009-07-10s3:smbd: fix parsing of SMB2 Lock requests with lock_count > 1Stefan Metzmacher1-10/+13
We should not reuse the variable 'i'. metze
2009-07-02s3:smbd: add marshalling layer for SMB2 Lock supportStefan Metzmacher1-0/+229
metze