Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | SMB2 always have level2 oplock capability. Correct mapping from break ↵ | Jeremy Allison | 2010-05-10 | 1 | -1/+0 |
| | | | | | | messages to SMB2 oplock levels. Jeremy. | ||||
* | This patch looks bigger than it is. It does 2 things. 1). Renames smbpid -> ↵ | Jeremy Allison | 2010-05-07 | 1 | -2/+2 |
| | | | | | | 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 Allison | 2010-05-07 | 1 | -1/+2 |
| | | | | | | next :-). Jeremy. | ||||
* | Fix more SMB2 locking. We still crash but this won't last :-). | Jeremy Allison | 2010-05-06 | 1 | -1/+1 |
| | | | | Jeremy. | ||||
* | Plumb the SMB2 front end into the blocking lock backend. | Jeremy Allison | 2010-04-30 | 1 | -7/+7 |
| | | | | | | | | | | 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 Allison | 2010-04-29 | 1 | -0/+2 |
| | | | | Jeremy. | ||||
* | Move the global blocking lock records into the smb1 state. | Jeremy Allison | 2010-04-29 | 1 | -12/+12 |
| | | | | Jeremy | ||||
* | Update (C) for 2010. | Jeremy Allison | 2010-04-28 | 1 | -0/+1 |
| | | | | Jeremy. | ||||
* | s3:smbd: keep local and remote tsocket_address per connection | Stefan Metzmacher | 2010-04-27 | 1 | -0/+2 |
| | | | | metze | ||||
* | Implement oplocks within SMB2. Plumb into the existing SMB1 oplock system. | Jeremy Allison | 2010-04-24 | 1 | -2/+3 |
| | | | | | | Seems to work but needs more tests (to be added). Jeremy. | ||||
* | Allow smb2 create requests to be cancelled. | Jeremy Allison | 2010-04-23 | 1 | -0/+1 |
| | | | | Jeremy. | ||||
* | Make deferred opens (NT_STATUS_SHARING_VIOLATION) work over SMB2. | Jeremy Allison | 2010-04-22 | 1 | -5/+10 |
| | | | | | | | | Makes SMB2Create call re-entrant internally. Now this infrastructure is in place, oplocks will follow shortly. Tested with Win7 client and with W2K8R2. Jeremy. | ||||
* | First part of fix for bug #7331 - Compound async SMB 2 requests don't work ↵ | Jeremy Allison | 2010-04-17 | 1 | -0/+2 |
| | | | | | | | | | | | | | | | | right. Gets us handling SMB2 compound async requests similar to W2K8R2 (and triggers the same client bug in the Win7 redirector). Great thanks to Ira Cooper <samba@ira.wakeful.net> for helping with this and to Metze for the wonderful async framework. The one thing I need to fix to make us identical to W2K8R2 is that when a compound request goes async at the end W2K8R2 splits the replies up into a compound non-async reply followed by a separate async reply. Currently we're doing the whole thing in a compound reply. Jeremy. | ||||
* | Move to using 64-bit mid values in our internal open file database. | Jeremy Allison | 2010-04-12 | 1 | -10/+4 |
| | | | | | | | This will allow us to share logic much easier between SMB1 and SMB2 servers. Jeremy | ||||
* | Plumb SMB2 stubs into all the places we defer SMB1 operations. | Jeremy Allison | 2010-04-09 | 1 | -3/+14 |
| | | | | | | | | 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 Allison | 2010-04-08 | 1 | -0/+17 |
| | | | | | | | | | | | 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. | ||||
* | Simplify call_trans2qfilepathinfo() and smbd_do_qfilepathinfo() | Jeremy Allison | 2010-04-08 | 1 | -1/+0 |
| | | | | | | | | | | | | Remove the bool ms_dfs_link parameter from smbd_do_qfilepathinfo. It is not possible for this to be a DFS link. Remove the check_msdfs_link() call from call_trans2qfilepathinfo() - the call to filename_convert() above with a ucf_flags of zero *MUST* catch a DFS link and return NT_STATUS_PATH_NOT_COVERED in this case, so the code below checking for msdfs links is redundent. Don't add this to 3.5.x, as it's an optimization but not needed to fix bug #7339 - MSDFS is non-functional in 3.5.x. Jeremy. | ||||
* | Start to plumb smb2 into the oplock system. Calls dummy functions for now. | Jeremy Allison | 2010-04-07 | 1 | -0/+3 |
| | | | | Jeremy. | ||||
* | Make smbd_lock_socket/smbd_unlock_socket recursive with a ref_count. | Jeremy Allison | 2010-03-31 | 1 | -2/+8 |
| | | | | | | | | | As these always call exit_server, make that part of the function. Use _internal functions for the echo client. Metze please check ! Jeremy. | ||||
* | s3:smbd: add echo handler information to struct smbd_server_connection | Stefan Metzmacher | 2010-03-22 | 1 | -0/+19 |
| | | | | metze | ||||
* | s3:smbd: add smbd_[un]lock_socket() dummies | Stefan Metzmacher | 2010-03-22 | 1 | -0/+3 |
| | | | | metze | ||||
* | s3: Abstract access to sessionid.tdb, similar to conn_tdb.c | Volker Lendecke | 2010-03-01 | 1 | -2/+0 |
| | |||||
* | Remove the global char *LastDir. | Jeremy Allison | 2010-01-12 | 1 | -1/+0 |
| | | | | This is no longer used for anything. | ||||
* | Revert "s3: Move the global variable Protocol to struct smbd_server_connection" | Volker Lendecke | 2009-11-23 | 1 | -1/+0 |
| | | | | This reverts commit c85a4c9ba4a7de65a7850f6f9708df66bd24deea. | ||||
* | s3: Move the global variable Protocol to struct smbd_server_connection | Volker Lendecke | 2009-11-21 | 1 | -0/+1 |
| | |||||
* | s3:smbd: add a generic smbd_dirptr_lanman2_entry() function | Stefan Metzmacher | 2009-08-19 | 1 | -0/+21 |
| | | | | | | | | This can we used by SMB2, the key difference between SMB1 and SMB2 is that with SMB2 entries are aligned to 8 bytes and there's no padding at the end of the last entry. metze | ||||
* | s3:smbd: make smbd_check_open_rights() function non-static for use in SMB2 | Stefan Metzmacher | 2009-08-19 | 1 | -0/+5 |
| | | | | metze | ||||
* | s3:smbd: add smbd_notify_cancel_by_smbreq() | Stefan Metzmacher | 2009-08-17 | 1 | -0/+3 |
| | | | | | | This function will be used by the SMB2 notify code. metze | ||||
* | s3:smbd: implement SMB2 Cancel correctly. | Stefan Metzmacher | 2009-08-17 | 1 | -1/+8 |
| | | | | metze | ||||
* | Fix BASE-DELAYWRITE test by removing const from struct smb_filename | Jeremy Allison | 2009-08-12 | 1 | -1/+1 |
| | | | | | | | | in smbd_do_qfilepathinfo(). update_stat_ex_mtime() modifies the stat struct inside the smb_fname so don't make a copy of that stat struct, use it directly - it's meant to be updated and represent the state of the file we're returning. Jeremy. | ||||
* | s3:smbd: rename conn => sconn for smbd_server_connection structs | Stefan Metzmacher | 2009-08-08 | 1 | -3/+3 |
| | | | | | | | This should avoid confusion between smbd_server_connection and connection_struct variables. metze | ||||
* | s3:smbd: move dptr globals into struct smbd_server_connection | Stefan Metzmacher | 2009-08-07 | 1 | -5/+6 |
| | | | | metze | ||||
* | s3:smbd: add generic smbd_dirptr_get_entry() | Stefan Metzmacher | 2009-08-07 | 1 | -0/+21 |
| | | | | metze | ||||
* | s3: Convert some callers of vfs_stat_smb_fname to SMB_VFS_STAT() | Tim Prouty | 2009-07-22 | 1 | -1/+0 |
| | |||||
* | s3:smbd: make smbd_do_qfsinfo() non static for use in SMB2 GetInfo | Stefan Metzmacher | 2009-07-13 | 1 | -0/+9 |
| | | | | metze | ||||
* | s3:smbd: make smbd_do_setfilepathinfo() non static for use in SMB2 SetInfo | Stefan Metzmacher | 2009-07-13 | 1 | -0/+9 |
| | | | | metze | ||||
* | s3:smbd: make smbd_do_qfilepathinfo() non static for use in SMB2 | Stefan Metzmacher | 2009-07-12 | 1 | -0/+16 |
| | | | | metze | ||||
* | s3:smbd: make smbd_do_locking() non static | Stefan Metzmacher | 2009-07-10 | 1 | -0/+17 |
| | | | | metze | ||||
* | s3:smbd: add marshalling layer for SMB2 Lock support | Stefan Metzmacher | 2009-07-02 | 1 | -0/+1 |
| | | | | metze | ||||
* | s3:smbd: add marshalling layer for SMB2 Find (QueryDirectory) support | Stefan Metzmacher | 2009-07-02 | 1 | -0/+1 |
| | | | | metze | ||||
* | s3:smbd: add marshalling layer for SMB2 Break support (SMB 2.002 only) | Stefan Metzmacher | 2009-07-02 | 1 | -0/+1 |
| | | | | metze | ||||
* | s3:smbd: add marshalling layer for SMB2 SetInfo support | Stefan Metzmacher | 2009-07-02 | 1 | -0/+1 |
| | | | | metze | ||||
* | s3:smbd: add marshalling layer for SMB2 GetInfo support | Stefan Metzmacher | 2009-07-02 | 1 | -0/+1 |
| | | | | metze | ||||
* | s3:smbd: add support for SMB2 Notify | Stefan Metzmacher | 2009-07-02 | 1 | -0/+1 |
| | | | | metze | ||||
* | s3:smbd: move global notify_changes_by_mid to smbd_server_connection | Stefan Metzmacher | 2009-07-02 | 1 | -2/+2 |
| | | | | metze | ||||
* | s3:smbd: add support for async interim SMB2 responses and prepare SMB2 cancel | Stefan Metzmacher | 2009-06-24 | 1 | -0/+2 |
| | | | | metze | ||||
* | s3:smbd: keep a list of outstanding SMB2 requests | Stefan Metzmacher | 2009-06-24 | 1 | -0/+4 |
| | | | | metze | ||||
* | s3:smbd: add smbd_smb2_send_oplock_break() | Stefan Metzmacher | 2009-06-24 | 1 | -0/+5 |
| | | | | metze | ||||
* | s3:smbd: more validation of the incoming SMB2 requests | Stefan Metzmacher | 2009-06-09 | 1 | -0/+2 |
| | | | | metze | ||||
* | s3:smbd: keep the chain_fsp for SMB2 requests | Stefan Metzmacher | 2009-06-05 | 1 | -0/+2 |
| | | | | metze |