summaryrefslogtreecommitdiffstats
path: root/source3/smbd/reply.c
Commit message (Collapse)AuthorAgeFilesLines
* Correctly calculate the offset for read&xVolker Lendecke2009-01-161-6/+11
|
* Only call sendfile_short_read() if we need it.Jeremy Allison2009-01-131-2/+6
| | | | Jeremy.
* Fix bug noticed by Volker - if sendfile returns zero thenJeremy Allison2009-01-131-2/+66
| | | | | we might have to handle a short send by filling with zeros. Jeremy.
* Fix bug #6019 File corruption in Clustered SMB/NFS environment managed via CTDBJeremy Allison2009-01-131-2/+2
| | | | Jeremy.
* s3:smbd: move all globals and static variables in globals.[ch]Stefan Metzmacher2009-01-081-7/+1
| | | | | | The goal is to move all this variables into a big context structure. metze
* s3: Allow renames of streams via NTRENAME and fix stream error codes on renameTim Prouty2009-01-041-10/+15
| | | | The test_streams_rename2 test in RAW-STREAMS verifies these changes
* Rename parent_dirname_talloc() to parent_dirname()Volker Lendecke2008-12-311-2/+2
|
* recvfile can't be used for printing so farVolker Lendecke2008-12-311-0/+4
|
* Fix an ancient uninitialized variable readVolker Lendecke2008-12-311-1/+2
| | | | The callers of open_file_ntcreate expect *psbuf to be filled correctly
* Fix bug #5986 - Editing a stream is broken (rename problems).Jeremy Allison2008-12-191-1/+3
| | | | Jeremy.
* s3: [3/3]: Fix a delete on close divergence from windows and the associated ↵Tim Prouty2008-12-091-2/+0
| | | | | | | torture test This third patch cleans up by removing all of the code that is made obsolete by the first patch. It should cause no functional changes.
* s3: Change SMB_VFS_CREATE_FILE to take a create_file_flags argumentTim Prouty2008-12-031-9/+9
| | | | | | This replaces the is_dos_path bool with a more future-proof argument. The next step is to plumb INTERNAL_OPEN_ONLY through this flag instead of overridding the oplock_request.
* s3: Modify direct callers of open_file_ntcreate and open_directory to call ↵Tim Prouty2008-12-031-47/+104
| | | | SMB_VFS_CREATE_FILE
* s3: Modify direct callers of create_file_unix_path to call SMB_VFS_CREATE_FILETim Prouty2008-12-031-2/+4
|
* s3: Add new "is_dos_path" argument to SMB_VFS_CREATE_FILETim Prouty2008-12-031-0/+3
| | | | | Now unix paths can be differentiated from windows paths so the underlying create_file implementations can convert paths correctly.
* s3: Add SMB_VFS_CREATE_FILE to the vfs layerTim Prouty2008-12-031-48/+51
| | | | Modify all callers of create_file to go through SMB_VFS_CREATE_FILE
* s3:smbd: give the correct error when trying to replace a streamStefan Metzmacher2008-12-011-0/+6
| | | | metze
* s3:smbd: correctly verify stream names to pass RAW-STREAMSStefan Metzmacher2008-12-011-1/+35
| | | | metze
* s3:smbd: '|' isn't allowed in windows filenamesStefan Metzmacher2008-12-011-1/+1
| | | | metze
* First part of fix for bug #5903 - vfs_streams_xattr breaks contents of the file.Jeremy Allison2008-11-211-1/+8
| | | | | | Restructures parts of open code so that fsp must be allocated before calling open_file_ntcreate(_internal). Also fix up file ref-counting inside files.c. Jeremy.
* Fix bug 5889. "delete veto files = no" seems to break.Jeremy Allison2008-11-111-4/+11
| | | | Jeremy.
* change CHECK_READ to use smb_request instead of inbufVolker Lendecke2008-11-081-3/+3
|
* Add construct_reply_common_req wrapperVolker Lendecke2008-11-041-2/+2
| | | | The goal is to remove the remaining direct calls to construct_reply_common.
* Remove some inbuf references by adding "cmd" to smb_requestVolker Lendecke2008-11-021-8/+6
|
* Remove the inbuf reference from map_checkpath_error()Volker Lendecke2008-11-021-4/+4
|
* Remove a bunch of direct inbuf references by adding "vwv" to smb_requestVolker Lendecke2008-11-021-109/+106
|
* Rename "inbuf" to "base_ptr" in srvstr_get_path_*Volker Lendecke2008-11-021-5/+5
|
* Remove some direct inbuf references by adding smbreq_bufremVolker Lendecke2008-11-021-2/+2
|
* Simplify params of srvstr_pull_buf_talloc()Volker Lendecke2008-11-021-9/+7
| | | | | Now that "req" is available everywhere, use it. Rename srvstr_pull_buf_talloc() to srvstr_pull_req()
* Add srvstr_get_path_req[_wcard]Volker Lendecke2008-11-021-107/+53
|
* Remove a bunch of direct inbuf references by adding "buf" to smb_requestVolker Lendecke2008-11-011-51/+42
|
* In reply_copy, don't write to inbuf when splitting directory and maskVolker Lendecke2008-11-011-19/+14
|
* In reply_search(), don't write to inbuf when splitting directory and maskVolker Lendecke2008-11-011-16/+10
|
* Apply some const to get_lock_*()Volker Lendecke2008-11-011-3/+6
|
* Add a "buflen" struct member to smb_requestVolker Lendecke2008-11-011-15/+7
| | | | | | This removes some explicit inbuf references and also removes a pointless check in reply_echo. The buflen can never be more than 64k, this is just a 16 bit value.
* Fix nonempty blank linesVolker Lendecke2008-10-191-91/+91
|
* Inline the once-used macro "init_dfsroot"Volker Lendecke2008-10-191-1/+6
|
* Use {u,}int64_t instead of SMB_BIG_{U,}INT.Jelmer Vernooij2008-10-141-46/+46
|
* Use "struct files_struct" for pipes instead of smb_np_structVolker Lendecke2008-10-131-7/+0
|
* Pass struct smb_request to file_freeVolker Lendecke2008-10-131-15/+15
| | | | on the way to get rid of chain_fsp
* Pass struct smb_request to file_newVolker Lendecke2008-10-131-1/+1
| | | | Goal is to remove the chain_fsp global variable
* Pass struct smb_request to file_fspVolker Lendecke2008-10-131-21/+21
| | | | The goal is to get rid of the chain_fsp global variable
* Remove unused CHECK_FSP macroVolker Lendecke2008-10-081-3/+2
|
* Simply our main loop processing. A lot :-). Correctly use events for all the ↵Jeremy Allison2008-10-031-3/+0
| | | | | | | | previous "special" cases. A step on the way to adding signals to the events and being able to merge the S3 event system with the S4 one. Jeremy.
* Fix the make test problem Karolin reported. Now rename_open_files actually ↵Jeremy Allison2008-09-301-2/+2
| | | | | | works correctly we must emit the change notify before we change the name, not before. Jeremy.
* Write times code update.Jeremy Allison2008-09-051-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ok, here's the fix for the write times breakage with the new tests in S4 smbtorture. The key is keeping in the share mode struct the "old_file_time" as the real write time, set by all the write and allocation calls, and the "changed_write_time" as the "sticky" write time - set by the SET_FILE_TIME calls. We can set them independently (although I kept the optimization of not setting the "old_file_time" is a "changed_write_time" was already set, as we'll never see it. This allows us to update the write time immediately on the SMBwrite truncate case, SET_END_OF_FILE and SET_ALLOCATION_SIZE calls, whilst still have the 2 second delay on the "normal" SMBwrite, SMBwriteX calls. I think in a subsequent patch I'd like to change the name of these from "old_file_time" to "write_time" and "changed_write_time" to "sticky_write_time" to make this clearer. I think I also fixed a bug in Metze's original code in that once a write timestamp had been set from a "normal" SMBwriteX call the fsp->update_write_time_triggered variable was set and then never reset - thus meaning the write timestamp would never get updated again on subsequent SMBwriteX's. The new code checks the update_write_time_event event instead, and doesn't update is there's an event already scheduled. Metze especially, please check this over for your understanding. Jeremy. (This used to be commit 6f20585419046c4aca1f7d6c863cf79eb6ae53b0)
* Slightly simplify logic: remove an else branchVolker Lendecke2008-09-011-14/+11
| | | | (This used to be commit 56ecec50130aa948a431427285aed4b28a5647e8)
* Add st_birthtime and friends for accurate create times on systems that ↵Jeremy Allison2008-08-271-3/+4
| | | | | | | | support it (*BSD and MacOSX). Should have done this ages ago, sorry. Jeremy. (This used to be commit 4c3a9558906f213948c3bdc081be73f8fed148cb)
* EINVAL is also a valid error return, meaning "this filesystemAndrew Tridgell2008-08-261-2/+3
| | | | | cannot do sendfile for this file" (This used to be commit 737f664604b28f230be63bfc2f3d516fd9eb1c63)
* Fix for bug #5617, reported and patched by Bartosz Antosik antosik@gmail.com.Jeremy Allison2008-08-141-0/+2
| | | | | | | xp/2003 explorer freezes browsing shares on samba ipv6 hosts. Caused by missing reply packet to SMB printclose packet. Jeremy (This used to be commit ecf2b906f476e4a764d0e53eed84b9b75a2062c0)