Commit Graph

1025 Commits

Author SHA1 Message Date
Nickolai Zeldovich
d0ffec1b28 Use autoconf to check for p_corefile in struct proc, rather than
assuming it exists in Solaris 7 and above; nneul@umr.edu reports
that it doesn't for some kernel revision.
2002-02-15 05:07:13 +00:00
Derrick Brashear
d7dca002be rx-event-deal-with-gcc-296-this-time-for-sure-20020214
somehow i suspect one of our platforms doesn't do volatile and i'll
regret this, but this stops linux i386 when afs_int32 is an int from
going off into la-la land when an Rx retransmit is needed
2002-02-15 04:38:59 +00:00
Derrick Brashear
0cc7a07486 rx-clock-cast-comparison-macros-to-int-20020212
gcc 2.96 appears to miscompile these

====================
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.
====================

undo. the bug was a little more subtle and my debugging code masked it
2002-02-15 04:23:24 +00:00
Ted Anderson
aef9d35023 vol-salvage-add-missing-parameter-to-logging-20020213
bad trace statement due to missing parameter; added
2002-02-13 20:00:18 +00:00
Laura Stentz
808946cad8 afsweb-add-netscape-config-script-20020213
this was omitted from the original release and now can be included
2002-02-13 09:37:59 +00:00
Nathan Neulinger
9a6dbb4df7 viced-printinode-returns-string-not-number-20020212
based on feedback from ota@transarc.com

PrintInode returns a string, use it
2002-02-13 04:00:57 +00:00
Nickolai Zeldovich
c446c128e9 Allow AFS to shutdown on Solaris (and subsequently be reloaded
and restarted).  Still leaks memory, unlike the Linux module.
2002-02-08 19:50:00 +00:00
Hartmut Reuter
cbcef0bd40 Don't grab tdc->lock when tdc is null. 2002-02-08 17:28:44 +00:00
Nickolai Zeldovich
ebcef80696 Properly AFS_GUNLOCK() when returning an error after having previously
AFS_GLOCK()'ed, in afs_mount() and afs_unmount().
2002-02-08 07:05:34 +00:00
Nickolai Zeldovich
21455cdba2 Include linux/sysctl.h after afsconfig.h, since we need the
modversion stuff first.
2002-02-07 03:07:23 +00:00
Kris Van Hees
1f34ef4873 linux-provide-sysctl-interface-20020206
provide sysctl interface for toggling module state. provide hooks for
all currently known tweakable items
2002-02-07 00:06:35 +00:00
Nickolai Zeldovich
e7b3045d8e solaris-p-crlock-not-safe-to-hold-across-call-to-crset-20020206
crset() expects p_crlock to not be held when it's called; deal accordingly
2002-02-06 23:57:44 +00:00
Derrick Brashear
918d96d665 newvolumebyname-analyze-the-vrequest-actually-used-20020205
it's ok to support a null request being passed in, but if a real one is
passed in we shouldn't analyze it when it's not the one we used when
making calls.
2002-02-05 21:58:03 +00:00
Nickolai Zeldovich
9311437f3d Add the necessary includes for AFS_ISGLOCK, AFS_GLOCK, AFS_GUNLOCK. 2002-02-02 18:33:49 +00:00
Hartmut Reuter
b7b1788424 viced-callback-avoid-potential-looping-problem-20020201
avoid case where we never come out of loop attempting to clear host cvallbacks
2002-02-01 22:12:51 +00:00
Nickolai Zeldovich
7b8d569f42 First pass at better signal handling:
-- Add afs_osi_SleepSig, which returns EINTR when interrupted by signal.
  -- Similar CV_WAIT_SIG for Rx code.
  -- Implement afs_osi_SleepSig and CV_WAIT_SIG for Linux, Solaris.
  -- Use afs_osi_SleepSig in afs_{UFS,Mem}Read, allowing user to interrupt
     an AFS read if it's being handled by background daemon.
  -- Balance the number of open & close braces in CV_TIMEDWAIT macros,
     even though noone uses them.
  -- Untangle parts of the macro forest by moving some of the Rx CV code
     into rx_kmutex.c.
