4527 Commits

Author SHA1 Message Date
Tom Keiser
198bc09264 DEVEL15-dafs-optimize-shutdown-20071112
optimize shutdown case as is done elsewhere, for dafs.


(cherry picked from commit cd8311641fd32328dd1d8a07b1318ecb53726bd1)
2007-11-12 18:19:59 +00:00
Jeffrey Altman
bdbecaf5ea DEVEL15-windows-readonly-volume-callbacks-20071111
disable the option by default.  require the daemonCheckVolCBInterval
registry value be set in order to activate it.

do not renew .readonly volumes whose callbacks are less than 30 minutes
old.


(cherry picked from commit f2bff0e675a2ca0b583264d59d288c62636a06b8)
2007-11-12 03:25:55 +00:00
Russ Allbery
401b084d5e DEVEL15-man-page-name-underscore-more-20071111
Missed fs apropos when fixing NAME entries to eliminate spaces.


(cherry picked from commit e61efde3236b9cd09a09cb9e869b27a14b68c4ac)
2007-11-12 00:15:20 +00:00
Russ Allbery
cf2114029d DEVEL15-man-page-name-underscore-20071111
The NAME heading for man pages can't contain a space in the program side
or the man pages won't index with some man implementations.


(cherry picked from commit 6ef9f3933595e4fef5c4af334ab580dbb08212c3)
2007-11-11 23:51:04 +00:00
Jeffrey Altman
d63e5ba4a9 DEVEL15-windows-readonly-volume-callbacks-20071110
avoid a deadlock


(cherry picked from commit b5935d47fb5b06c4f1c74c3671af4b1a481b8ab3)
2007-11-10 22:55:19 +00:00
Simon Wilkinson
bef49380d4 DEVEL15-libafsrpc-makefile-fix-20071110
FIXES 76836

fix double / in makefile


(cherry picked from commit dd1535d31509d48d961085809c132b398edd80ff)
2007-11-10 20:13:39 +00:00
Dan Hyde
0faeee6591 DEVEL15-viced-missing-lock-20071109
FIXES 76713

Add missing lock that needs to protect an in use 'host' from having
HOSTDELETED added to the hostFlags and HWNO_INPROGRESS removed.


(cherry picked from commit 76c886b574b7d21db2557872be8af8e6ca549f34)
2007-11-10 00:37:50 +00:00
Jeffrey Altman
5cbdd5c93e DEVEL15-cmdebug-human-readable-expiration-time-20071109
add -ctime parameter which produces human readable expiration times.
Doesn't work with OpenAFS for Windows prior to 1.5.28 because time()
was not used in those versions for tracking expiration times.


(cherry picked from commit 578e0d957547e4ac7f39b0559e166fd9eea5f150)
2007-11-10 00:19:20 +00:00
Jeffrey Altman
77cb230871 DEVEL15-windows-readonly-volume-callbacks-20071109
A .readonly volume callback applies to the entire volume.  Track it
in the cm_volume_t cbExpiresRO field and apply it to all cm_scache_t
objects with valid callbacks that are associated with that volume upon
each daemon callback check.  This will prevent premature callback
expiration.

Also, attempt to automatically refresh the callbacks every 30 minutes
by obtaining a callback on the volume root.  This value is configurable
with the "daemonCheckVolCBInterval" registry value.

Change from osi_Time() to time() for expiration values in order to
permit conversion to human readable values in cmdebug.


(cherry picked from commit b43d778e9342dd19c010354cf6db854fdf1f7d22)
2007-11-10 00:15:55 +00:00
Derrick Brashear
b3bfca66dc DEVEL15-clean-platform-20071109
clean platform dir


(cherry picked from commit 15a52f254b8c079a1e640e18ce90508861ec5d96)
2007-11-09 20:18:33 +00:00
Derrick Brashear
7cb0102b34 DEVEL15-macos-packaging-updates-20071109
make the readme correct. make dmgs which have a useful name


(cherry picked from commit 10ff33e6092a63107600b3b58c44c8d15849bbe6)
2007-11-09 19:31:22 +00:00
Derrick Brashear
04de5cf42c DEVEL15-hpux11-thread-lock-tracking-20071109
do this for hpux also


(cherry picked from commit 757bdb092ec4e1db9c7dc949499cc761982bd105)
2007-11-09 19:20:29 +00:00
Derrick Brashear
a34317a4ff DEVEL15-darwin-vfs-context-pullback-20071108
again, commit fix we have in 1.4


