Commit Graph

3868 Commits

Author SHA1 Message Date
Jeffrey Altman
c60736030b windows-scache-ref-leak-20061010
if cm_FindSCache is called the returned scache object
must be released.
2006-10-10 16:55:49 +00:00
Jeffrey Altman
3c13e5f0c0 windows-afscreds-20061010
prevent a stack overflow if the afsd_service does not successfully
start after a request to do so is issued.
2006-10-10 16:51:09 +00:00
Jeffrey Altman
8b7e9da625 windows-build-clean-20061010
more AFS_component_version_number.h files to remove
2006-10-10 16:45:56 +00:00
Derrick Brashear
763dc42ff0 revert-aix5-curpag-20061009
failed to commit this. commit now
VS: ----------------------------------------------------------------------
2006-12-05 19:37:00 +00:00
Tracy Di Marco White
aa7d443b6d nbsd-sysnames-20061008
FIXES 42019

add missing sysnames
2006-10-09 04:27:48 +00:00
Derrick Brashear
747a8d8f41 h-enum-r-avoid-extra-hold-20061008
FIXES 40699

avoid orphaning an extra hold
2006-10-09 04:15:45 +00:00
Jeffrey Hutzelman
5ae8cf85e6 cellservdb-20061008
cellservb update from grand.central.org
2006-10-09 04:14:02 +00:00
Jeffrey Altman
1e9533907d windows-scache-ref-leak-fix-20061008
pointer not pointer to pointer
2006-10-09 02:48:44 +00:00
Jeffrey Altman
8919e0d517 windows-scache-ref-dbg-20061008
add debugging code that can be activated with #define DEBUG_REFCOUNT
to assist in debugging scache refcount leaks
2006-10-08 21:37:01 +00:00
Jeffrey Altman
7231e2efe6 windows-scache-ref-leak-20061008
plug two more scache refcount leaks
2006-10-08 21:30:03 +00:00
Jeffrey Altman
c97374d6fd windows-osi-prototypes-20061007
osi_LogCreate
2006-10-07 23:34:49 +00:00
Jeffrey Altman
b400763506 windows-misc-cleanup-20061007
reformat some code; make sure that pointers are copied while
mutexes are held; ...
2006-10-07 23:32:27 +00:00
Jeffrey Altman
feb5f27c75 windows-scache-ref-leak-20061007
return the cm_scache_t whose refCount was increased
2006-10-07 23:27:14 +00:00
Jeffrey Altman
ffe26eb18d windows-misc-fixes-20061006
#ifdef DEBUG_REFCOUNT the ref count log entries so they aren't always
compiled in

comment out the remaining location where the write lock on cm_scacheLock
is dropped in order to obtain the scache mutex on the object returned
from cm_GetNewSCache().  Dropping the lock results in more than one
thread being given the same cm_scache_t which is more dangerous than
blowing away the contents of the object without holding the mutex

ensure that cm_BufWrite is always called with a non-NULL scp.  Add
an assertion to double check that we do it all the time.
2006-10-06 17:31:30 +00:00
Jeffrey Altman
ffe5092c31 windows-log-crlf-20061006
use CR-LF as the afsd.log EOL so that it can be read with notepad.exe
2006-10-06 17:23:27 +00:00
Tracy Di Marco White
04b51cc8df netbsd-30-20061006
FIXES 40782

add support for netbsd 3.0, netbsd 4.0(ish)
2006-10-06 15:55:35 +00:00
Chaskiel M Grundman
e39f4d8789 osi-probe-avoid-out-of-range-memory-reads-20061006
FIXES 41858

avoid oops on opteron due to accessing unmapped memory
2006-10-06 14:59:54 +00:00
Chas Williams
775ea6f1b7 linux-2619-aio-and-read-write-changes-20061006
changes to support 2.6.19
2006-10-06 14:27:44 +00:00
Marcus Watts
f5e9182848 pt_util-man-page-20061005
Initial man page for pt_util.
2006-10-06 06:37:38 +00:00
Jeffrey Altman
b7117f6103 windows-more-misc-fixes-20061005
replace all DebugBreak() calls with osi_panic.

