Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Split off of POSIX locking into separate unit as Andrew requested. | Jeremy Allison | 2000-04-28 | 1 | -0/+1208 | |
| | | | | | Done so I don't lose my edits... :-). Jeremy. | |||||
* | Added info level 1005 to netsharegetinfo (is the share a DFS root) | Shirish Kalele | 2000-04-28 | 5 | -2/+52 | |
| | | | | Added dfs_server announcement in set_default_server_announce_type() | |||||
* | Added tdb_get/set_int_byblob, which takes a size_t len and then implemented | Jeremy Allison | 2000-04-28 | 2 | -7/+21 | |
| | | | | | | the tdb_get/set_int string functions in terms of them. Will be useful in storing POSIX pending close records (which are ints but indexed by dev/inode pairs). Jeremy. | |||||
* | Forgot to close when "posix locking" is set to False. | Jeremy Allison | 2000-04-28 | 1 | -2/+5 | |
| | | | | Jeremy. | |||||
* | Added optimization where we are single opener (don't free POSIX locks). | Jeremy Allison | 2000-04-28 | 1 | -1/+21 | |
| | | | | Jeremy. | |||||
* | Made changes suggested by Andrew review. | Jeremy Allison | 2000-04-28 | 3 | -53/+54 | |
| | | | | | | | fd_close now calls fd_close_posix() directly. set_posix_lock/release_posix_lock() now handle the reference counting. More changes due when this gets moved to the file locking/posix.c Jeremy. | |||||
* | Ok - this is more subtle than it looks :-). | Jeremy Allison | 2000-04-27 | 5 | -13/+17 | |
| | | | | | | | | | | | | | | | When a file is being closed, once it passes the fnum and tid tests then the locking context should be ignored when removing all locks. This is what is done in the brl close case, but when you have outstanding POSIX locks, then you cannot remove all the brl locks in one go, you have to get the lock list and call do_unlock individually. As this uses global_smbpid as the locking context, you need to make sure that this is set correctly for the specific lock being removed. I now do this by storing the smbpid in each entry in the unlock list returned from the query call. I removed the smbpid from fsp (not needed) and things seem ok (even with the stupid smbpid tricks that smbtorture plays :-). Jeremy. | |||||
* | Fixed subtle unlocking bug when a file is closed. We need to store the | Jeremy Allison | 2000-04-27 | 6 | -18/+39 | |
| | | | | | | | | smbpid used when a file was opened in the files_struct. Else we use the wrong global_smbpid when we are closing the file and trying to remove the brl locks - this causes the brl locks to be left when the file is closed as the samba_context check fails. Jeremy. | |||||
* | Did the rewrite Andrew wanted where all knowledge of POSIX locking is | Jeremy Allison | 2000-04-27 | 4 | -122/+181 | |
| | | | | | | | | | | removed from the smbd/open.c code. We now use a dlink list of structures indexed by dev/inode to store all pending fd's for close. This could be rewritten to use lib/hash.c if this is discovered to be too slow in use. Andrew, please take a look and let me know if this is what you had in mind. Jeremy. | |||||
* | Fixed crash bugs Andrew pointed out with LOCK4 smbtorture | Jeremy Allison | 2000-04-27 | 3 | -15/+16 | |
| | | | | | | | test. Was miscounting posix locks, plus was not taking into account the case where other_fsp == fsp in the 'move locks' case. DOH ! This code will be re-written anyway :-). Jeremy. | |||||
* | Fixed range check on writeX. | Jeremy Allison | 2000-04-27 | 1 | -1/+4 | |
| | | | | Jeremy. | |||||
* | Tidyup of smbecho. | Jeremy Allison | 2000-04-27 | 1 | -2/+4 | |
| | | | | Jeremy. | |||||
* | file winbindd_ntdom.h was initially added on branch SAMBA_TNG. | Tim Potter | 2000-04-27 | 0 | -0/+0 | |
| | ||||||
* | file ntdom_config.h was initially added on branch SAMBA_TNG. | Tim Potter | 2000-04-27 | 0 | -0/+0 | |
| | ||||||
* | quick hack to get smbtorture working again | Andrew Tridgell | 2000-04-27 | 1 | -0/+2 | |
| | ||||||
* | Added the hard code :-). | Jeremy Allison | 2000-04-25 | 4 | -78/+469 | |
| | | | | | | | | | | HEAD should now map brl locks correctly into POSIX locks, including the really nasty case of large range unlock. There is a lot of pretty ASCII art in locking/brlock.c explaining exactly how this code works. If it is unclear, please ask me. Jeremy. | |||||
* | moved trans2.h and nterr.h into includes.h with all our other includes | Andrew Tridgell | 2000-04-25 | 32 | -85/+97 | |
| | ||||||
* | split clientgen.c into several parts | Andrew Tridgell | 2000-04-25 | 11 | -3062/+3300 | |
| | | | | | the next step is splitting out the auth code, to make adding lukes NTLMSSP support easier | |||||
* | added TDB_MODIFY flag - patch from from luke | Andrew Tridgell | 2000-04-25 | 3 | -5/+30 | |
| | ||||||
* | fixed a memory leak in nmblookup | Andrew Tridgell | 2000-04-25 | 1 | -0/+2 | |
| | ||||||
* | fixed a memory leak of devmode in spoolss | Andrew Tridgell | 2000-04-25 | 1 | -0/+3 | |
| | | | | this stuff is screaming out for talloc() rather than malloc/free | |||||
* | don't qsort a list less than 2 entries | Andrew Tridgell | 2000-04-25 | 1 | -1/+3 | |
| | ||||||
* | Added the code that keeps fd's open across a close if there are other fsp's | Jeremy Allison | 2000-04-24 | 3 | -37/+144 | |
| | | | | | | | | | | | | | | | open on the same dev/inode pair with existing POSIX locks. This is done at the smbd/open layer, so smbd just calls fd_close() and the transfer of any open fd's is done under the covers of fd_close(). When an fsp is closed and no other fsp's open on the same dev/inode pair have existing POSIX locks then all fd's associated with this fsp are closed. Now only the hard part of doing the POSIX range unlock code when read locks overlap remains for full POSIX/SMB lock integration.... Jeremy. | |||||
* | Now that fsp's are created on successful file open, the structure member | Jeremy Allison | 2000-04-24 | 12 | -36/+47 | |
| | | | | | | | | | | | | fsp->open is no longer needed (if an fsp pointer is valid, then it's open :-). NB for Luke, this patch also did not apply to TNG. TNG is not yet identical w.r.t file serving with HEAD. This makes it impossible for me to help maintain TNG. Please fix asap. lib/substitute.c: Removed unused variable (pidstr). Jeremy. | |||||
* | dump in a binary format | Andrew Tridgell | 2000-04-24 | 1 | -3/+45 | |
| | ||||||
* | use an size_t not a ssize_t when checking for out of bounds errors | Andrew Tridgell | 2000-04-24 | 1 | -1/+1 | |
| | ||||||
* | moved INSURE hook into util.c | Andrew Tridgell | 2000-04-24 | 1 | -23/+0 | |
| | ||||||
* | fixed another memory leak | Andrew Tridgell | 2000-04-24 | 1 | -0/+1 | |
| | ||||||
* | fixed a parameter bug found by insure | Andrew Tridgell | 2000-04-24 | 1 | -1/+1 | |
| | ||||||
* | moved the INSURE hook into util.c | Andrew Tridgell | 2000-04-24 | 1 | -0/+26 | |
| | ||||||
* | more pstring/fstring errors found by insure | Andrew Tridgell | 2000-04-23 | 1 | -15/+16 | |
| | ||||||
* | fixed a locking database bug - it was actually harmless except that | Andrew Tridgell | 2000-04-23 | 1 | -2/+10 | |
| | | | | | smbstatus could display the wrong filename when files change dev/inum after a rename | |||||
* | don't close high fd's in smbrun when using insure (prevents closing | Andrew Tridgell | 2000-04-23 | 1 | -1/+3 | |
| | | | | error fd) | |||||
* | another fstring/pstring fix | Andrew Tridgell | 2000-04-23 | 1 | -1/+1 | |
| | ||||||
* | fixed another spoolss memory leak | Andrew Tridgell | 2000-04-23 | 2 | -2/+2 | |
| | | | | | I am falling in love with insure - it is finding _lots_ of memory problems | |||||
* | fixed a memory leak I caused last week with my lines[] changes | Andrew Tridgell | 2000-04-23 | 1 | -6/+1 | |
| | ||||||
* | split out standard_sub_basic() again to fix a bug where %p was being | Andrew Tridgell | 2000-04-23 | 1 | -14/+29 | |
| | | | | substituted in the loadparm code and thus leaving lpq with no printer | |||||
* | we can't pass a fstring to a routine expecting a pstring | Andrew Tridgell | 2000-04-23 | 1 | -1/+1 | |
| | ||||||
* | check for a valid snum when running a printing command | Andrew Tridgell | 2000-04-23 | 1 | -0/+5 | |
| | ||||||
* | Makefile.in change for split of printfsp.c | Andrew Tridgell | 2000-04-23 | 1 | -1/+2 | |
| | ||||||
* | split fsp specific routines out of printing.c to fix linking problem | Andrew Tridgell | 2000-04-23 | 2 | -65/+91 | |
| | | | | in TNG | |||||
* | fixed two uninitialised memory references | Andrew Tridgell | 2000-04-23 | 1 | -2/+2 | |
| | ||||||
* | trick to get full stack trace when using the free version of insure | Andrew Tridgell | 2000-04-23 | 1 | -0/+24 | |
| | ||||||
* | insure caught an uninitialised memory reference - ensure it starts as | Andrew Tridgell | 2000-04-23 | 1 | -0/+2 | |
| | | | | zero | |||||
* | avoided a memory leak in the ubi code by deleting a mangled cache | Andrew Tridgell | 2000-04-23 | 1 | -1/+11 | |
| | | | | | | entry before adding to ensure that we don't ever add a duplicate entry this code can be removed when ubi gets fixed | |||||
* | fixed a prs memory leak (weren't freeing input buffer) | Andrew Tridgell | 2000-04-23 | 1 | -0/+1 | |
| | ||||||
* | if using insure then don't close fd 2 | Andrew Tridgell | 2000-04-23 | 1 | -1/+4 | |
| | ||||||
* | return NULL for a zero size memdup | Andrew Tridgell | 2000-04-22 | 1 | -0/+1 | |
| | ||||||
* | don't copy a null groups list | Andrew Tridgell | 2000-04-22 | 1 | -2/+6 | |
| | ||||||
* | fixed overlapping strcpy() found by insure | Andrew Tridgell | 2000-04-22 | 1 | -9/+6 | |
| |