2002-02-01 20:29:59 +00:00
Nickolai Zeldovich
7573d5ed14 Block signals when sleeping in CV_WAIT() and CV_TIMEDWAIT(), similar
to the linux-avoid-signal-wakeups-while-sleeping-20020129 change for
afs_osi_Sleep().
2002-01-30 21:13:48 +00:00
Nickolai Zeldovich
cc8f0afbad Avoid deadlocking with afs_ResetVolumeInfo in InstallVolumeInfo and
InstallNVolumeInfo, like we already do in InstallUVolumeInfo.
2002-01-30 16:16:23 +00:00
Derrick Brashear
79afed93d2 readd-t-uniq-bad-as-binary-20020129
oops
2002-01-29 22:34:13 +00:00
Nickolai Zeldovich
41fb11e6b2 Block all signals while sleeping; this prevents 100% cpu usage
when a process waiting for an afs operation to complete receives
a signal.
2002-01-29 17:36:20 +00:00
Nickolai Zeldovich
905b71014b Properly release GLOCK when trying to mount AFS a second time. 2002-01-29 17:26:26 +00:00
Nickolai Zeldovich
30c69dae28 Use filemap_fdata{sync,wait} directly (available in 2.4.5 and above)
rather than write_inode_now(), which steals afs inodes and puts them
on the global inode lists.
2002-01-29 16:07:27 +00:00
Derrick Brashear
b01f9b7673 configure-add-darwin-52-support-as-14-since-no-change-otherwise-20020128
it was previously agreed that we wouldn't add gratuitous new sysnames unless things
(not just what the vendor calls the operating system) changed. precedent is
sun4m_412 still being "current" for sun4m_413, etc.
2002-01-28 21:32:20 +00:00
Nickolai Zeldovich
62bc57574a rx-dont-include-arraysize-in-offsetof-20020125
so this compiles on irix
2002-01-26 03:40:30 +00:00
Derrick Brashear
4ff68264b6 linux-afsd-pids-block-signals-so-we-dont-need-to-flush-20020124
no point in keeping this around
2002-01-24 20:13:22 +00:00
David Howells
367008ec65 linux-conf-fix-type-which-crept-in-20020124
"oops"
2002-01-24 18:09:28 +00:00
Derrick Brashear
f2d38d3683 solaris-rx-shutdown-sleep-only-if-listener-pid-not-freed-20020124
replace if with while in case the listener is freed before we call sleep
2002-01-24 10:46:42 +00:00
Derrick Brashear
5c2a4168a6 linux-unmask-signals-in-rxk-listener-at-shutdown-20020124
since the rxk listener gets "kill"d at shutdown we need to unmask to wake
it up. this should probably be replaced but the logical way is evil,
involves simulating a packet to the listener so it wakes up and notices it's
time to die
2002-01-24 10:42:34 +00:00
Derrick Brashear
a89079efff linux-cant-daemonize-due-to-exit-mm-call-oh-well-20020124
the call to daemonize() means we fail to shut down correctly on SMP machines;
this is due to the call to exit_mm() in daemonize()
2002-01-24 10:09:13 +00:00
Derrick Brashear
1f3f7bc3ef linux-rework-signal-blocking-for-afsdb-handler-and-clean-up-osi-invisible-before-im-completely-blind-20020123
based on suggestion from kolya@mit.edu

and osi_Invisible cleanup so ifdef logic would be more clear
2002-01-23 19:27:39 +00:00
Derrick Brashear
271fdc46b1 linux-use-while-loop-and-also-do-it-for-22-waiting-to-close-socket-20020123
while loop idea from chas@cmf.nrl.navy.mil
reminder that we should worry about 2.2 from somkar@in.ibm.com
2002-01-23 18:49:59 +00:00
Omkar Sathe
2742ca8a8b solaris-wait-for-listenerproc-to-exit-20020123
like linux, actually wait for listenerproc to finish before freeing the socket
2002-01-23 18:48:18 +00:00
Derrick Brashear
e91fca84fd rework-linux-newvcache-clean-up-dentries-20020123
previous pass wasn't SMP-happy. rework closer to original code.
2002-01-23 09:21:54 +00:00
Chaskiel M Grundman
0c239bbb3a linux-afsd-ignore-signals-20020123
ignore signals sent to afsd on linux instead of running out of control