remove calls to cm_RecycleSCache from VNOVNODE handler as its not
lock safe to drop and re-obtain locks to adhere to the locking
hierarchy

restore reference to CM_SCACHESYNC_STOREDATA that should
not have been removed.

remove attempts to adhere to locking hierarching from cm_GetNewSCache.
dropping the cm_scacheLock is too dangerous

add a check to ensure that the scache refcount is not zero if there
is a valid smb_fid_t pointing to it.

more debug logging
2006-10-06 06:13:49 +00:00
Jeffrey Altman
4cd9eee015 windows-misc-fix-20061005
still tracking down issues when large numbers of temporary files
are created and deleted in the same directory from multiple
machines.

VNOVNODE must return CM_ERROR_BADFD

ensure that all calls to cm_GetCallback are made from cm_SyncOp.

add CM_SCACHESYNC_FORCECB logic to cm_SyncOp so that it can be
removed from cm_GetAccess

don't mix CM_SCACHESYNC_NEEDCALLBACK with CM_SCACHESYNC_STOREDATA
or CM_SCACHESYNC_FETCHDATA
2006-10-05 21:29:39 +00:00
Jose Nazario
591460982c bitwise-or-20051005
bitwise and, not logical for p->flags in vnode_stop
reported by Jose Nazario
2006-10-05 16:34:29 +00:00
Jeffrey Altman
38d464e579 windows-misc-fix-20061004
more cleanup from recent patches.  comment out the recycling code because
it is not possible to implement it using the current locking hierarchy.

change cm_BufWrite to take a pointer to cm_scache_t instead of a fid
which must be used to look up a new reference to the cm_scache_t.
more often than not we already have the scp and in the one case we
don't we can let the caller look up the scp and then call cm_BufWrite
if it is found.  If not, we have saved a function call and a bunch
of lock operations.

add a lot more logging.

improve the scp mutex handling within smb_CloseFID
2006-10-05 06:39:46 +00:00
Jeffrey Altman
b9fd1d4c7e windows-wrong-lock-20061003
grab the correct mutex so we don't free one we are not holding
2006-10-04 06:29:25 +00:00
Jeffrey Altman
93b3be7d1a windows-oops-20061003
didn't mean to delete this release mutex
2006-10-04 02:35:43 +00:00
Jeffrey Altman
de6a01e51d windows-multi-fix-20061003
misc cleanups

hold scp->mx while recycling

add FILE_NOTIFY_CHANGE_CREATION to the notification mask when adding
or deleting files
2006-10-04 01:23:30 +00:00
Jeffrey Altman
665a125335 windows-fetchstatus-20061003
Don't call cm_GetCallback without checking the current callback status
with cm_HaveCallback first
2006-10-04 01:18:43 +00:00
Jeffrey Altman
8da04000ec windows-multi-fix-20061002
Fix the following problems:

it is possible for a file to be created, buffers to become dirty from
writes, the file to be deleted, the stat cache entry to be reused, and
the dirty buffers to remain dirty until the end of time.

stat cache entry starvation can occur because of large numbers of dirty
buffers which take too long to be written to the file server.  The
thread that writes dirty buffers in background writes/checks a small
number of buffers, SQRT(buf-count), and then sleeps for 5 seconds.
Writing all of the dirty buffers via this algorithm produces untimely
results.

threads can end up waiting for a callback on the same stat cache entry
even though there are no threads actually attempting to perform the
FetchStatus.

And:

Fix prototypes

Optimize cm_GetNewSCache to reuse scache entries for deleted files
and entries not in the hashtable before allocating a new one.  This
keeps the entries in the hashtable to a minimum and thereby improving
performance for all other operations which must lookup a scache entry
by FID.