(cherry picked from commit bb900e97df905c9805d9e7dc53a9303c671cf819)
2007-11-08 14:40:12 +00:00
Derrick Brashear
2d71d3e3d1 DEVEL15-reconvert-aklog-to-afs-com-err-20071108
make this match what we're shipping in 1.4


(cherry picked from commit 7f8f251c3f252e352096f972e71c93db5cd9d3d9)
2007-11-08 14:28:04 +00:00
Derrick Brashear
2c65f7090e DEVEL15-aix5-revert-kcred-20071108
pull this back to 1.5 and head


(cherry picked from commit 277c37f48c8126ba9cb986ffc7361fcb98e2bbf2)
2007-11-08 14:23:27 +00:00
Derrick Brashear
e452dd602b DEVEL15-revert-aix5-curpag-20061009
failed to commit this. commit now
VS: ----------------------------------------------------------------------


(cherry picked from commit 763dc42ff054dfd12c60aaf184271aedfffe589a)
2007-11-08 14:14:49 +00:00
Derrick Brashear
91f96ef964 DEVEL15-openafs-1-5-27-20071106
make 1.5.27
openafs-devel-1_5_27
2007-11-07 04:43:42 +00:00
Derrick Brashear
a662fa762b DEVEL15-shutdown-cleanup-not-yet-20071106
(cherry picked from commit 044b90beb46177691fd05e08d552a37a48ad2ac8)
2007-11-07 04:33:59 +00:00
Jeffrey Altman
1364c1880c DEVEL15-windows-notes-20071106
1.5.27
2007-11-07 04:09:13 +00:00
Jeffrey Altman
9088e9848b DEVEL15-linux-nsec-timestamp-zero-20071106
don't leave garbage in nsec


(cherry picked from commit ad30730abd77fa489a6d3777e26621357724af9f)
2007-11-07 04:04:20 +00:00
Jeffrey Altman
76857cdba7 DEVEL15-windows-release-notes-20071106
1.5.27
2007-11-07 03:42:23 +00:00
Jeffrey Altman
0620b2ebbd DEVEL15-windows-version-20071106
1.5.27 == 1.5.2700.0
2007-11-07 02:55:33 +00:00
Anders Kaseorg
b6899bf362 DEVEL15-linux-splice-support-20071106
support splice in kernels new enough to support it (sendfile is deprecated)


(cherry picked from commit 1951d7d6c773aead0ea6e9d120e23d15fee4a29f)
2007-11-06 18:32:37 +00:00
Derrick Brashear
ba6e0d8981 DEVEL15-aklog-no-kimpersonate-in-more-cases-20071105
aix's NAS kerberos can't support kimpersonate. deal


(cherry picked from commit e06a144f33347bcac29131cd450d828c2803b9c0)
2007-11-05 22:10:48 +00:00
Derrick Brashear
38383c7f66 DEVEL15-krb5-klog-no-err-table-yet-20071105
right now we don't have this everywhere, until we reorder libraries, and
test usefully with configure, forget it.


(cherry picked from commit bf7787ba99d5cae9a9413ba59dd4c01996a6d557)
2007-11-05 21:44:23 +00:00
Thomas Mueller
1cb3c39c06 DEVEL15-cbd-use-callback-size-for-callbacks-20071105
FIXES 76408

cast correctly


(cherry picked from commit 564be8601c1447b85984eb3773b48ccaa22b4343)
2007-11-05 20:29:11 +00:00
Jeffrey Altman
e7367a4d5e DEVEL15-windows-bplus-tree-20071105
Migrate search key into thread local storage


(cherry picked from commit 55149d5e2b69cd6dfa7f6fd3d02e0d488b3fd69d)
2007-11-05 18:26:49 +00:00
Jeffrey Altman
c83ab919d7 DEVEL15-windows-afsd-notification-20071105
fidp->cell is not a pointer


(cherry picked from commit 981f984b2dd675bab31d5d0374592c9e0fa12bbb)
2007-11-05 18:24:34 +00:00
Jeffrey Altman
f7ff995188 DEVEL15-windows-afsd-notification-20071104
the difference between osi_assert() and osi_assertx() is whether or not
a description is specified as part of the call.  When no message is
specified afsd_notifier() is called with a NULL msgp parameter.  This
results in a null pointer dereference during the EventLog() call.

As a result, none of the information describing the assertion is written
to the log file.

This commit sets a default message for use when no other message is
provided and it replaces all calls to osi_assert with osi_assertx and
adds descriptions.


(cherry picked from commit 89ac3ec2f68db045cf719d619eea1fb97a6364a3)
2007-11-05 00:24:45 +00:00
Jeffrey Altman
331c45cd50 DEVEL15-windows-osi-lock-assert-msg-20071104
modify lock_AssertXXX macros to call osi_assertx() and provide a
descriptive message.


