3830 Commits

Author SHA1 Message Date
Jeffrey Altman
64b9d64aa6 DEVEL15-windows-scache-ref-leak-20061010
if cm_FindSCache is called the returned scache object
must be released.


(cherry picked from commit c60736030bc7f7a678fc44af90d001cd8c08acf5)
2006-10-10 16:57:44 +00:00
Jeffrey Altman
44ffb0d091 DEVEL15-windows-afscreds-20061010
prevent a stack overflow if the afsd_service does not successfully
start after a request to do so is issued.


(cherry picked from commit 3c13e5f0c0423d5e724ab224af22d7d3606ef1b0)
2006-10-10 16:54:33 +00:00
Jeffrey Altman
4cb3d91d47 DEVEL15-windows-build-clean-20061010
more AFS_component_version_number.h files to remove


(cherry picked from commit 8b7e9da62578c3d10bf699062963c02aa59d1609)
2006-10-10 16:49:33 +00:00
Tracy Di Marco White
3a4f23b768 DEVEL15-nbsd-sysnames-20061008
FIXES 42019

add missing sysnames


(cherry picked from commit aa7d443b6d8d45b68115c72ede6da68d863e33c7)
2006-10-09 04:30:40 +00:00
Derrick Brashear
355cf8ce5d DEVEL15-h-enum-r-avoid-extra-hold-20061008
FIXES 40699

avoid orphaning an extra hold


(cherry picked from commit 747a8d8f41a34290c207327541372b4e1fcb0dec)
2006-10-09 04:24:51 +00:00
Jeffrey Altman
ad65410756 DEVEL15-windows-version-20061008
1.5.900 == 1.5.9
2006-10-09 04:20:01 +00:00
Jeffrey Hutzelman
8a3da4d498 DEVEL15-cellservdb-20061008
cellservb update from grand.central.org


(cherry picked from commit 5ae8cf85e65e18a3d5593706c6f3f8d9435798e2)
2006-10-09 04:15:07 +00:00
Jeffrey Altman
caef4a97b6 DEVEL15-windows-scache-ref-leak-fix-20061008
pointer not pointer to pointer


(cherry picked from commit 1e9533907d4877f6b6aa70eb749e7a3e1717d861)
2006-10-09 02:52:20 +00:00
Jeffrey Altman
adb2529e5d DEVEL15-windows-relnotes-20061008
Minor updates for 1.5.9
2006-10-09 02:22:30 +00:00
Jeffrey Altman
2dc5fef5df DEVEL15-windows-scache-ref-dbg-20061008
add debugging code that can be activated with #define DEBUG_REFCOUNT
to assist in debugging scache refcount leaks


(cherry picked from commit 8919e0d5175dae85991a3782f659621c5be4056f)
2006-10-08 21:38:24 +00:00
Jeffrey Altman
fe1d59e810 DEVEL15-windows-scache-ref-leak-20061008
plug two more scache refcount leaks


(cherry picked from commit 7231e2efe650b004168d443a290c4fed8b2db0a5)
2006-10-08 21:31:36 +00:00
Jeffrey Altman
4254bfb254 DEVEL15-windows-osi-prototypes-20061007
osi_LogCreate


(cherry picked from commit c97374d6fd494ab790da7ae6c591abe0dac3d194)
2006-10-07 23:36:03 +00:00
Jeffrey Altman
dc00a1d2b1 DEVEL15-windows-misc-cleanup-20061007
reformat some code; make sure that pointers are copied while
mutexes are held; ...


(cherry picked from commit b4007635064f08d4d0f019acc9888f0d4005708c)
2006-10-07 23:33:29 +00:00
Jeffrey Altman
7486e2f4c2 DEVEL15-windows-scache-ref-leak-20061007
return the cm_scache_t whose refCount was increased


(cherry picked from commit feb5f27c754325dcc5fd9eb13f305bc1c0172977)
2006-10-07 23:29:12 +00:00
Jeffrey Altman
c451a02881 DEVEL15-windows-notes-20061006
updates since 1.5.8
2006-10-06 18:00:47 +00:00
Jeffrey Altman
7e447d9845 DEVEL15-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.


(cherry picked from commit ffe26eb18da581d2df02f9531d97e31e1c6dee65)
2006-10-06 17:32:43 +00:00
Jeffrey Altman
9067be8ef5 DEVEL15-windows-log-crlf-20061006
use CR-LF as the afsd.log EOL so that it can be read with notepad.exe


(cherry picked from commit ffe5092c3107afa72696f8d164c3ec587c2255ad)
2006-10-06 17:26:41 +00:00
Tracy Di Marco White
9aade56ceb DEVEL15-netbsd-30-20061006
FIXES 40782

