summaryrefslogtreecommitdiffstats
path: root/source/smbd/vfs-wrap.c
Commit message (Collapse)AuthorAgeFilesLines
* sync with SAMBA_2_2 for 2.2.6rc1Gerald Carter2002-10-091-0/+11
|
* beginning to sync up for 2.2.5 release....Gerald Carter2002-06-171-0/+5
|
* Start of merge to 2_2_RELEASE branch for release.Jeremy Allison2002-04-301-200/+171
| | | | Jeremy.
* 2.2.3 now in sync.Jeremy Allison2002-02-021-1/+1
| | | | Jeremy.
* Move over to RELEASE branch.Jeremy Allison2002-02-011-8/+115
| | | | Jeremy.
* Sync-up with SAMBA_2_2 branch.Jeremy Allison2001-10-111-17/+130
| | | | Jeremy.
* Syncup getting ready for release.Jeremy Allison2001-07-061-30/+61
| | | | Jeremy.
* configure:Jeremy Allison2001-04-131-1/+40
| | | | | | | | | | | | | | | | | | | 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. Jeremy.
* smbd/posix_acls.c: Saving and restoring errno here is the wrong place. Moved itJeremy Allison2001-03-261-1/+7
| | | | | to the places where [f]chmod_acl is called instead. Jeremy.
* But Doctor, I had to kill the patient in order to save him....Jeremy Allison2001-02-211-3/+0
| | | | | | | | | | | | | | | | | | | This will probably break 2.2 for a while. Do *NOT* checkout unless you like core dumps. This is the first merge of the TNG SAMR code into 2.2. It will eventually give us a wonderful PDC, but maybe painful in the short term. It had to be done however, and this touches almost every file (mostly just removing the OLD_NT_DOMAIN) stuff. I removed some SAMR functionality from rpcclient that would no longer compile. Also changed fstring to 256 bytes to better match an NT pathname. Jeremy.
* include/vfs.h:Jeremy Allison2001-01-231-0/+38
| | | | | | | | | | | | | smbd/vfs-wrap.c: smbd/vfs.c: Added fchmod_acl and chmod_acl. lib/substitute.c: smbd/lanman.c: smbd/open.c: smbd/process.c: smbd/reply.c: smbd/service.c: Removed sessetup_user variable. Added current_user_info struct which conatins domain info etc. Added '%D' for client domain parameter. Jeremy.
* Fixed compiler warning.Jeremy Allison2000-12-081-2/+2
| | | | Jeremy.
* Added missing OLD_NTDOMAIN to fix compiler warnings.Jeremy Allison2000-12-081-0/+2
| | | | Jeremy.
* - Fix Makefile.in so that clisecdesc.o is in SMBCACLS_OBJ, not LIBSMB_OBJDavid O'Neill2000-12-061-2/+2
| | | | | | | | | Also, fix etags/ctags rules to work when srcdir != builddir - updated configure - compiler warning fixes from APPLIANCE_HEAD (source/lib/util_sec.c source/smbd/vfs-wrap.c) - tdb_chainlock() no longer returns a value. (source/locking/locking.c source/tdb/tdbutil.c source/include/proto.h)
* Ok - fixed a bug in our levelII oplock code. We need to break a level II onJeremy Allison2000-11-161-4/+64
| | | | | | | | | a byte range lock (write lock only, but Win2k breaks on read lock also so I do the same) - if you think about why, this is obvious. Also fixed our client code to do level II oplocks, if requested, and fixed the code where we would assume the client wanted level II if it advertised itself as being level II capable - it may not want that. Jeremy.
* We now use our own vfs layer to do get/set acl calls (hurrah!).Jeremy Allison2000-10-061-0/+20
| | | | Jeremy.
* smbd/lanman.c: pstring fstring fix.Jeremy Allison2000-10-061-1/+1
| | | | | smbd/vfs-wrap.c: wrong parameters for disconnet. Jeremy.
* includes.h always include profile.hHerb Lewis2000-10-061-75/+62
| | | | | | | | | | | | | | | smb.h move FLUSH_REASONS to profile.h now that it is included by all profile.h add FLUSH_REASONS, add external declarations for profile_starttime, profile_endtime, do_profile_flag which are defined in profile/profile.c Modify PROFILE macros profile.c always include this function. It is still called under an #ifdef WITH_PROFILE but we need the above variables so we might as well include the function as well. fileio.c use new PROFILE macros to make code cleaner looking reply.c fix a typo in one START_PROFILE call statcache.c use new PROFILE macros to make code cleaner looking vfs_wrap.c use new PROFILE macros to make code cleaner looking added time profiling to each call.
* Restructuring of vfs layer to include a "this" pointer - can be an fsp orJeremy Allison2000-10-061-27/+25
| | | | | | | | | | | | | | a conn struct depending on the call. We need this to have a clean NT ACL call interface. This will break any existing VFS libraries (that's why this is pre-release code). In addition - added Herb's WITH_PROFILE changes - Herb - please examine the changes I've made to the smbd/reply.c code you added. The original code was very ugly and I have replaced it with a START_PROFILE(x)/END_PROFILE(x) pair using the preprocessor. Please check this compiles ok with the --with-profile switch. Jeremy.
* Vector get_nt_acl/set_nt_acl via vfs. POSIX ACL support should be addedJeremy Allison2000-10-051-11/+1
| | | | | above this layer. Jeremy.
* add some profile stats - all under #ifdef WITH_PROFILEHerb Lewis2000-10-051-0/+94
| | | | still more to come but I wanted to commit so it didn't get lost
* Backport of the HEAD vfs changes....Jeremy Allison2000-09-281-0/+46
| | | | Jeremy.
* Moved uglyness needed in fcntl locking (64->32 bit mapping, NFSJeremy Allison2000-05-021-0/+5
| | | | | | | errors etc.) into locking/posix.c, where it is needed. fcntl_lock in lib/util.c is now very small and clean. Added (*lock) op to vfs layer. Jeremy.
* This is a *big* checkin that may break some things, but implements theJeremy Allison2000-04-221-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | new open mechanism Andrew & I discussed. config.sub: configure: Included the QNX patch. include/vfs.h: smbd/vfs-wrap.c: smbd/vfs.c: Added ftruncate vfs call (needed). Note that we will also need locking calls in the vfs (to be added). lib/util_unistr.c: nmbd/nmbd_processlogon.c: Fix for NT domain logons causing nmbd to core dump. Also fix for sidsize DOS bug. locking/locking.c: Check value of ret before using it for memdup. printing/printing.c: Convert print_fsp_open to return an allocated fsp. rpc_server/srv_lsa.c: Fix for NT domain logons. I have removed all use of lp_share_modes() from the code (although I left the parameter in the table for backwards compatibility). It no longer makes sense for this to exist. smbd/close.c: Removed lp_share_modes(). smbd/fileio.c: Fixed parameters to unlock_share_entry call in panic code. smbd/files.c: Correctly set the unix_ERR_code to ERRnofids on fsp allocation fail. smbd/nttrans.c: smbd/reply.c: smbd/trans2.c: Changed all occurrences of open_file_shared/open_directory/ open_file_stat to return an fsp from the call. smbd/open.c: Changed all occurrences of open_file_shared/open_directory/ open_file_stat to return an fsp from the call. In addition I have fixed a long standing race condition in the deny mode processing w.r.t. two smbd's creating a file. Andrew, please note that your original idea of using open with O_EXCL in this case would not work (I went over the races very carefully) and so we must re-check deny modes *after* the open() call returns. This is because there is a race between the open with O_EXCL and the lock of the share mode entry. Imagine the case where the first smbd does the open with O_EXCL and a deny mode of DENY_ALL, but is pre-empted before it locks the share modes and creates the deny mode entry for DENY_ALL. A second smbd could then come in with O_RDONLY and a deny mode of DENY_NONE and the two opens would be allowed. The *only* way to fix this race is to lock the share modes after the open and then do the deny mode checks *after* this lock in the case where the file did not originally exist. This code will need extensive testing but seems to initially work. Jeremy.
* Change to vfs API. POSIX states fsync should return an int, not a void.Jeremy Allison2000-04-041-2/+6
| | | | Jeremy.
* Comments to use vfs_* functions instead of dos_* unless reallyTim Potter2000-02-031-0/+295
| | | | accessing files on local disk.
* 2nd phase of head branch sync with SAMBA_2_0 - this delets all the files ↵Andrew Tridgell1999-12-131-304/+0
| | | | that were in the head branch but weren't in SAMBA_2_0
* Fix compiler warning.Tim Potter1999-05-061-3/+104
| | | | | | Added checks to panic if VFS functions are passed NULL pointers. This may expose some bugs that have been lurking about. Checks can be easily removed later.
* Added dummy connect and disconnect VFS operations to avoid theTim Potter1999-04-201-2/+17
| | | | | | | possibilty of NULL function pointers being called. Changed arguments to fsync() function to break dependency on connection_struct.
* Always do a compile before CVS commit! )-:Tim Potter1999-04-081-1/+1
|
* Forgot about closedir() function for VFS. Hoo embarassing.Tim Potter1999-04-081-0/+8
|
* Under IRIX, a void function may return a value, even if that value isTim Potter1999-04-051-1/+1
| | | | void!
* Wrapped up all VFS disk I/O functions for portability. I rememberTim Potter1999-04-041-0/+180
tridge telling me why this needed to be done but I have since forgotten. (-: