Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2012-07-12 | s3: Make us survive base-delaywrite with aio enabled | Volker Lendecke | 1 | -0/+4 | |
Signed-off-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Thu Jul 12 21:28:19 CEST 2012 on sn-devel-104 | |||||
2012-07-12 | s3: Factor out "mark_file_modified" | Volker Lendecke | 2 | -25/+43 | |
This is in preparation of making us survive base-delaywrite with async I/O activated Signed-off-by: Jeremy Allison <jra@samba.org> | |||||
2012-07-10 | Cope with a (non-security) open race we've had for ever as NTCreateX isn't ↵ | Jeremy Allison | 1 | -0/+25 | |
atomic on POSIX. On open without create, the file did exist, but some other (local or NFS) process either renamed/unlinked and re-created the file with different dev/ino after we walked the path, but before we did the open. We could retry the open but it's a rare enough case it's easier to just fail the open to prevent creating any problems in the open file db having the wrong dev/ino key. Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Tue Jul 10 21:57:33 CEST 2012 on sn-devel-104 | |||||
2012-07-10 | Now we have a guaranteed indication of a file being created, use it to set ↵ | Jeremy Allison | 1 | -12/+8 | |
the create disposition correctly. | |||||
2012-07-10 | Add function fd_open_atomic() which uses O_CREAT|O_EXCL to return a ↵ | Jeremy Allison | 1 | -4/+107 | |
guaranteed indication of creation of a new file. | |||||
2012-07-10 | Simplify the logic in open_file() some more. | Jeremy Allison | 1 | -48/+36 | |
Move the inheritance work into the if block where we created the file. We can never have created the file (and thus need no inheritance) for a stat-open. Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Tue Jul 10 03:30:22 CEST 2012 on sn-devel-104 | |||||
2012-07-09 | Simplify the logic in open_file(). | Jeremy Allison | 1 | -22/+15 | |
Move the fstat call into the block which opens a file descriptor. Remove the stat() call in the stat-open case. We already failed the open if !file_existed. | |||||
2012-07-09 | Make check_same_stat() and check_same_dev_ino() common functions. | Jeremy Allison | 2 | -31/+0 | |
2012-07-09 | Factor out check_same_dev_ino() from check_same_stat() so it can be called ↵ | Jeremy Allison | 1 | -2/+15 | |
separately. | |||||
2012-07-05 | s3: evaluate MNT_QUOTA and MNT_RDONLY in statvfs also on darwin | Björn Jacke | 1 | -1/+1 | |
2012-07-04 | s3: if we know a file is immutable, report it to be readonly | Björn Jacke | 1 | -0/+6 | |
on *BSD we get the immutable flag via st_flags, we should use that if possible. | |||||
2012-07-03 | s3-smbd: Remove deprecated 'share modes' option. | Andreas Schneider | 1 | -4/+0 | |
2012-07-03 | s3: Fix Coverity ID 709217 Dereference after null check | Volker Lendecke | 1 | -2/+10 | |
A few lines before we did check for x != NULL. I think this might fix a potential remote crash. Signed-off-by: Michael Adam <obnox@samba.org> Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Tue Jul 3 15:30:17 CEST 2012 on sn-devel-104 | |||||
2012-07-03 | s3: Fix Coverity ID 709218 Uninitialized pointer read | Volker Lendecke | 1 | -0/+5 | |
Signed-off-by: Michael Adam <obnox@samba.org> | |||||
2012-07-03 | s3:smbd: Include smbXsrv.h before vfs.h (in smbd.h) so that the smbXsrv ↵ | Michael Adam | 1 | -1/+1 | |
structures are available This is currently needed for files_struct and connection_struct that contain backlinks to smbXsrv_open and smbXsrv_tcon, respectively. Finally, these backlinks to the smb level structures should be removed. | |||||
2012-07-03 | s3:smbd:smb2: fix prototype of make_connection_smb2() to use smbXsrv_tcon | Michael Adam | 1 | -2/+1 | |
instead of internal smbXsrv_tcon0. | |||||
2012-07-03 | s3:smbd: include smbXsrv.h before smbd/proto.h to have the smbXsrv_ structs ↵ | Michael Adam | 1 | -0/+1 | |
available | |||||
2012-07-03 | s3:smbd:smb2: change smbXsrv_tcon0 to smbXsrv_tcon in ↵ | Michael Adam | 1 | -1/+1 | |
smbd_smb2_request_check_tcon() smbXsrv_tcon0 is the internal name for the (current) version0 of the structure. Externally, only smbXsrv_tcon should be used. | |||||
2012-07-03 | s3:smbd:smb2: change smbXsrv_session0 to smbXsrv_session in struct user_struct. | Michael Adam | 1 | -1/+1 | |
smbXsrv_session0 is the internal name of (current) version 0 of the structure. Externally, only smbXsrv_session should be used. | |||||
2012-06-30 | Don't allow asynchronous creates to be canceled in SMB2. | Jeremy Allison | 3 | -3/+20 | |
Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Sat Jun 30 04:10:02 CEST 2012 on sn-devel-104 | |||||
2012-06-30 | Make schedule_deferred_open_message_smb() return an indication of success. | Jeremy Allison | 2 | -5/+6 | |
2012-06-30 | Make schedule_deferred_open_message_smb2() return an indication of success. | Jeremy Allison | 2 | -7/+9 | |
2012-06-30 | Allow for async opens. | Jeremy Allison | 1 | -4/+35 | |
If the SMB_VFS_OPEN() function returns -1, EINTR -> NT_STATUS_RETRY, then queue the open up to be completed when the async open completes. | |||||
2012-06-30 | Add new bool field async_open to struct deferred_open_record. Not used yet. | Jeremy Allison | 1 | -0/+4 | |
2012-06-30 | Fix defer_open() fuction in the open code path to cope with a NULL lck ↵ | Jeremy Allison | 1 | -11/+16 | |
parameter. | |||||
2012-06-30 | Add uint64_t mid field to the files_struct. | Jeremy Allison | 1 | -0/+1 | |
Ensure it is initialized so we know what mid created this file. | |||||
2012-06-29 | s3:smbd: make use of smbXsrv_open for smb1/2/3 | Stefan Metzmacher | 9 | -141/+73 | |
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-29 | s3:smbd: add smbXsrv_open* infrastructure | Stefan Metzmacher | 3 | -0/+1099 | |
Pair-Programmed-With: Michael Adam <obnox@samba.org> metze | |||||
2012-06-29 | s3: fix the logic in bsd_statvfs | Björn Jacke | 1 | -1/+1 | |
2012-06-29 | s3:smb2_server: remove max_charge check in ↵ | Stefan Metzmacher | 1 | -16/+0 | |
smbd_smb2_request_verify_creditcharge() The client can send any credit charge value, it's ok to send more than needed. metze Signed-off-by: Michael Adam <obnox@samba.org> | |||||
2012-06-29 | s3: merge bsd_statvfs and darwin_statvfs | Björn Jacke | 1 | -53/+31 | |
2012-06-28 | Replace all uses of setXX[ug]id() and setgroups with samba_setXX[ug]id() calls. | Jeremy Allison | 1 | -1/+2 | |
Will allow thread-specific credentials to be added by modifying the central definitions. Deliberately left the setXX[ug]id() call in popt as this is not used in Samba. | |||||
2012-06-29 | s3:smb2_server: make the logic in smbd_smb2_request_verify_creditcharge() ↵ | Stefan Metzmacher | 1 | -11/+23 | |
simpler We just need a max_charge variable to make the algorithm independent of multi_credit support. metze | |||||
2012-06-29 | s3:smb2_server: simplify smbd_smb2_request_verify_creditcharge() a bit. | Stefan Metzmacher | 1 | -6/+1 | |
A credit charge of 0 is really not a special case, it just means the same as 1. metze | |||||
2012-06-29 | s3:smb2_negprot: support SMB2_CAP_LARGE_MTU on everything but port 139 | Stefan Metzmacher | 1 | -5/+8 | |
In future we'll have other transports like RDMA. This makes NBT (tcp port 139) special instead of port 445. metze | |||||
2012-06-29 | s3:smb2_server: grant extra credits for multi-credit requests | Stefan Metzmacher | 1 | -2/+10 | |
metze | |||||
2012-06-29 | s3:smb2_server: implement credit granting similar to windows | Stefan Metzmacher | 2 | -19/+53 | |
This makes it much easier to compare traces. metze | |||||
2012-06-29 | s3:smb2_server: make sure sequence numbers don't wrap at UINT64_MAX | Stefan Metzmacher | 1 | -2/+17 | |
metze | |||||
2012-06-29 | s3:smb2_server: make sure we don't grant more credits than we allow | Stefan Metzmacher | 2 | -35/+92 | |
If the client hasn't consumed the lowest seqnum, but the distance between lowest and highest seqnum has reached max credits. In that case we should stop granting credits. metze | |||||
2012-06-29 | s3:smb2_server: check the credit_charge against the already granted credits | Stefan Metzmacher | 1 | -7/+12 | |
metze | |||||
2012-06-29 | s3:smb2_server: split out a smb2_validate_sequence_number() function | Stefan Metzmacher | 1 | -40/+77 | |
metze | |||||
2012-06-29 | s3:smb2_server: clear sequence window if we got the lowest sequence id | Stefan Metzmacher | 1 | -2/+2 | |
Otherwise we'll never consume sequence id '0'. metze | |||||
2012-06-29 | s3:smb2_server: fix calculation of the next bitmap_offset | Stefan Metzmacher | 1 | -1/+1 | |
metze | |||||
2012-06-29 | s3:smb2_server: remove unused and confusing ↵ | Stefan Metzmacher | 1 | -7/+4 | |
DEFAULT_SMB2_MAX_CREDIT_BITMAP_FACTOR metze | |||||
2012-06-29 | s3:smb2_server: call smbd_smb2_request_validate() also in ↵ | Stefan Metzmacher | 1 | -0/+6 | |
smbd_smb2_first_negprot() We need to consume message_id 0, for SMB1 negprot starts. metze | |||||
2012-06-29 | s3:smb2_server: start the connection with one credit granted to the client | Stefan Metzmacher | 1 | -1/+1 | |
metze | |||||
2012-06-28 | s3: fine tune and clean up statvfs tests | Björn Jacke | 1 | -2/+2 | |
This should also fix the build on Tru64. Tru64 has a POSIX compliant statvfs() function while most *BSD systems ignore POSIX. Autobuild-User(master): Björn Jacke <bj@sernet.de> Autobuild-Date(master): Thu Jun 28 23:07:23 CEST 2012 on sn-devel-104 | |||||
2012-06-28 | s3:smbd: change nt_open_pipe() to uint16_t pnum/fnum | Stefan Metzmacher | 1 | -3/+3 | |
This is SMB1 code... metze Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Thu Jun 28 14:47:45 CEST 2012 on sn-devel-104 | |||||
2012-06-28 | s3:smb2_create: add usefull DEBUG() message | Stefan Metzmacher | 1 | -0/+3 | |
All calls which take an file handle have the same, so we should also log it, when we create a handle. metze Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Thu Jun 28 12:41:49 CEST 2012 on sn-devel-104 | |||||
2012-06-28 | s3:smbd/files: fsp->fnum is uint64_t not int! | Stefan Metzmacher | 1 | -3/+3 | |
metze |