summaryrefslogtreecommitdiffstats
path: root/source/smbd/reply.c
Commit message (Collapse)AuthorAgeFilesLines
* Don't use fname after create_file has been calledVolker Lendecke2008-02-221-11/+11
| | | | | | | | create_file calls unix_convert internally, so modifies fname. So we can't use "fname" after create_file has returned. Use fsp->fsp_name instead. Found during a lengthy debugging session with Karolin testing the xattr_tdb module...
* Fix some typos.Karolin Seeger2008-02-081-1/+1
| | | | Karolin
* Change the file time before we change the file mode.Alexander Bokovoy2008-02-061-6/+6
| | | | | | This doesn't matter for most applications, but for offline files it matters as it allows you to set files offline from windows clients even with HSM systems that refuse to offline newly created files. Merge from Tridge's v3-0-ctdb tree.
* Convert read_data() to NTSTATUSVolker Lendecke2008-02-021-4/+5
|
* Make get_srv_read_error static to process.cVolker Lendecke2008-02-021-2/+2
|
* Convert read_smb_length to return NTSTATUSVolker Lendecke2008-02-021-9/+3
|
* Re-enable async I/O for non-TSM systemsVolker Lendecke2008-01-301-9/+2
| | | | | | | The logic was wrong: A "SMB_VFS_AIO_FORCE()==False" disabled async I/O, whereas a "SMB_VFS_AIO_FORCE()==True" should enforce it regardless of other settings. Alexander, please check!
* Fix some "set but never used" warningsVolker Lendecke2008-01-201-3/+1
|
* Don't test split_ntfs_stream_nameVolker Lendecke2008-01-201-3/+0
| | | | | This is a hot code path, and if it has a :, the name will be split later on anyway.
* Add streams supportVolker Lendecke2008-01-191-8/+20
| | | | | | | | | | This is the core of the streams support. The main change is that in files_struct there is now a base_fsp pointer that holds the main file open while a stream is open. This is necessary to get the rather strange delete semantics right: You can't delete the main file while a stream is open without FILE_SHARE_DELETE, and while a stream is open a successful unlink of the main file leads to DELETE_PENDING for all further access on the main file or any stream.
* Add support for offline files support, remote storage, and Async I/O force ↵Alexander Bokovoy2008-01-161-6/+13
| | | | | | | | | | | | | | | | operations to VFS Offline files support and remote storage are for allowing communication with backup and archiving tools that mark files moved to a tape library as offline. We translate this info into corresponding CIFS offline file attribute and mark an exported volume as remote storage. Async I/O force is to allow selective redirection of I/O operations to asynchronous processing in case it is viable at VFS module discretion. It is needed for proper handling of offline files as performing regular I/O on offline file will block smbd. Signed-off-by: Alexander Bokovoy <ab@samba.org>
* Convert OpenDir to talloc, use talloc_tos()Volker Lendecke2008-01-121-16/+19
| | | | This cuts some mallocs on NtCreate&X
* Combine fsp and fromfd to fromfsp in SMB_VFS_SENDFILE().Michael Adam2008-01-111-2/+2
| | | | Michael
* use talloc_tos in a few more placesVolker Lendecke2008-01-101-3/+5
|
* Fix resource leak found by coverity (CID 521).Jeremy Allison2008-01-081-0/+4
| | | | Jeremy.
* Remove redundant parameter fd from SMB_VFS_FSTAT().Michael Adam2008-01-071-4/+4
| | | | Michael
* Remove redundant parameter fd from SMB_VFS_LSEEK().Michael Adam2008-01-071-3/+3
| | | | Michael
* Now conn is part of smb_request, we don't need it asJeremy Allison2008-01-041-59/+88
| | | | | | an extra parameter. This cleans up quite a few places we were passing it around without needing it. Jeremy.
* Refactor the crypto code after a very helpful conversationJeremy Allison2008-01-041-26/+29
| | | | | | with Volker. Mostly making sure we have data on the incoming packet type, not stored in the smb header. Jeremy.
* Convert reply_mknew to create_fileVolker Lendecke2008-01-021-38/+16
|
* Convert reply_open_and_X to create_fileVolker Lendecke2008-01-021-42/+19
|
* Convert reply_open to create_fileVolker Lendecke2008-01-021-40/+19
|
* Add SMB encryption. Still fixing client decrypt butJeremy Allison2007-12-261-12/+23
| | | | | negotiation works. Jeremy.
* Some C++ warningsVolker Lendecke2007-12-211-2/+2
|
* Constrain "min receivefile size" to max of BUFFER_SIZEJeremy Allison2007-11-071-2/+20
| | | | | | | (128k). Add debug error messages so we can see why writeX large is denied. Ensure we don't allow recvfile writes on IPC$. Jeremy.
* Remove the horror that was the global smb_rw_error.Jeremy Allison2007-11-051-2/+3
| | | | | | | | | | Each cli struct has it's own local copy of this variable, so use that in client code. In the smbd server, add one static to smbd/proccess.c and use that inside smbd. Fix a bunch of places where smb_rw_error could be set by calling read_data() in places where we weren't reading from the SMB client socket (ie. winbindd). Jeremy.
* Change the client library to write directly out ofJeremy Allison2007-11-021-5/+10
| | | | | | | the incoming buffer in the non-signed case. Speeds up writes by over 10% or so. Complete the server recvfile implementation. Jeremy.
* Argggh. smblen doesn't include the +4, so my smb_doff calculationsJeremy Allison2007-11-021-4/+4
| | | | | shouldn't either :-). Jeremy.
* Ensure we can't accidently do a pipe write withJeremy Allison2007-11-011-0/+5
| | | | | unread bytes in the socket buffer. Jeremy
* Be careful and take care of the correct lengths in largeJeremy Allison2007-11-011-9/+7
| | | | | writeX calls. Jeremy.
* Ensure we detect a large writeX when using recvfile.Jeremy Allison2007-11-011-1/+2
| | | | | | More changes needed to make the UNIX_LARGE_WRITEX_CAP writes work (I'll add these tomorrow). Jeremy.
* Fix some cases where file_set_dosmode was being passedJeremy Allison2007-10-311-1/+1
| | | | | | | False instead of NULL. Fix more of the notifications to be correct for Samba4 RAW-NOTIFY torture (we had missed one when calling set_ea_dos_attribute(). Jeremy.
* Handle the disk full error case correctly.Jeremy Allison2007-10-301-1/+1
| | | | Jeremy.
* Add new parameter, "min receivefile size" (by default setJeremy Allison2007-10-301-14/+81
| | | | | | | | | to zero). If non-zero, writeX calls greater than this value will be left in the socket buffer for later handling with recvfile (or userspace equivalent). Definition of recvfile for your system is left as an exercise for the reader (I'm working on getting splice working :-). Jeremy.
* RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison2007-10-181-52/+52
| | | | | | | bugs in various places whilst doing this (places that assumed BOOL == int). I also need to fix the Samba4 pidl generation (next checkin). Jeremy.
* [GLUE] Rsync SAMBA_3_2_0 SVN r25598 in order to create the v3-2-test branch.samba-misc-tags/initial-v3-2-testGerald (Jerry) Carter2007-10-101-15/+13
|
* r25502: Fix bug 5006Volker Lendecke2007-10-101-1/+1
| | | | Thanks to Joerg.Bernau at web.de
* r25138: More pstring elimination. Add a TALLOC_CTX parameterJeremy Allison2007-10-101-17/+20
| | | | | to unix_convert(). Jeremy.
* r25117: The mega-patch Jerry was waiting for. Remove all pstrings fromJeremy Allison2007-10-101-181/+288
| | | | | | | | the main server code paths. We should now be able to cope with paths up to PATH_MAX length now. Final job will be to add the TALLOC_CTX * parameter to unix_convert to make it explicit (for Volker). Jeremy.
* r25111: Move to talloced pathnames on most code paths.Jeremy Allison2007-10-101-103/+146
| | | | | | | | | There are now ony 17 pstrings left in reply.c, and these will be easy to remove (and I'll be doing that shortly). Had to fix an interesting bug in pull_ucs2_base_talloc() when a source string is not null terminated :-). Jeremy.
* r25102: Rewrite msdfs code to use talloced filenames. Passes make testJeremy Allison2007-10-101-90/+123
| | | | | | and make valgrindtest. Final step will be to change srvstr_get_path() to return talloced memory in the major codepaths. Jeremy.
* r25055: Add file_id_string_tosVolker Lendecke2007-10-101-2/+2
| | | | This removes file_id_string_static and file_id_string_static2
* r25009: Large patch discussed with Volker. Move unix_convert to a talloc-basedJeremy Allison2007-10-101-177/+312
| | | | | | interface. More development will come on top of this. Remove the "mangled map" parameter. Jeremy.
* r24702: Remove the old API pointersVolker Lendecke2007-10-101-9/+6
|
* r24659: Some formatting changes helping to minimize the 3_2_0 diffVolker Lendecke2007-10-101-8/+8
|
* r24548: Fix the case-changing renamesVolker Lendecke2007-10-101-14/+9
| | | | | This was broken when I changed reply_mv to wrap in a open_file_ntcreate call, unix_convert on the destination was called twice
* r24501: Added bcc test for reply_tcon & removed Vl's comment :-).Jeremy Allison2007-10-101-6/+5
| | | | Jeremy.
* r24498: More extra code into a function, reply_openerror.Jeremy Allison2007-10-101-38/+5
| | | | Jeremy.
* r24476: Fix the mappings in reply_opeXXX calls. Now to test renames.Jeremy Allison2007-10-101-7/+24
| | | | Jeremy.
* r24461: Fix Bug 4852, thank to anto <sistemac@prosoft.ba> for reporting it.Volker Lendecke2007-10-101-0/+14
|