summaryrefslogtreecommitdiffstats
path: root/source/smbd/files.c
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* 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
* Release per-fsp data on file closure.James Peach2007-12-191-0/+5
|
* [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-0/+1
|
* r25055: Add file_id_string_tosVolker Lendecke2007-10-101-2/+2
| | | | This removes file_id_string_static and file_id_string_static2
* r24102: Pass the fid instead of inbuf and an offset to file_fsp.Volker Lendecke2007-10-101-6/+2
| | | | | | | This removes the buf==NULL condition in file_fsp(), but wherever it is called we do have a buffer anyway. Volker
* r23996: One more constVolker Lendecke2007-10-101-1/+1
|
* r23784: use the GPLv3 boilerplate as recommended by the FSF and the license textAndrew Tridgell2007-10-101-2/+1
|
* r23779: Change from v2 or later to v3 or later.Jeremy Allison2007-10-101-1/+1
| | | | Jeremy.
* r23589: Ensure we will always release any timeout handlerJeremy Allison2007-10-101-0/+3
| | | | | | on fsp close or removal of oplock. Mulitple removals are safe. Jeremy.
* r23510: Tidy calls to smb_panic by removing trailing newlines. Print theJames Peach2007-10-101-1/+1
| | | | failed expression in SMB_ASSERT.
* r23183: Check in a change made by Tridge:Volker Lendecke2007-10-101-27/+21
| | | | | | | | | | | | | This replaces the internal explicit dev/ino file id representation by a "struct file_id". This is necessary as cluster file systems and NFS don't necessarily assign the same device number to the shared file system. With this structure in place we can now easily add different schemes to map a file to a unique 64-bit device node. Jeremy, you might note that I did not change the external interface of smb_share_modes.c. Volker
* r21714: Change the VFS interface to use struct timespecJeremy Allison2007-10-101-3/+3
| | | | | | | | | | for utimes - change the call to ntimes. This preserves nsec timestamps we get from stat (if the system supports it) and only maps back down to usec or sec resolution on time set. Looks bigger than it is as I had to move lots of internal code from using time_t and struct utimebuf to struct timespec. Jeremy.
* r21319: Remove functions not needed anymoreVolker Lendecke2007-10-101-44/+0
|
* r21279: Get rid of 'aio write behind', this is broken.Volker Lendecke2007-10-101-1/+0
| | | | | | It should probably better be integrated with our write cache. Volker
* r21092: Ok, that's the one that activates the Samba4 notify backend.Volker Lendecke2007-10-101-1/+4
| | | | | | Now to clean up / fix lots of stuff. Volker
* r20854: Ok, now I think we're at a point where looking at notify starts to ↵Volker Lendecke2007-10-101-0/+46
| | | | | | | | make sense again :-) Volker
* r20634: A *LOT* more work is necessary before touching notify remotely ↵Volker Lendecke2007-10-101-46/+0
| | | | | | | | | starts to make sense. Until then, remove it from the tree to keep the diff between 3_0_24 and 3_0 small. Volker
* r20442: Slight rewrite of the change notify infrastructure. This now ↵Volker Lendecke2007-10-101-24/+33
| | | | | | | | | | | | | | | | | | | | | | | | survives the first of the raw-notify subtests, the one-level test_notify_dir without any flags around yet. The tricky part was getting the data structures right, I hope the next tests don't let that fall over. fsp->notify is now by default NULL, meaning that nobody has issued a changenotify call. This means nobody is interested in changes for this directory. If that has happened, notify_change_buf collects the changes if no current request is outstanding, and it collects the requests if no change has happened since the last request. Happy New Year, somewhere on this planet it's already 2007 :-) Volker P.S: Jeremy, there's a question for you in smbd/files.c line 367.
* r20394: This is a *VERY* early start of my work on notify.Volker Lendecke2007-10-101-0/+37
| | | | | | | | | Checking in because Jeremy was bugging me. Potentially this becomes quite intrusive, I'm not sure if I should open a temporary branch for this. Jeremy, Jerry, do you think 3_0 is the right place for this? Volker
* r16945: Sync trunk -> 3.0 for 3.0.24 code. Still needJeremy Allison2007-10-101-26/+44
| | | | | | | to do the upper layer directories but this is what everyone is waiting for.... Jeremy.
* r15817: Remove some unused codeVolker Lendecke2007-10-101-20/+0
|
* r15668: DOS or FCB opens share one share mode entry from differentJeremy Allison2007-10-101-4/+4
| | | | | | | fsp pointers. Ensure we cope with this to pass Samba4 DENY tests (we used to pass these, there must have been a regression with newer code). We now pass them. Jeremy
* r14460: SMBexit closes by pid and vuid. Tested with smbtorture.Jeremy Allison2007-10-101-3/+3
| | | | Jeremy.
* r13293: Rather a big patch I'm afraid, but this should fix bug #3347Jeremy Allison2007-10-101-3/+3
| | | | | | | | by saving the UNIX token used to set a delete on close flag, and using it when doing the delete. libsmbsharemodes.so still needs updating to cope with this change. Samba4 torture tests to follow. Jeremy.
* r10656: BIG merge from trunk. Features not copied overGerald Carter2007-10-101-21/+12
| | | | | | | * \PIPE\unixinfo * winbindd's {group,alias}membership new functions * winbindd's lookupsids() functionality * swat (trunk changes to be reverted as per discussion with Deryck)
* r9985: Move the all the strict sync logic into file_sync().James Peach2007-10-101-1/+1
|
* r8292: Tidy up function comments.Jeremy Allison2007-10-101-2/+10
| | | | Jeremy.
* r8219: Merge the new open code from HEAD to 3.0. Haven't yet run the tortureJeremy Allison2007-10-101-9/+73
| | | | | | | | | tests on this as it's very late NY time (just wanted to get this work into the tree). I'll test this over the weekend.... Jerry - in looking at the difference between the two trees there seem to be some printing/ntprinting.c and registry changes we might want to examine to try keep in sync. Jeremy.
* r6172: Tidy up error processing significantly. Remove unix_ERR_XXX global ↵Jeremy Allison2007-10-101-4/+2
| | | | | | nastyness. Jeremy.
* r5731: Get delayed write semantics closer to W2K3. We need to store 2 times.Jeremy Allison2007-10-101-0/+4
| | | | | This may fix bug #2382. Jeremy.
* r5720: Attempt to fix bug #2382 (Excel shared workbook stops working). AlsoJeremy Allison2007-10-101-2/+57
| | | | | | incorporates part of the fix created by ke_miyata@itg.hitachi.co.jp for bug #2045 (MS-Office behavior of timestamp). Jeremy.
* r4088: Get medieval on our ass about malloc.... :-). Take control of all our ↵Jeremy Allison2007-10-101-1/+1
| | | | | | | | | allocation functions so we can funnel through some well known functions. Should help greatly with malloc checking. HEAD patch to follow. Jeremy.
* r3050: Steal from Samba4 :-). Make us pass most of the new lock tests ↵Jeremy Allison2007-10-101-22/+24
| | | | | | | (except for the cancel lock which I have to add). Jeremy.
* Fix coredump from Samba4 torture suite.Jeremy Allison2003-09-171-0/+2
| | | | Jeremy.
* Implement SMBexit properly. Found by Samba4 tester. You must do a makeJeremy Allison2003-08-191-0/+16
| | | | | clean proto all; after this commit. Jeremy.
* Implemented the level 1010 NT rename level. Many fixes for Samba4 testJeremy Allison2003-08-161-0/+12
| | | | | correctness. Jeremy.
* Stat opens can have fsp->fd == -1 and will have a share entry. EnsureJeremy Allison2003-05-221-2/+10
| | | | | that file_find_dif will find them. Fixes a core dump in smbd/open.c. Jeremy.
* Add NT quota support. Patch from Stefan (metze) MetzemacherAlexander Bokovoy2003-05-121-0/+4
| | | | | | | 1. Allows to change quota settings for shared mount points from Win2K and WinXP from Explorer properties tab 2. Disabled by default and when requested, will be probed and enabled only on Linux where it works 3. Was tested for approx. two weeks now on Linux by two independent QA teams, have not found any bugs so far Documentation to follow
* Fix for systems that allow more than 65536 open files per process.Jeremy Allison2002-10-221-1/+8
| | | | Jeremy.
* Removed version number from file header.Tim Potter2002-01-301-2/+1
| | | | Changed "SMB/Netbios" to "SMB/CIFS" in file header.
* Move from timestamp to gen count file id's for finding oplocked filesJeremy Allison2001-10-201-20/+57
| | | | | in a tdb. Jeremy.
* Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header.Tim Potter2001-10-021-2/+0
|
* move to SAFE_FREE()Simo Sorce2001-09-171-1/+1
|
* configure:Jeremy Allison2001-04-141-2/+3
| | | | | | | | | | | | | | | | | | | | | | configure.in: include/config.h.in: include/profile.h: smbd/vfs-wrap.c: smbd/vfs.c: Added fchmod and fchown to VFS (sorry Gerald - but we needed them anyway). smbd/dosmode.c: smbd/files.c: printing/printfsp.c: smbd/close.c: smbd/open.c: Fixed "dos filemode" correctly so there are no race conditions. Forces test of open of file O_WRONLY before allowing fchmod as root. Afterwards, calls standard close function that preserves POSIX locks due to POSIX-me-harder braindamage. :-). Andrew please review this code. Also - in removing the tmpdir param in smbrun an extra NULL parameter was missed in each print_run_command() call (which is a varargs fn.). Now fixed. Jeremy.
* Added fix from "Eric Boehm" <boehm@nortelnetworks.com> to try and set hardJeremy Allison2001-04-131-3/+3
| | | | | limit before setting soft limit. Jeremy.
* Merge of new 2.2 code into HEAD (Gerald I hate you :-) :-). Allows new SAMRJeremy Allison2001-03-111-2/+0
| | | | | | RPC code to merge with new passdb code. Currently rpcclient doesn't compile. I'm working on it... Jeremy.
* more merging voodooAndrew Tridgell2000-05-101-0/+2
| | | | | | this adds "#define OLD_NTDOMAIN 1" in lots of places. Don't panic - this isn't permanent, it should go after another few merge steps have been done
* Fix for misunderstanding of fsync added when vfs layerHerb Lewis2000-05-101-1/+1
| | | | | was done. Samba was doing fsync's (bleagh). Jeremy.
* Added sys_fork() and sys_getpid() functions to stop the overheadJeremy Allison2000-05-021-1/+1
| | | | | of doing a system call every time we want to just get our pid. Jeremy.