Commit Graph

3891 Commits

Author SHA1 Message Date
Jeffrey Hutzelman
e720779b7c kreltime-20061021
FIXES 43551

kreltime-guard-against-null-tm-20060731 was apparently an
attempt to deal with the possibility of localtime() returning NULL by
using localtime_r instead, and zeroing the tm structure first. This has
two problems. First, localtime_r is not guaranteed to leave its output
buffer untouched or in a sane state in the event it is given invalid
input. More importantly, the second half of this delta fixed the build
on Windows (which apparently lacks localtime_r) at the expense of using
the wrong level of indirection on other platforms.

Simple is nice, but correct is important too. There is nothing wrong
with switching to localtime_r to avoid thread safety issues. However,
the correct fix for the anticipated problem was and is to check the
return value of localtime (or localtime_r), and if it is NULL, fill in
the ktime_date with suitable default values.

The attached patch does not implement the correct fix, but does fix the
double-indirection problem, so butc will again perform correctly instead
of crashing.
2006-10-22 02:48:35 +00:00
Jeffrey Altman
4f26bcfdb3 windows-misc-20061021
* don't DebugBreak unless a debugger is attached

* replace afsdcell.ini with CellServDB in error message

* do not NetBIOS Reset adapters when checking to see if only the loopback
  is in use because doing so breaks the existing LANA bind

* remove a deadlock in smb3.c

* do not retry dirty buffer writes when flushing in response to a suspend

* do not flush in response to a suspend when only the loopback is present
2006-10-21 21:46:17 +00:00
Jeffrey Altman
740013fcbf windows-dbg-refcount-20061016
more code to assist in debugging scache refcount leaks
2006-10-17 01:32:06 +00:00
Jeffrey Altman
6bc62e6c90 windows-scache-ref-leak-20061016
more reference count leaks
2006-10-17 01:20:33 +00:00
Jeffrey Altman
5aa0347678 windows-netidmgr-plugin-20061016
fixup build dependencies for afsp_version.h

====================
This delta was composed from multiple commits as part of the CVS->Git migration.
The checkin message with each commit was inconsistent.
The following are the additional commit messages.
====================

fixup copyrights
2006-10-16 14:54:32 +00:00
Derrick Brashear
78c9881ed3 keyring-pag-more-needed-defines-20061014
some kernel don't have this. for post-1.4.2
2006-10-14 15:57:37 +00:00
Derrick Brashear
3e10dc3a84 audit-one-more-thing-20061013
it never ends
2006-10-13 20:40:49 +00:00
Derrick Brashear
e3d10f048b audit-remove-nested-valists-20061013
last straw
make amd64, ppc happy for sure and for ever
2006-10-13 18:36:30 +00:00
Tom Keiser
453abf6aa1 aix-cleanup-20061013
fixes for aix pre 5.2 (statfs64), remove a c++ style comment (makes xlc sad) and
 make clean target clean
2006-10-13 14:06:38 +00:00
Derrick Brashear
0e8238e7cb uae-translate-create-20061013
really the stubs should probably just translate the codes back. maybe for 1.6
2006-10-13 06:12:17 +00:00
Jeffrey Altman
c8a86da7f7 windows-netidmgr-plugin-20061012
afsp_version.h is auto-generated

====================
This delta was composed from multiple commits as part of the CVS->Git migration.
The checkin message with each commit was inconsistent.
The following are the additional commit messages.
====================

fix product version generation
2006-10-13 00:28:05 +00:00
Jeffrey Altman
2b96ba5919 windows-scache-ref-leak-20061012
make sure the scache mutex is held across calls to cm_SyncOpDone
2006-10-12 06:57:40 +00:00
Derrick Brashear
e8a6b9977e auditlog-sublist-fix-20061012
FIXES 35559

update so we don't botch the va_list child
2006-10-12 05:20:59 +00:00
Derrick Brashear
d71d42d29f linux-aio-functions-improved-test-20061011
detect properly if we have nothing
2006-10-12 13:22:28 +00:00
Chaskiel M Grundman
eca0d2bdc9 version-string-generation-consistency-20061011
FIXES 42320

try harder to reflect actual version
2006-10-11 14:14:47 +00:00
Chaskiel M Grundman
cbc3b26165 elif-missing-defined-20061011
FIXES 42321

add missing defined() to avoid warning on macro
2006-10-11 13:25:47 +00:00
Peter Nelson
e870e08280 rx-memset-param-swap-20061011
discovered via google codesearch
2006-10-11 11:29:58 +00:00
Asanka Herath
f72c2fc3e7 windows-netidmgr-plugin-20061010
Secure Endpoints Inc. is contributing its AFS plug-in for KFW 3.1's
Network Identity Manager to OpenAFS under an MIT style license.
2006-10-11 05:32:16 +00:00
Jeffrey Altman
6e3aab757a windows-release-notes-20061010
fixup the file names to match the 1.5 branch
2006-10-11 05:27:21 +00:00
Derrick Brashear
59234e93a7 irix-compiler-hates-commas-20061010
damn is irix fussy
2006-10-10 23:20:35 +00:00
Jeffrey Altman
7be7dfe095 windows-no-more-win9x-20061010
don't install afsmsg95.h as it no longer exists
2006-10-10 23:07:56 +00:00
Chas Williams
ac52e2f3c0 linux-dont-lock-around-inactivevcache-20061010
FIXES 42312

iafs_InactiveVCache() calls afs_InvalidateAllSegments() which says
it should be called with the vnode locked. so the lock should
probably be moved to afs_InactiveVCache() so it can be droppped
before calling afs_remunlink().
2006-10-10 22:59:10 +00:00
Derrick Brashear
8fa4ca5b80 irix-fgets-return-type-fun-20061010
of course, we were just throwing it away, but....
2006-10-10 21:12:56 +00:00
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