(cherry picked from commit bc7a0be8eb24f5347b8a5b51067b15270aa84691)
2007-11-05 00:18:37 +00:00
Asanka Herath
2690715b21 DEVEL15-windows-scache-syncop-waiters-20071103
One of the issues that has become a serious problem since the addition
of the local directory updates is that although cm_SyncOp synchronizes
operations, it does not preserve the order of requests.  This has always
been a problem in that it has been possible for a request to fail to
complete due to its worker thread's bad luck.  When a request takes
longer than the Windows SMB Redirector's timeout, the SMB Redirector
tears down the SMB virtual circuit.

When using the local directory updates it is really important that
the directory update operations complete in the order that they were
sent to the file server.  If they don't, then the local directory
state and the file server state will not match and the local directory
state must be discarded which in turn forces a new read of the entire
directory contents over the network.

This patch adds a new cm_scache_waiter_t object that is used to store
the current thread, buffer, and syncop flags within a waiters queue
on each cm_scache_t object.  If a thread is forced to sleep in cm_SyncOp,
upon waking it will check to see if there are any other threads waiting
that are attempting to perform a similar task ahead of it in the queue.
If yes, the thread goes back to sleep.  If not, it goes ahead and
enters the cm_SyncOp conflict resolution block.

This patch has the additional side effect of reducing the number of
competing threads that must obtain the cm_scache_t mutex and process
the cm_SyncOp conflict resolution block.  As a result, the overall
CPU utilization of the service and the clock time associated with
processing requests will be reduced.


(cherry picked from commit 45e2d81aa3f62927adc85e4e23daf511478829e4)
2007-11-03 16:33:54 +00:00
Jeffrey Altman
7dec6b95b4 DEVEL15-windows-dir-20071103
Reorganize the locking for cm_BeginDirOp and cm_EndDirOp.
There are a number of locations where locks are obtained, dropped, and
reobtained.  This reorganization attempts to accomplish several things:

(1) be optimistic for the most common case so it will be fast

(2) add consistency checks after each location where locks are dropped
    and re-obtained.  If we lose a race in cm_BeginDirOp and the bplus
    tree is out of date, retry until we get to a consistent state
    that we can use.

(3) Ensure that all operations take place with the correct locks.


(cherry picked from commit 2c45d9ec9fc888c2c6eed46538fe4a9c440e3c8c)
2007-11-03 16:19:28 +00:00
Jeffrey Altman
427437056d DEVEL15-windows-buf-20071103
assert that the cm_scache_t mutex is held when calling
buf_ForceDataVersion().


(cherry picked from commit ef6684d005b3858dd6a1a94deee48b4bbd167932)
2007-11-03 16:09:14 +00:00
Jeffrey Altman
1a5fc53201 DEVEL15-windows-bplus-tree-20071103
rename findNode to leafNode in bplus_Lookup

replace all OutputDebugString calls with osi_LogX calls

modify bestMatch to special case the return values for leaf nodes.
If an entry is above or below the values available in the leaf node
return BTLOWER or BTUPPER instead of BTERROR.

In insert and delete operations check for BTLOWER/BTUPPER and isleaf,
if true convert to either slot 0 or Max and perform the insertion.
This produces easier to read code when performing lookups.


(cherry picked from commit e4ddca6854f7bd4b4ce153b2377bb6ca31f44b8f)
2007-11-03 16:06:53 +00:00
Jeffrey Hutzelman
f14cdbf2b8 DEVEL15-windows-cellservdb-20071103
GCO Public CellServDB 25 Oct 2007


(cherry picked from commit a08f0f4dc05890147eb58d8420ada45d2bf69864)
2007-11-03 15:59:32 +00:00
Jeffrey Altman
ea03438c45 DEVEL15-windows-install-des-prototypes-20071102
required by auth-getkey-prototyping-20071102


(cherry picked from commit 75729fa4ae564f1c5e9efb6f387840ab4b24263f)
2007-11-03 01:07:29 +00:00
Derrick Brashear
f76374dba3 DEVEL15-auth-getkey-prototyping-20071102
make this sane


(cherry picked from commit 32828680ae0342b91bea9fc2c4ecceb25510d7f3)
2007-11-02 18:05:07 +00:00
Ken Raeburn
041d37d23a DEVEL15-viced-new-host-reup-h-lock-20071101
FIXES 69384

don't leave lock dropped


