Commit Graph

4704 Commits

Author SHA1 Message Date
Russ Allbery
e61efde323 man-page-name-underscore-more-20071111
Missed fs apropos when fixing NAME entries to eliminate spaces.
2007-11-12 00:12:28 +00:00
Russ Allbery
6ef9f39335 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.
2007-11-11 22:54:56 +00:00
Jeffrey Altman
b5935d47fb windows-readonly-volume-callbacks-20071110
avoid a deadlock
2007-11-10 22:50:44 +00:00
Simon Wilkinson
dd1535d315 libafsrpc-makefile-fix-20071110
FIXES 76836

fix double / in makefile
2007-11-10 20:13:27 +00:00
Dan Hyde
76c886b574 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.
2007-11-10 00:33:41 +00:00
Jeffrey Altman
578e0d9575 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.
2007-11-10 00:18:11 +00:00
Jeffrey Altman
b43d778e93 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.
2007-11-10 00:14:26 +00:00
Derrick Brashear
15a52f254b clean-platform-20071109
clean platform dir
2007-11-09 20:15:46 +00:00
Derrick Brashear
10ff33e609 macos-packaging-updates-20071109
make the readme correct. make dmgs which have a useful name
2007-11-09 19:47:18 +00:00
Derrick Brashear
757bdb092e hpux11-thread-lock-tracking-20071109
do this for hpux also
2007-11-09 19:18:49 +00:00
Derrick Brashear
bb900e97df darwin-vfs-context-pullback-20071108
again, commit fix we have in 1.4
2007-11-08 14:38:48 +00:00
Derrick Brashear
7f8f251c3f reconvert-aklog-to-afs-com-err-20071108
make this match what we're shipping in 1.4
2007-11-08 14:26:47 +00:00
Derrick Brashear
277c37f48c aix5-revert-kcred-20071108
pull this back to 1.5 and head
2007-11-08 14:21:06 +00:00
Derrick Brashear
044b90beb4 shutdown-cleanup-not-yet-20071106 2007-11-07 04:23:47 +00:00
Jeffrey Altman
ad30730abd linux-nsec-timestamp-zero-20071106
don't leave garbage in nsec
2007-11-07 04:01:36 +00:00
Anders Kaseorg
1951d7d6c7 linux-splice-support-20071106
support splice in kernels new enough to support it (sendfile is deprecated)
2007-11-06 18:30:19 +00:00
Derrick Brashear
e06a144f33 aklog-no-kimpersonate-in-more-cases-20071105
aix's NAS kerberos can't support kimpersonate. deal
2007-11-05 22:09:12 +00:00
Derrick Brashear
bf7787ba99 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.
2007-11-05 21:43:00 +00:00
Thomas Mueller
564be8601c cbd-use-callback-size-for-callbacks-20071105
FIXES 76408

cast correctly
2007-11-05 20:27:24 +00:00
Jeffrey Altman
55149d5e2b windows-bplus-tree-20071105
Migrate search key into thread local storage
2007-11-05 18:25:33 +00:00
Jeffrey Altman
981f984b2d windows-afsd-notification-20071105
fidp->cell is not a pointer
2007-11-05 18:23:30 +00:00
Jeffrey Altman
89ac3ec2f6 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.
2007-11-05 00:23:54 +00:00
Jeffrey Altman
bc7a0be8eb windows-osi-lock-assert-msg-20071104
modify lock_AssertXXX macros to call osi_assertx() and provide a
descriptive message.
2007-11-05 00:16:58 +00:00
Asanka Herath
45e2d81aa3 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.
2007-11-03 16:31:50 +00:00
Jeffrey Altman
2c45d9ec9f 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.
2007-11-03 16:18:14 +00:00
Jeffrey Altman
ef6684d005 windows-buf-20071103
assert that the cm_scache_t mutex is held when calling
buf_ForceDataVersion().
2007-11-03 16:08:03 +00:00
Jeffrey Altman
e4ddca6854 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.
2007-11-03 16:05:43 +00:00
Jeffrey Hutzelman
a08f0f4dc0 windows-cellservdb-20071103
GCO Public CellServDB 25 Oct 2007
2007-11-03 15:59:12 +00:00
Jeffrey Altman
75729fa4ae windows-install-des-prototypes-20071102
required by auth-getkey-prototyping-20071102
2007-11-03 01:05:53 +00:00
Derrick Brashear
32828680ae auth-getkey-prototyping-20071102
make this sane
2007-11-02 18:01:32 +00:00
Ken Raeburn
6b5146db5b viced-new-host-reup-h-lock-20071101
FIXES 69384

don't leave lock dropped
2007-11-01 19:12:38 +00:00
Dale Ghent
20a837c5cc solaris-cc-deal-with-new-64-bit-arch-specifier-20071101
FIXES 75908

switch from -xmarch=amd64 to -m64
2007-11-01 17:05:33 +00:00
Dale Ghent
7a0df48baf solaris-nevada-update-20071101
FIXES 75896

update for current solaris nevada
2007-11-01 16:57:26 +00:00
Simon Wilkinson
089a02bcbc auth-cleanup-20071101
kill warnings in auth directory
2007-11-01 16:09:22 +00:00
Simon Wilkinson
8b8e0935e4 rxgen-ansi-again-20071101
another look at lettign rxgen do ansification
2007-11-01 15:58:59 +00:00
Tom Keiser
eea1cb0814 dafs-salvage-deal-with-clones-20071101
FIXES 75591

cope with trying to salvage a clone correctly
2007-11-01 14:59:38 +00:00
Chaskiel M Grundman
c5678a4af7 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]");'
2007-11-01 03:23:09 +00:00
Simon Wilkinson
8214014855 more-anonymous-pointer-cleanup-20071031
more char*->void* conversion
2007-10-31 22:31:38 +00:00
Jeffrey Altman
27ce37c7a0 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.
2007-10-31 15:33:27 +00:00
Jeffrey Altman
cf0d1393f4 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
2007-10-31 15:23:42 +00:00
Jeffrey Altman
ff4c519c78 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.
2007-10-31 15:20:14 +00:00
Jeffrey Altman
d16d5c0312 windows-uaewouldblock-20071031
Reorganize the order of the includes to ensure that EWOULDBLOCK is not
assigned the same value as EIO.
2007-10-31 15:18:10 +00:00
Simon Wilkinson
3e1646fed2 util-cleanup-20071031
kill the warnings in src/util
2007-10-31 12:36:33 +00:00
Simon Wilkinson
3f449eb48e openafs-bozo-varargs-20071031
convert bozo to be prototypable
2007-10-31 04:20:33 +00:00
Simon Wilkinson
855e644261 openafs-void-star-pointers-20071031
convert anonymous pointers from char* to void*
2007-10-31 04:05:27 +00:00
Simon Wilkinson
7d05bd439e openafs-string-header-cleanup-20071030
include only what we need
2007-10-30 15:10:37 +00:00
Simon Wilkinson
7fe8131c04 redhat-packaging-update-20071029
update rpm packaging stuff for what shipped in 1.4.5
2007-10-30 03:53:08 +00:00
Jim Rees
5a0dfa46f0 update-bsd-readme-20071026
Update build info for Open/FreeBSD.
2007-10-26 17:41:54 +00:00
Simon Wilkinson
1b3ecae23c redhat-fedora-build-driver-20071026
driver script for fedora builds
2007-10-26 17:20:22 +00:00
Derrick Brashear
2ced26c8ba redhat-spec-fix-hugemem-modpath-20071026
make this match other kernsls
2007-10-26 17:09:40 +00:00