1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-28 07:21:54 +03:00
samba-mirror/source4/libcli/raw
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
..
clioplock.c r1654: rename cli_ -> smbcli_ 2007-10-10 12:57:47 -05:00
clisession.c r2680: switched the libcli/raw/ code over to use talloc_reference(), which simplifies things quite a bit 2007-10-10 12:59:21 -05:00
clisocket.c r2710: continue with the new style of providing a parent context whenever 2007-10-10 12:59:25 -05:00
clitransport.c r3017: nicer memory handling for event_context_merge() 2007-10-10 12:59:58 -05:00
clitree.c r2710: continue with the new style of providing a parent context whenever 2007-10-10 12:59:25 -05:00
rawacl.c r1941: - fixed an allocation error with querying security descriptors remotely 2007-10-10 12:58:12 -05:00
rawdate.c r1654: rename cli_ -> smbcli_ 2007-10-10 12:57:47 -05:00
raweas.c r2671: we're getting too many errors caused by the talloc_realloc() API not 2007-10-10 12:59:20 -05:00
rawfile.c r3081: several updates to ntvfs and server side async request handling in 2007-10-10 13:01:57 -05:00
rawfileinfo.c r2671: we're getting too many errors caused by the talloc_realloc() API not 2007-10-10 12:59:20 -05:00
rawfsinfo.c r1654: rename cli_ -> smbcli_ 2007-10-10 12:57:47 -05:00
rawioctl.c r1654: rename cli_ -> smbcli_ 2007-10-10 12:57:47 -05:00
rawnegotiate.c r1985: take advantage of the new talloc in a few more places 2007-10-10 12:58:14 -05:00
rawnotify.c r1654: rename cli_ -> smbcli_ 2007-10-10 12:57:47 -05:00
rawreadwrite.c r3081: several updates to ntvfs and server side async request handling in 2007-10-10 13:01:57 -05:00
rawrequest.c 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
rawsearch.c r2469: complete overhaul of the old-style RAW_SEARCH_ calls (the OS/2 and 2007-10-10 12:58:56 -05:00
rawsetfileinfo.c r1739: fixed the padding in setpathinfo, noticed when forcing negotiated ascii strings 2007-10-10 12:57:51 -05:00
rawtrans.c r2649: - used some cpp tricks to make users of talloc() and talloc_realloc() 2007-10-10 12:59:16 -05:00
README first public release of samba4 code 2003-08-13 01:53:07 +00:00
smb_signing.c r2664: fixed the final server leak for normal operation. We now get a clean report from --leak-check 2007-10-10 12:59:19 -05:00

Design notes for client library restructure:

1 - no references to cli_state should exist in libcli/raw.
2 - all interfaces to functions in this directory should use cli_session or cli_tree as
	the primary context structure