(cherry picked from commit 6b5146db5b111aca5ab0b3f6423f67fb01303627)
2007-11-01 19:13:39 +00:00
Dale Ghent
9f73bfb595 DEVEL15-solaris-cc-deal-with-new-64-bit-arch-specifier-20071101
FIXES 75908

switch from -xmarch=amd64 to -m64


(cherry picked from commit 20a837c5cc0a093b3c74622056cca9f3f561bd6b)
2007-11-01 17:07:31 +00:00
Dale Ghent
ef6a1cf7b9 DEVEL15-solaris-nevada-update-20071101
FIXES 75896

update for current solaris nevada


(cherry picked from commit 7a0df48baf351eb2aaa2b6c4da0054d111facdb9)
2007-11-01 16:57:37 +00:00
Simon Wilkinson
e29ce1506a DEVEL15-krb5-klog-20071101
FIXES 75672

technically just pulling up mdw@umich.edu's work.
2007-11-01 16:51:47 +00:00
Simon Wilkinson
bec7140f47 DEVEL15-auth-cleanup-20071101
kill warnings in auth directory


(cherry picked from commit 089a02bcbc9df2090c275e5620248f478be1e286)
2007-11-01 16:09:32 +00:00
Simon Wilkinson
f5d1923505 DEVEL15-rxgen-ansi-again-20071101
ansified rxgen again, for 1.5


(cherry picked from commit 8b8e0935e474cc2f79638b97134fa9e2d55adee8)
2007-11-01 16:02:26 +00:00
Tom Keiser
0d34cdad6d DEVEL15-dafs-salvage-deal-with-clones-20071101
FIXES 75591

cope with trying to salvage a clone correctly


(cherry picked from commit eea1cb08145b2669384b2380e0878067f826d3dd)
2007-11-01 15:00:03 +00:00
Chaskiel M Grundman
d32a912dc7 DEVEL15-linux-afs-unlinked-file-dentry-flagging-20071031
fix case:
 perl -e 'open FOO, ">foo"; unlink(foo); @stat = stat(FOO); print "inode for foo(unlinked) is $stat[1]\n"; system("/bin/ls -ali | grep $stat[1]");'


(cherry picked from commit c5678a4af78305cac2246480cc0c038655db324d)
2007-11-01 03:31:29 +00:00
Simon Wilkinson
830f91f16e DEVEL15-more-anonymous-pointer-cleanup-20071031
more char*->void* conversion


(cherry picked from commit 8214014855be3fb99c00c23400a2a3325b2b4a57)
2007-10-31 22:31:57 +00:00
Jeffrey Altman
c663c18400 DEVEL15-windows-uaewouldblock-20071031
Reorganize the order of the includes to ensure that EWOULDBLOCK is not
assigned the same value as EIO.


(cherry picked from commit d16d5c031274e05ea27f12965e094ae42d8af9e5)
2007-10-31 15:36:02 +00:00
Jeffrey Altman
e72fadbfc4 DEVEL15-windows-btree-20071031
Add additional validation and error handling code after each call to
getSlot().  If an invalid slot is returned, return NONODE.  If the
invalid slot is returned when extracting a data node, invalidate the
tree.

Modify compareKeys() to always perform a case-insensitive comparison
and only perform a case sensistive comparison if the case-insensitive
one matches.  This ensures the ordering is consistently reported.

Add lock assertions to ensure that all calls are being performed with
the correct locks being held.  There have been some crash reports that
provide stack data that does not appear to be possible unless there is
a race.  However, there are no obvious locations where the race is
taking place and the test suite indicates that all of the correct locks
are being held. We shall see what happens in the field.

For consistency replace all calls to findKey in which the range is
(1,numentries) with calls to getSlot().

Optimize the depth search loop by testing the slot value in the for
statement instead of forcing the loop to be broken later.


(cherry picked from commit 27ce37c7a0ea23c46c72484719697a900ac0a714)
2007-10-31 15:34:38 +00:00
Jeffrey Altman
99e07929ee DEVEL15-windows-begindirop-20071031
Avoid a race condition in cm_BeginDirOp() caused by the failure to
hold the cm_scache_t mutex while copying status data from the scp to
the dirop


(cherry picked from commit cf0d1393f4df2c0a8840aa00db05de7bd221c275)
2007-10-31 15:25:01 +00:00
Jeffrey Altman
a061131f44 DEVEL15-windows-cm_analyze-ewouldblock-20071031
Add support for EWOULDBLOCK to cm_Analyze.  If the file server returns
EWOULDBLOCK, retry the request every two seconds for up to the RDRtimeout.


(cherry picked from commit ff4c519c789af1c4b126d926dd94f3efab1ebd14)
2007-10-31 15:21:42 +00:00