1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
samba-mirror/source4/include
Andrew Tridgell 20d17b8057 r3081: several updates to ntvfs and server side async request handling in
preparation for the full share modes and ntcreatex code that I am
working on.

highlights include:

 - changed the way a backend determines if it is allowed to process a
   request asynchronously. The previous method of looking at the
   send_fn caused problems when an intermediate ntvfs module disabled
   it, and the caller then wanted to finished processing using this
   function. The new method is a REQ_CONTROL_MAY_ASYNC flag in
   req->control_flags, which is also a bit easier to read

 - fixed 2 bugs in the readbraw server code. One related to trying to
   answer a readbraw with smb signing (which can't work, and crashed
   our signing code), the second related to error handling, which
   attempted to send a normal SMB error packet, when readbraw must
   send a 0 read reply (as it has no header)

 - added several more ntvfs_generic.c generic mapping functions. This
   means that backends no longer need to implement such esoteric
   functions as SMBwriteunlock() if they don't want to. The backend
   can just request the mapping layer turn it into a write followed by
   an unlock. This makes the backends considerably simpler as they
   only need to implement one style of each function for lock, read,
   write, open etc, rather than the full host of functions that SMB
   provides. A backend can still choose to implement them
   individually, of course, and the CIFS backend does that.

 - simplified the generic structures to make them identical to the
   principal call for several common SMB calls (such as
   RAW_WRITE_GENERIC now being an alias for RAW_WRITE_WRITEX).

 - started rewriting the pvfs_open() code in preparation for the full
   ntcreatex semantics.

 - in pvfs_open and ipc_open, initially allocate the open file
   structure as a child of the request, so on error we don't need to
   clean up. Then when we are going to succeed the open steal the
   pointer into the long term backend context. This makes for much
   simpler error handling (and fixes some bugs)

 - use a destructor in the ipc backend to make sure that everthing is
   cleaned up on receive error conditions.

 - switched the ipc backend to using idtree for fnum allocation

 - in the ntvfs_generic mapping routines, use a allocated secondary
   structure not a stack structure to ensure the request pointer
   remains valid even if the backend replies async.
(This used to be commit 3457c1836c)
2007-10-10 13:01:57 -05:00
..
ads.h r1785: remove unneeded dependencies on openldap client libraries 2007-10-10 12:57:56 -05:00
asn_1.h r1760: name the struct 2007-10-10 12:57:54 -05:00
byteorder.h r2961: fixed a silly typo 2007-10-10 12:59:52 -05:00
charset.h r2857: this commit gets rid of smb_ucs2_t, wpstring and fpstring, plus lots of associated functions. 2007-10-10 12:59:39 -05:00
cli_context.h r2660: - converted the libcli/raw/ library to use talloc_increase_ref_count() 2007-10-10 12:59:18 -05:00
client.h r1654: rename cli_ -> smbcli_ 2007-10-10 12:57:47 -05:00
clitar.h first public release of samba4 code 2003-08-13 01:53:07 +00:00
db_wrap.h r3005: added talloc wrappers around tdb_open() and ldb_connect(), so that the 2007-10-10 12:59:56 -05:00
debug.h r884: convert samba4 to use [u]int32_t instead of [u]int32 2007-10-10 12:56:15 -05:00
dlinklist.h r1578: the first stage of the async client rewrite. 2007-10-10 12:57:42 -05:00
doserr.h r2992: drsuapi uses WERROR not NTSTATUS 2007-10-10 12:59:55 -05:00
dynconfig.h r1596: Fix up copyrights. 2007-10-10 12:57:43 -05:00
enums.h r917: - added the start of a LSA server to samba4. 2007-10-10 12:56:19 -05:00
events.h r3017: nicer memory handling for event_context_merge() 2007-10-10 12:59:58 -05:00
hmacmd5.h r961: convert 'uchar' to 'uint8_t' 2007-10-10 12:56:23 -05:00
includes.h r3064: - use UINT8_MAX and UINT16_MAX instead of hex values for idr_get_new() limits 2007-10-10 13:01:55 -05:00
interfaces.h first public release of samba4 code 2003-08-13 01:53:07 +00:00
ioctl.h first public release of samba4 code 2003-08-13 01:53:07 +00:00
local.h r1486: commit the start of the generic server infastructure 2007-10-10 12:57:35 -05:00
MacExtensions.h r943: change samba4 to use 'uint8_t' instead of 'unsigned char' 2007-10-10 12:56:21 -05:00
md5.h r962: convert 'unsigned' and 'unsigned int' to uint_t 2007-10-10 12:56:23 -05:00
messages.h r3029: implemented byte range lock timeouts. 2007-10-10 13:00:00 -05:00
module.h r1292: Add const to the subsystem/module registration code. 2007-10-10 12:56:49 -05:00
mutex.h more mutex portability. 2003-12-16 03:45:04 +00:00
nameserv.h r1065: some header file cleanups 2007-10-10 12:56:36 -05:00
nt_status.h r884: convert samba4 to use [u]int32_t instead of [u]int32 2007-10-10 12:56:15 -05:00
nterr.h r2459: added STATUS_NO_MORE_FILES nt status code 2007-10-10 12:58:55 -05:00
pstring.h first public release of samba4 code 2003-08-13 01:53:07 +00:00
rap.h r1470: Get the smb_trans2 structure out of the rap_cli_call struct. 2007-10-10 12:57:33 -05:00
registry.h r2518: Some long overdue changes: 2007-10-10 12:59:01 -05:00
request.h r1523: declaring variables "in" and "out" in every C module is a bad idea! 2007-10-10 12:57:39 -05:00
rewrite.h r2857: this commit gets rid of smb_ucs2_t, wpstring and fpstring, plus lots of associated functions. 2007-10-10 12:59:39 -05:00
rpc_secdes.h r937: - added a simple QuerySecurity implementation in samr server 2007-10-10 12:56:20 -05:00
safe_string.h r2857: this commit gets rid of smb_ucs2_t, wpstring and fpstring, plus lots of associated functions. 2007-10-10 12:59:39 -05:00
secrets.h r890: convert samba4 to use [u]int8_t instead of [u]int8 2007-10-10 12:56:16 -05:00
signing.h r1796: Enable server-side SPNEGO, now that I have fixed the server-side SMB 2007-10-10 12:57:57 -05:00
smb_interfaces.h r3081: several updates to ntvfs and server side async request handling in 2007-10-10 13:01:57 -05:00
smb_macros.h r2456: got rid of some outdated global macros 2007-10-10 12:58:55 -05:00
smb.h r3081: several updates to ntvfs and server side async request handling in 2007-10-10 13:01:57 -05:00
talloc.h r3052: added talloc_zero_p() and talloc_zero_array_p() calls, for allocating zeroed memory 2007-10-10 13:01:53 -05:00
trans2.h r184: Fix UNIX Search info level. This still needs to be added to the raw 2007-10-10 12:51:15 -05:00
xfile.h first public release of samba4 code 2003-08-13 01:53:07 +00:00