also daemonize ourselves
2002-01-23 07:55:08 +00:00
Derrick Brashear
d19b5e9dff linux24-add-configure-glue-for-new-inode-fields-20020108
sure would be nice if it compiled
2002-01-23 05:09:11 +00:00
Derrick Brashear
8a906250f7 linux-use-results-of-all-inode-configure-tests-20020122
we tested for and then failed to use things before
2002-01-23 00:43:35 +00:00
Nathan Neulinger
ac9352424c hpux11-wants-system-ar-20020122
gnu ar hates empty .o files
2002-01-22 23:31:06 +00:00
Nickolai Zeldovich
8871da3856 linux-fix-mmap-write-20020122
a MAP_SHARED write wasn't being flushed back to the server
2002-01-22 05:51:19 +00:00
Love Hörnquist-Åstrand
2e98a0b1ca rx-cvsignore-rxperf-20020121
cvs shpuld ignore rxperf
2002-01-21 19:34:18 +00:00
Nickolai Zeldovich
7806d0a7d5 rx-cleanup-deadlock-and-refcnt-leak-20020121
The first part of the patch fixes a likely deadlock in the
case when we're destroying a client connection with active
calls.

The second part fixes a minor connection refcount leak in
my recent modification to protect against half-reachable
clients.
2002-01-21 18:05:26 +00:00
Matthew N. Andrews
5bf04219f5 source-map-20020121
with modifications by shadow@dementia.org

a guide to what's where in the OpenAFS source

====================
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.
====================

with modifications by shadow@dementia.org

a guide to what's where in the OpenAFS source

this time the right file. a sure sign that it's bedtime.
2002-01-21 10:24:12 +00:00
Derrick Brashear
8f4a0c1e27 i-hate-autoconf-20020120
AC_PROG_CC not safe to call this early
2002-01-21 09:14:21 +00:00
Love Hörnquist-Åstrand
e44d1b4232 rx-cleanup-gettimeofday-use-20020120
don't blindly make assumptions about gettimeofday

====================
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.
====================

redo in a way that doesn't screw up with respect to libafsrpc and libafsrpc-
using suites

====================

redo in a way that doesn't screw up with respect to libafsrpc and libafsrpc-
using suites
2002-01-20 10:35:21 +00:00
Love Hörnquist-Åstrand
599d747bb0 alpha-netbsd-param-fixes-20020120
make alpha little endian and remove duplicate define
2002-01-20 08:04:44 +00:00
Derrick Brashear
698cb30376 revert-rx-deal-with-missed-keepalives-by-accurately-tracking-call-number-20020120
causes problems at minimum for linux
2002-01-20 05:42:28 +00:00
Love Hörnquist-Åstrand
121cc34ed8 des-support-alpha-bsd-and-fix-test-programs-20020119
All BSDs are not I386s.

Also include a patch that make sure that data are alligned on alpha. All
bsd's will fix it up in kernel when used, but you'll get a huge performace
penalty

Use afs_int32 in the des programs to make sure they work and make them
build again.
2002-01-20 05:19:08 +00:00
Love Hörnquist-Åstrand
19835f0a12 rxkad-make-stress-compile-again-20020119
Make stress compile again.
2002-01-20 02:17:12 +00:00
Love Hörnquist-Åstrand
b05cae1382 bosserver-nofork-20020119
Make it easier to debug bosserver by adding a -nofork flag for the !nt40
env's.
2002-01-19 16:31:25 +00:00
Nickolai Zeldovich
c8f461dcb0 rx-protect-servers-from-half-reachable-clients-20020119
This patch should protect Rx-based servers from half-reachable clients,
which issue requests but don't acknowledge the server's response, thereby
eventually tying up all of the server threads, and denying service to all
other clients.  Such clients can arise in case of uni-directional routing
failures, whereby all packets from the server to client are lost but not
the other way around.

The idea it to ping clients (using Rx ack ping) before attaching them to
a thread, if (a) we're running low on threads, and (b) the client hasn't
responsed to a ping recently.
2002-01-19 16:28:33 +00:00
Love Hörnquist-Åstrand
7827ac9af1 alpha-cleanup-20020119
make alpha AFS_64BIT_ENV
Avoid warning by not passing data inside a pointer in the test program rw.

Provide compatibility symbols for those w/o preempt hack so its possible to
link test program `rw'.

When comparing to lwp_cpptr->statcheck, cast to int, since that is the type
of lwp_cpptr->statcheck. It may be the case that sizeof(int) !=
sizeof(afs_int32), but then other things will break too.

clean tests with -f

====================
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.
====================

and unbreak linux
2002-01-19 09:25:19 +00:00