Add support for Sequential and Random Access flags
2006-10-03 04:22:37 +00:00
Jeffrey Altman
b17a5d8192 windows-track-lock-tid-20061002
Keep track of the tid of the holding thread for writers
2006-10-03 03:45:16 +00:00
Jeffrey Altman
62e5dab3d6 windows-scache-ref-leak-20061002
when handling VNOVNODE must release the scache entry.
2006-10-03 03:27:22 +00:00
Jeffrey Altman
0fe7b3a058 avoid-assert-for-missing-vnodes-20060928
specify the correct number of parameters for VForceOffline_r()
2006-09-28 13:58:04 +00:00
Derrick Brashear
4bfe736b91 darwin90-ukernel-setjmp-conflict-20060927
FIXES 39354

setjmp isn't safe for #define KERNEL
2006-09-27 22:13:15 +00:00
Chas Williams
6a2ac1e2d4 keyring-gcpags-20060927
FIXES 40659

do gcpags for keyrings without needing tasklist_lock
2006-09-27 21:01:10 +00:00
Derrick Brashear
2201fd6d9f getcellunix-use-stdio-again-20060925
i have no idea why this is so ugly. put it back to something like how it was.
2006-09-26 03:22:28 +00:00
Derrick Brashear
c1d3a69976 copyonwrite-dont-assert-20060925
take it offline, don't assert.
2006-09-26 02:36:03 +00:00
Ken Aaker
9bd3d0926b getcell-still-stupid-20060925
FIXES 40829

should be fixed a third time too
2006-09-25 16:04:12 +00:00
Jeffrey Altman
9a5cfc73bc windows-no-more-win95-20060921
after killing off win95 at the hackathon there were some build
dependencies left behind.  now we build again.
2006-09-22 21:20:54 +00:00
Jeffrey Altman
50852d6c81 vioc-header-split-20060921
enable windows to build again
2006-09-22 21:18:50 +00:00
Jeffrey Altman
faee281941 windows-kfw-sdk-20060921
kfw 3.1
2006-09-22 20:17:45 +00:00
Jeffrey Hutzelman
928ad0445e tasklist-lock-redux-20060922
try tasklist_lock weak binding in osi_probe

if no tasklist_lock, fall back to rcu locking
2006-09-22 12:16:24 +00:00
Derrick Brashear
955a58a5a8 pr-changeentry-arg-types-20060921
FIXES 40568

this has been broken a while, we just noticed it because of prototypes
2006-09-21 22:10:28 +00:00
Derrick Brashear
b613480bd5 avoid-assert-for-missing-vnodes-20060921
right now if a vnode is missing when we try to clone, we could assert. ick.
2006-09-21 12:47:20 +00:00
Derrick Brashear
86f4e7620b dont-close-this-afsconf-either-20060921
static means static
2006-09-21 12:38:04 +00:00
Derrick Brashear
1221e482d7 salvage-zlc-update-20060920
avoid dealing so well with damaged namei volumes that we assume a temporary clone is damaged
2006-09-20 06:51:15 +00:00
Chas Williams
361751cbf4 linux-i-blksize-test-20060919
this was missed in the configure test conversions
2006-09-19 22:33:10 +00:00
Jeffrey Altman
3e28a968e0 windows-loopback-install-20060919
FIXES 40291

Disable DNS Registrations for the Loopback Adapter and make sure
that Netbios is turned on.
2006-09-19 06:48:22 +00:00
Derrick Brashear
357771453b solaris-fopen-sucks-20060916
FIXES 38566

avoid issue trying fopen when fds 0-255 are in use already
yuck
2006-09-17 06:01:43 +00:00
Derrick Brashear
57101f38a0 fix-afsconf-leak-20060916
this one's not a leak
2006-09-16 20:40:19 +00:00
Derrick Brashear
58e23eb620 amd64-linux-missing-syscall-nrs-20060916
they removed these. makes it harder to probe for the ia32 syscall table
(ignoring the compilation issue)

cheat. they aren't going to change...
2006-09-16 20:11:04 +00:00
Chas Williams
52557c982e xml-docbook-documentation-first-pass-20060915
needs more massaging to make it fit the tree, but, get it here first
2006-09-16 01:13:22 +00:00