add support for netbsd 3.0, netbsd 4.0(ish)


(cherry picked from commit 04b51cc8df7a3210ea18228743cb156c0e2c7115)
2006-10-06 15:58:47 +00:00
Chaskiel M Grundman
b157ba37c2 DEVEL15-osi-probe-avoid-out-of-range-memory-reads-20061006
FIXES 41858

avoid oops on opteron due to accessing unmapped memory


(cherry picked from commit e39f4d87896c451afb8c38705de4c12fd3940182)
2006-10-06 15:02:56 +00:00
Chas Williams
5f9efaeebf DEVEL15-linux-2619-aio-and-read-write-changes-20061006
changes to support 2.6.19


(cherry picked from commit 775ea6f1b79b0e0e2b700e3894e01279e26ebbfa)
2006-10-06 14:29:14 +00:00
Jeffrey Altman
57336da0a6 DEVEL15-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


(cherry picked from commit b7117f61036c63238eb926c6eb71d42a56766501)
2006-10-06 06:15:22 +00:00
Jeffrey Altman
18336df014 DEVEL15-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


(cherry picked from commit 4cd9eee0155edba89b77779af9aea4f1aa55cd96)
2006-10-05 21:30:38 +00:00
Jeffrey Altman
139a46495e DEVEL15-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


(cherry picked from commit 38d464e5791dbd96d6da85a0c0123f8b575f4e39)
2006-10-05 06:41:28 +00:00
Jeffrey Altman
8d66c0f575 DEVEL15-windows-wrong-lock-20061003
grab the correct mutex so we don't free one we are not holding


(cherry picked from commit b9fd1d4c7eb672ec092596af7826e87e2d931c40)
2006-10-04 06:32:14 +00:00
Jeffrey Altman
6711ad9534 DEVEL15-windows-oops-20061003
didn't mean to delete this release mutex


(cherry picked from commit 93b3be7d1adfcf90bb21009891d9e62b440aa629)
2006-10-04 02:36:35 +00:00
Jeffrey Altman
d091134c91 DEVEL15-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


(cherry picked from commit de6a01e51d8ea97e943cb4fa93d6bba2ecae9644)
2006-10-04 01:24:42 +00:00
Jeffrey Altman
99a9bf2e27 DEVEL15-windows-fetchstatus-20061003
Don't call cm_GetCallback without checking the current callback status
with cm_HaveCallback first


(cherry picked from commit 665a125335c4844d35fa6510a38083602ef7fdbc)
2006-10-04 01:20:09 +00:00
Jeffrey Altman
72aeefaf23 DEVEL15-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


(cherry picked from commit 8da04000ec70e7eebe8bb18d317bb6b348b91449)
2006-10-03 04:23:21 +00:00
Jeffrey Altman
e6b68955bd DEVEL15-windows-track-lock-tid-20061002
Keep track of the tid of the holding thread for writers


(cherry picked from commit b17a5d8192c08909ae57b540b25804ad9e1ae8a3)
2006-10-03 03:48:23 +00:00
Jeffrey Altman
d9593faccc DEVEL15-windows-scache-ref-leak-20061002
when handling VNOVNODE must release the scache entry.


(cherry picked from commit 62e5dab3d6ea8105cec253b45cef3ebcc0da1930)
2006-10-03 03:30:20 +00:00
Jeffrey Altman
9ba9575703 DEVEL15-avoid-assert-for-missing-vnodes-20060928
specify the correct number of parameters for VForceOffline_r()


(cherry picked from commit 0fe7b3a058b6c9df06d4df4af1e0621dbd53f44d)
2006-09-28 14:01:47 +00:00
Derrick Brashear
e45a85c7be DEVEL15-darwin90-ukernel-setjmp-conflict-20060927
FIXES 39354

setjmp isn't safe for #define KERNEL


(cherry picked from commit 4bfe736b9157fa3ee4c1c851e53d66b18e774827)
2006-09-27 22:15:59 +00:00
Chas Williams
cc1184ccc2 DEVEL15-keyring-gcpags-20060927
FIXES 40659

do gcpags for keyrings without needing tasklist_lock


(cherry picked from commit 6a2ac1e2d41b30dfd466e001f3a545bda4bc8da8)
2006-09-27 21:02:45 +00:00
Derrick Brashear
4fa10363ec DEVEL15-getcellunix-use-stdio-again-20060925
i have no idea why this is so ugly. put it back to something like how it was.


(cherry picked from commit 2201fd6d9ff41506c1bc60d677ae268a1de42fbc)
2006-09-26 03:25:10 +00:00
Derrick Brashear
2a080a35cb DEVEL15-copyonwrite-dont-assert-20060925
take it offline, don't assert.


