summaryrefslogtreecommitdiffstats
path: root/source3/include/smb.h
Commit message (Collapse)AuthorAgeFilesLines
* Happy New Year 2015!Stefan Metzmacher2015-01-011-1/+1
| | | | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Thu Jan 1 02:47:59 CET 2015 on sn-devel-104
* s3:vfs: add SMB_VFS_READDIR_ATTR()Ralph Boehme2014-12-041-0/+1
| | | | | | | | | | | | SMB_VFS_READDIR_ATTR is a last minute hook to fetch additional metadata for a directory entry when we're already marshalling the SMB reply buffer. This would be used, when there's a need to repurpose some fields in the the reply, like it's done with Apple's SMB2 extension "AAPL". Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s3:open_files.idl: add data structures for SMB2.1 and SMB3.0 leases.Stefan Metzmacher2014-12-041-0/+1
| | | | | | | Pair-Programmed-With: Volker Lendecke <vl@samba.org> Signed-off-by: Volker Lendecke <vl@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:smbd: improve writecache profilingStefan Metzmacher2014-11-191-2/+1
| | | | | | | | | | | | | | | | | In order to have useful profiling counters should never be decremented. We need a separate counter for deallocation events. The current value can be calculated by allocations - deallocations. We also use better names and avoid having an array for the flush reasons. This will simplify further profiling improvements a lot. The value writecache_num_write_caches (this was similar to writecache_allocations) is replaced by writecache_cached_writes, which counts the amount of writes which were completely handled by the cache. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s3:smbd: s/BUFFER_SIZE/LARGE_WRITEX_BUFFER_SIZEStefan Metzmacher2014-03-051-3/+1
| | | | | | | | | Bug: https://bugzilla.samba.org/show_bug.cgi?id=10422 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Wed Mar 5 22:53:34 CET 2014 on sn-devel-104
* libcli/smb: move some *TRANSACT_* flags to smb_constants.hStefan Metzmacher2014-01-071-34/+0
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* libcli/smb: move some FILE_* flags to smb_constants.hStefan Metzmacher2014-01-071-51/+0
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* Happy New Year 2014!Stefan Metzmacher2014-01-021-1/+1
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3: Add DAC_OVERRIDE capability supportAbhidnya Joshi2013-12-161-1/+2
| | | | | Reviewed-by: Volker Lendecke <vl@samba.org> Reviewed-by: Christof Schmitt <cs@samba.org>
* shadow_copy2: Fix some typosDavid Keegel2013-12-121-1/+1
| | | | | | | | Reviewed-by: Volker Lendecke <vl@samba.org> Reviewed-by: Michael Adam <obnox@samba.org> Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Thu Dec 12 17:58:24 CET 2013 on sn-devel-104
* Rename the profile enums with a SAMBA_ prefix to avoid conflict with system ↵Jeremy Allison2013-11-221-9/+9
| | | | | | | | | files. WRITE_FLUSH is defined in fs.h in Linux. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: David Disseldorp <ddiss@samba.org>
* libcli/smb: move Filesystem Attributes defines to smb_constants.hStefan Metzmacher2013-10-171-19/+0
| | | | | | | Bug: https://bugzilla.samba.org/show_bug.cgi?id=10200 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* smbd: Remove FAKE_LEVEL_II_OPLOCKVolker Lendecke2013-10-151-2/+3
| | | | | | | | | FAKE_LEVEL_II_OPLOCK was an indicator to break level2 oplock holders on write. This information is now being held in brlock.tdb, which makes the FAKE_LEVEL_II_OPLOCK type unnecessary. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* shadow_copy2: add comment explaining the SMB level GMT format patternMichael Adam2013-10-051-1/+9
| | | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* s3:smb2_find: Return that timestamps do not exist as directoriesChristof Schmitt2013-09-101-0/+3
| | | | | | | | | | | | | | | When a Windows client receives a large directory listing while querying snapshots, it sends a find request asking for the timestamp as a directory. A Windows server returns NO_SUCH_FILE, so make sure Samba returns the same. Otherwise the client will get confused and display timestamps in the 'previous versions' dialog. Signed-off-by: Christof Schmitt <christof.schmitt@us.ibm.com> Reviewed-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Tue Sep 10 22:38:51 CEST 2013 on sn-devel-104
* s3: include/smb : changing smb server versionShekhar Amlekar2013-09-061-2/+7
| | | | | | | | | | | changing smb server version from 4.9 to 6.1 to mimic win2k8r2. Reviewed-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Fri Sep 6 19:41:51 CEST 2013 on sn-devel-104
* smbd: Remove FORCE_OPLOCK_BREAK_TO_NONEVolker Lendecke2013-09-061-2/+2
| | | | | | | | | | | | | | | This flag existed to break an exclusive or batch oplock in just one instead of two steps down to "no oplock" when we did an allocation or file size change. Running raw.oplock against W2k12 differs in this respect from W2k3: W2k12 takes two steps (via level2) to break to none. This removes the special flag that we only had for compatibility with systems older than W2k12... Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Fri Sep 6 00:47:07 CEST 2013 on sn-devel-104
* smbd: We don't use DEFERRED_OPEN_ENTRY anymoreVolker Lendecke2013-04-261-2/+2
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s3:smbd: s/struct event_context/struct tevent_contextStefan Metzmacher2013-02-191-1/+1
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* Happy New Year 2013Stefan Metzmacher2013-01-011-1/+1
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* Revert "s3:smb: include "smbXsrv.h" before "vfs.h""Stefan Metzmacher2012-08-101-6/+0
| | | | This reverts commit db0c233624e633b3cc1a6e0e44dccc09aaa121f2.
* libcli/smb: move some TCON related defines to smb_constants.hStefan Metzmacher2012-08-011-9/+0
| | | | metze
* Add two flags to allow for handling of Extended Signatures (Session Key ↵Richard Sharpe2012-08-011-0/+2
| | | | | | | Protection) on a TCON_AND_X request and response. Autobuild-User(master): Richard Sharpe <sharpe@samba.org> Autobuild-Date(master): Wed Aug 1 06:36:37 CEST 2012 on sn-devel-104
* lib/param: Move all enum declarations to lib/paramAndrew Bartlett2012-07-241-61/+0
| | | | | | | | This is in preperation for the parameter table being made common. Andrew Bartlett Pair-Programmed-With: Andrew Tridgell <tridge@samba.org>
* s3:smb: include "smbXsrv.h" before "vfs.h"Michael Adam2012-07-031-0/+6
| | | | | | This is still needed as long as smbXsrv_open/_tcon are referenced in files_struct and connection_struct respectively. Eventually, these structures should not have a backlink to the smb world any more.
* s3:smbd: make use of smbXsrv_tcon for smb1Stefan Metzmacher2012-06-251-1/+0
| | | | | | Pair-Programmed-With: Michael Adam <obnox@samba.org> metze
* s3:smbd: change FNUM_FIELD_INVALID from -1 to 0Michael Adam2012-06-151-1/+1
| | | | | | | | | | | | This is in preparation for changing the type of files_struct.fnum to unit64_t. This can safely be done, since all checks have been converted to using FNUM_FIELD_INVALID and fsp->fnum is only ever set to either FNUM_FIELD_INVALID or some i + FILE_HANDLE_OFFSET with i >= 0 and FILE_HANDLE_OFFSET > 0. Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:include: define FNUM_FIELD_INVALID - the invalid value for the fnumMichael Adam2012-06-151-0/+2
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:smb: change the value of TID_FIELD_INVALID from -1 to 0Michael Adam2012-06-061-1/+1
| | | | | | This paves the way to change the tid/cnum types to systematic uint32_t. Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
* s3:smb: introduce a name TID_FIELD_INVALID for the invalid value for a cnum/tidMichael Adam2012-06-061-0/+1
| | | | Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
* s3:connections: add a CNUM_OFFSET for mapping between cnum and the bitmap indexMichael Adam2012-06-061-0/+2
| | | | | | | | | This moves the start of the range of valid cnum values up from 0 to CNUM_OFFSET (currently 1), so that in a later step we can use 0 as invalid cnum value instead of the current -1. This will allow us to change the type of cnum to uint32_t from a mix of int and unsigned. Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
* s3:smb.h: fix a comment typoMichael Adam2012-06-061-1/+1
|
* s3:include: change current_user->vuid to uint64_tStefan Metzmacher2012-06-061-1/+1
| | | | metze
* s3:include: move struct smb_request to vfs.hStefan Metzmacher2012-06-061-61/+0
| | | | metze
* s3:smbd: move struct user_struct to globals.hStefan Metzmacher2012-06-061-13/+0
| | | | metze
* s3:include: remove typedef user_structStefan Metzmacher2012-06-061-2/+2
| | | | metze
* s3:smbd: move forward declaration of struct aio_extra to smbd.hStefan Metzmacher2012-06-061-3/+0
| | | | metze
* s3:include: remove unused forward declaration of deferred_open_record in smb.hStefan Metzmacher2012-06-061-3/+0
| | | | metze
* s3:smbd: move UCF_ defines to smbd.hStefan Metzmacher2012-06-061-9/+0
| | | | metze
* s3:include: move struct smb_filename to vfs.hStefan Metzmacher2012-06-061-10/+0
| | | | metze
* s3:include: move struct smb_file_time to vfs.hStefan Metzmacher2012-06-061-8/+0
| | | | metze
* s3:include: move struct connection_struct (and sub structs) to vfs.hStefan Metzmacher2012-06-061-94/+1
| | | | metze
* s3:include: move struct stream_struct to vfs.hStefan Metzmacher2012-06-061-10/+0
| | | | metze
* s3:include: move struct fd_handle/files_struct to vfs.hStefan Metzmacher2012-06-061-82/+0
| | | | metze
* s3:includes: move union unid_t to vfs.hStefan Metzmacher2012-06-061-5/+0
| | | | metze
* s3:smbd: move struct trans_state to smbd.hStefan Metzmacher2012-06-061-30/+0
| | | | metze
* s3:smbd: move struct privilege_paths to smbd.hStefan Metzmacher2012-06-061-9/+0
| | | | metze
* s3:smbd: make struct notify_change_buf private to notify.cStefan Metzmacher2012-06-061-20/+0
| | | | metze
* s3:printing: make struct print_file_data private to printspoolss.cStefan Metzmacher2012-06-061-9/+0
| | | | metze
* s3:smbd: make struct vfs_fsp_data private to vfs.cStefan Metzmacher2012-06-061-10/+0
| | | | metze