summaryrefslogtreecommitdiffstats
path: root/source3/smbd/files.c
Commit message (Collapse)AuthorAgeFilesLines
...
* s3: Remove talloc_autofree_context() from files.cVolker Lendecke2010-09-281-4/+4
|
* s3: Lift smbd_server_conn from file_find_fdVolker Lendecke2010-09-281-3/+3
|
* s3: Remove smbd_server_conn from file_fspVolker Lendecke2010-09-281-1/+1
|
* s3: Slightly simplify file_fnumVolker Lendecke2010-09-281-2/+15
| | | | req==NULL should never happen, see the comment
* s3: Remove smbd_server_conn from file_sync_allVolker Lendecke2010-09-281-1/+1
|
* s3: Remove smbd_server_conn from file_find_subpathVolker Lendecke2010-09-281-1/+1
|
* s3: Lift smbd_server_conn from file_find_di_firstVolker Lendecke2010-09-281-2/+3
|
* s3: Lift smbd_server_conn from file_find_difVolker Lendecke2010-09-281-3/+4
|
* s3: Remove smbd_server_conn from files_forallVolker Lendecke2010-09-281-1/+2
|
* s3: Remove smbd_server_conn from file_close_userVolker Lendecke2010-09-281-2/+2
|
* s3: Remove smbd_server_conn from file_close_pidVolker Lendecke2010-09-281-2/+3
|
* s3: Remove smbd_server_conn from file_close_connVolker Lendecke2010-09-281-1/+1
|
* s3: Remove smbd_server_conn from file_new and file_freeVolker Lendecke2010-09-281-2/+2
|
* s3: Lift smbd_server_conn from file_fnumVolker Lendecke2010-09-281-4/+5
|
* s3: Move "Files" to smbd_server_connectionVolker Lendecke2010-09-281-15/+15
|
* s3: Make file_fnum staticVolker Lendecke2010-09-271-1/+1
|
* s3: Remove some unused codeVolker Lendecke2010-09-271-50/+0
|
* s3: Fix some commentsVolker Lendecke2010-09-271-2/+2
|
* s3-smbd: Fixed indent.Andreas Schneider2010-08-131-2/+3
| | | | Signed-off-by: Simo Sorce <idra@samba.org>
* Fix a valgrind error found by SMB2-COMPOUND test.Jeremy Allison2010-06-081-0/+8
| | | | | | | | If a file is closed we must also NULL out all chained_fsp pointers when the fsp is freed to prevent invalid pointer access. Jeremy.
* s3-smbd: group print relate data in own structureSimo Sorce2010-04-231-1/+9
|
* s3: Use bitmap_talloc in files.cVolker Lendecke2010-03-281-1/+2
|
* s3: file_walk_table -> files_forallVolker Lendecke2010-03-221-1/+1
| | | | | This is more in line with the rest of the Samba code, like connections_forall etc.
* s3: Fix some nonempty blank linesVolker Lendecke2010-03-221-6/+6
|
* Fix bug #6837 - "Too many open files" when trying to access large number of ↵Jeremy Allison2009-12-021-2/+0
| | | | | | | | files from Windows 7. Original patch by me fixed up with the correct open files number by jmaggard10@hotmail.com. Jeremy.
* Oops. Don't break the build..Jeremy Allison2009-10-071-3/+2
| | | | Jeremy.
* Make the logic a lot clearer and fix the comment to match.Jeremy Allison2009-10-071-15/+10
| | | | Jeremy
* Correct fix for bug 6781 - Cannot rename subfolders in Explorer view with ↵Jeremy Allison2009-10-071-3/+1
| | | | | | | | recent versions of Samba. Without this fix, renaming a directory ./a to ./b, whilst a directory ./aa was already open would fail. Jeremy.
* s3: Fix a bug in renames of directoriesTim Prouty2009-08-061-6/+19
| | | | | | | | | Recently code was added to match windows semantics of denying the rename of a directory if there are open files underneath it. This does partly match windows semantics, but it turns out the rename should be allowed if the open file handle is for the directory being renamed, or for a stream on the directory being renamed. This patch refines the check to better follow these rename semantics.
* s3: Separate out a new file: filename_utils.cTim Prouty2009-07-201-9/+0
| | | | This is to ease the linking pain of everything that links LOCKING_OBJ
* s3: Change fsp->fsp_name to be an smb_filename struct!Tim Prouty2009-07-201-15/+58
|
* s3: Change file_structs to be allocated with talloc instead of mallocTim Prouty2009-07-201-10/+15
|
* Add "file_walk_table" to do stuff with all open filesVolker Lendecke2009-05-181-0/+22
|
* Add notify_onelevel.tdbVolker Lendecke2009-04-161-0/+4
| | | | | | | | | | This optimizes non-recursive notifys. For non-recursive notifies we can use a per-directory file-id indexed notify record. This matters for the Windows Explorer and IIS cases which do not use recursive notifies. In these cases, we do not have to shuffle around the whole notify record on every change. For the cluster case, this improves correctness of the notifies, ctdb only distributes the tdb seqnum once a second, so we can lose notifies.
* Make us pass the RAW-RENAME torture test I just added.Jeremy Allison2009-02-261-0/+43
| | | | | | | Inside a directory, keep a file open and then renaming the directory should fail with ACCESS_DENIED. Jeremy.
* s3:smbd: move all globals and static variables in globals.[ch]Stefan Metzmacher2009-01-081-17/+1
| | | | | | The goal is to move all this variables into a big context structure. metze
* First part of fix for bug #5903 - vfs_streams_xattr breaks contents of the file.Jeremy Allison2008-11-211-41/+33
| | | | | | 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.
* Remove "pipe_handle_offset" -- pipes now use "struct files_struct"Volker Lendecke2008-10-251-5/+0
|
* Remove the chain_fsp globalVolker Lendecke2008-10-131-19/+9
|
* Pass struct smb_request to file_freeVolker Lendecke2008-10-131-4/+4
| | | | on the way to get rid of chain_fsp
* Pass struct smb_request to file_newVolker Lendecke2008-10-131-7/+6
| | | | Goal is to remove the chain_fsp global variable
* Pass struct smb_request to file_fspVolker Lendecke2008-10-131-1/+1
| | | | The goal is to get rid of the chain_fsp global variable
* Remove a pointless level of indirectionVolker Lendecke2008-10-091-3/+1
|
* Second part of the fix for bug #5790 - samba returns ↵Jeremy Allison2008-09-261-4/+6
| | | | | | | STATUS_OBJECT_NAME_NOT_FOUND on set file disposition call. This was my fault. I use a singleton cache (positive and negative) to speed up pathname based qfileinfo/setfileinfo lookups for alternate fsp's open on the same path. I only invalidated the negative cache on adding a new file fsp, as I incorrectly imagined the new fsp was put at the *end* of the open files list. DLIST_ADD puts it at the start, meaning any subsequent open wasn't seen once the cache was set. Doh ! Jeremy.
* Fix bug #5790 samba returns STATUS_OBJECT_NAME_NOT_FOUND on set file ↵Jeremy Allison2008-09-241-4/+2
| | | | | | | | disposition. We were checking that fd != -1 in file_find_di_XXX calls which is no longer needed due to a change in internal semantics. Jeremy.
* Remove the "stat_open()" function, flag, and all associated code. It was onlyJeremy Allison2008-05-021-1/+0
| | | | | | | | being (correctly) used in the can_read/can_write checks for hide unreadable/unwritable and this is more properly done using the functions in smbd/file_access.c. Preparing to do NT access checks on all file access. Jeremy. (This used to be commit 6bfb06ad95963ae2acb67c4694a98282d3b29faa)
* smbd: implement the strange write time update logicStefan Metzmacher2008-04-071-26/+3
| | | | | | | | | | | | | | | | | | | | | We now never call file_ntimes() directly, every update is done via smb_set_file_time(). This let samba3 pass the BASE-DELAYWRITE test. The write time is only updated 2 seconds after the first write() on any open handle to the current time (not the time of the first write). Each handle which had write requests updates the write time to the current time on close(). If the write time is set explicit via setfileinfo or setpathinfo the write time is visible directly and a following close on the same handle doesn't update the write time. metze (This used to be commit 2eab212ea2e1bfd8fa716c2c89b2c042f7ba12ea)
* Release per-fsp data on file closure.James Peach2007-12-191-0/+5
| | | | (This used to be commit 9fead46b54519b3df78a869dbc99207046587d6a)
* [GLUE] Rsync SAMBA_3_2_0 SVN r25598 in order to create the v3-2-test branch.Gerald (Jerry) Carter2007-10-101-0/+1
| | | | (This used to be commit 5c6c8e1fe93f340005110a7833946191659d88ab)
* r25055: Add file_id_string_tosVolker Lendecke2007-10-101-2/+2
| | | | | This removes file_id_string_static and file_id_string_static2 (This used to be commit 638c848c9afe374feb30e34c494f89b2a6c64f7b)