(cherry picked from commit c1d3a69976d7a6583a00176ff81dd66acb2cc07b)
2006-09-26 02:37:23 +00:00
Ken Aaker
3146e0cf93 DEVEL15-getcell-still-stupid-20060925
FIXES 40829

should be fixed a third time too


(cherry picked from commit 9bd3d0926bbdc8ee9dedfe17bd137d5327e45a62)
2006-09-25 16:06:57 +00:00
Jeffrey Hutzelman
b0354bae91 DEVEL15-tasklist-lock-redux-20060922
try tasklist_lock weak binding in osi_probe

if no tasklist_lock, fall back to rcu locking


(cherry picked from commit 928ad0445e91ecbfcd32a26e8c17b90ee0d83700)
2006-09-22 12:18:37 +00:00
Derrick Brashear
f3296f56ca DEVEL15-pr-changeentry-arg-types-20060921
FIXES 40568

this has been broken a while, we just noticed it because of prototypes


(cherry picked from commit 955a58a5a850da4caeba9b45b0e8ff27a143b725)
2006-09-21 22:13:22 +00:00
Derrick Brashear
2e96cf69ae DEVEL15-avoid-assert-for-missing-vnodes-20060921
right now if a vnode is missing when we try to clone, we could assert. ick.


(cherry picked from commit b613480bd5eb6bc2a14c4e23229d90105291944c)
2006-09-21 12:51:10 +00:00
Derrick Brashear
42c283e567 DEVEL15-dont-close-this-afsconf-either-20060921
static means static


(cherry picked from commit 86f4e7620b24505ec8c0b788e3040974ac2ea449)
2006-09-21 12:41:45 +00:00
Derrick Brashear
de416a1ddd DEVEL15-salvage-zlc-update-20060920
avoid dealing so well with damaged namei volumes that we assume a temporary clone is damaged


(cherry picked from commit 1221e482d786a56ca52568ed29a9c981e674ad7a)
2006-09-20 06:55:32 +00:00
Chas Williams
b15bafceea DEVEL15-linux-i-blksize-test-20060919
this was missed in the configure test conversions


(cherry picked from commit 361751cbf4b0cfef9a738cfcfbbd589eee621ade)
2006-09-20 00:28:24 +00:00
Jeffrey Altman
ef6963de7f DEVEL15-windows-loopback-install-20060919
FIXES 40291

Disable DNS Registrations for the Loopback Adapter and make sure
that Netbios is turned on.


(cherry picked from commit 3e28a968e0b916c176b978da2807a7e4857faa18)
2006-09-19 06:51:27 +00:00
Derrick Brashear
77e72625ca DEVEL15-solaris-fopen-sucks-20060916
FIXES 38566

avoid issue trying fopen when fds 0-255 are in use already
yuck


(cherry picked from commit 357771453be717ee10dc0d580f1b458008133ba3)
2006-09-17 06:02:26 +00:00
Derrick Brashear
2bc9e0129d DEVEL15-fix-afsconf-leak-20060916
this one's not a leak


(cherry picked from commit 57101f38a0a868b950e32bd70b95308b1edc243d)
2006-09-16 20:42:24 +00:00
Derrick Brashear
b4473a285c DEVEL15-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...


(cherry picked from commit 58e23eb620429f427cba72bbd2c982d81d9fbd9e)
2006-09-16 20:16:55 +00:00
Derrick Brashear
947ced9360 DEVEL15-darwin80-avoid-stack-free-20060915
thanks to apple for their help; all i did was code the patch


(cherry picked from commit 3473fa4ec7c8a7362003ba3d278345339bbf3e36)
2006-09-16 01:11:55 +00:00
Derrick Brashear
2b4539c011 DEVEL15-namei-emulate-flock-20060913
FIXES 39797

lockf when not locking and unlocking the whole file is fraught with peril


(cherry picked from commit 1c8080fe9dcb3713bf1231cf4b455e80c6f0c697)
2006-09-16 01:08:59 +00:00
Jeffrey Altman
009f220c5a DEVEL15-afsconf-leak-20060915
don't leak afsconf structs


(cherry picked from commit de5f1c47e8af9a7e4fd1b77ff5fc085859813b59)
2006-09-16 00:22:26 +00:00
Tom Keiser
ae0ee11523 DEVEL15-uae-avoid-dups-20060914
avoid duplicates in the errno space so we don't return the wrong error (something unexpected)


(cherry picked from commit 914b2e27dcf5b231832959d0b02dc1e40ca24c81)
2006-09-15 01:00:57 +00:00