Commit Graph

283 Commits

Author SHA1 Message Date
Derrick Brashear
72d9dc7741 h-release-r-should-try-harder-to-reap-deleted-hosts-20011008
based on complaint from and work with jimmy@e.kth.se

h_OtherHolds_r will never return 0 if we mask our own hold
bit before calling it. however we must be careful to mask before h_TossStuff_r
so we aren't still "holding" then

otherwise just release our hold

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

mask holdbit in case i missed
2001-10-10 15:00:54 +00:00
Nathan Neulinger
c5d97c62c8 viced-server-shutdown-diagnostics-20011005
print some debugging if we shutdown due to failure
2001-10-05 22:25:24 +00:00
Love Hörnquist-Åstrand
5f002d755f viced-hosts-dump-make-output-more-useful-for-holds-20011005
don't just print pointer to holds array
2001-10-05 22:10:54 +00:00
Derrick Brashear
8a3eb1f06d be-more-careful-about-references-when-adding-and-deleting-callbacks-20011001
perhaps too careful. to fix potential crash in TDel and TAdd

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

remove extra ) which snuck in
2001-10-01 18:51:41 +00:00
Nickolai Zeldovich
7afd82623d require-administer-permission-for-mount-point-creation-harder-20010926
make sure a mount point isn't being created if the user isn't allowed to
do that
2001-10-01 18:35:50 +00:00
Derrick Brashear
362d26c733 create-inline-bulkstatus-rpc-and-server-stub-20010925
this way it's possible to do a bulkstatus where some items succeed and
fill in that stat info, instead of just getting an error.
2001-09-25 16:44:39 +00:00
Derrick Brashear
fb88a00980 fileserver-remove-delay-on-stat-errors-20010925
previously and since 3.5 rx enhancements fileserver would delay 3 seconds
on sending an rx abort when the abort was the 11th or more occurance of
the same error on the same call. the problem was fetchstatus/bulkstatus
on a directory on which you have "l" but not "r" would take forever after the
first 5 files (bulkstatus and then fetchstatus on each file, 2*5=10)

so in FetchStatus and BulkStatus stubs we suppress repeated errors from
Check_PermissionRights *only*, which has the effect of suppressing the
problem without removing the theoretical benefit of avoiding letting any
one client throw requests at as as fast as we can abort them unless those
requests happen to be fetch/bulkstat requests which fail a permission check,
but in order to avoid that we'd also need to cache what they last tried
to stat, and then things would get ugly.
2001-09-24 23:19:46 +00:00
Nickolai Zeldovich
c1cee109ad viced-deal-gracefully-with-afsconf-failure-20010924
-- Fileserver will complain if afsconf_Open() fails, rather than
    mysteriously segfault'ing later on.
2001-09-24 11:48:14 +00:00
Jim Rees
b80f8ab2cb Initial OpenBSD support. Most of user space builds. No kernel module yet. 2001-09-14 00:19:17 +00:00
Nathan Neulinger
2a12550e7c add-cvsignores-to-project-20010910
start at cvsignores
2001-09-10 21:14:01 +00:00
Jeffrey Hutzelman
80e2c2f8ce make-install-support-for-transarc-and-prefix-style-universes-20010907
according to jeff:
- Renames the top-level 'install' target to 'build'.  This should be
    transparent, since no one should be using that.

  - Improves on Sam's dirpath patches, by splitting out server binaries
    into separate bin, sbin, and libexec directories in GCS mode (these
    are all /usr/afs/bin in Transarc mode).

  - Updates the top-level 'all' target so that it builds the software
    but does not generate a dest tree.  Top-level 'lib' and 'include'
    directories are generated to hold the intermediate libraries and headers
    used during the build.

  - Adds a new top-level 'install' target, which installs things in the
    appropriate directories under ${DESTDIR}, based on configure's install
    directories plus the extras added by Sam's patch.

  - Adds a new top-level 'dest' target, which creates an old-style dest
    directory under ${DEST}.  The ${DEST} variable defaults to the
    traditional value of ${SRCDIR_PARENT}/${SYS_NAME}/dest.  Note that
    this variable used to be called ${DESTDIR}; it was renamed to avoid
    conflicts with the de facto standard usage of ${DESTDIR}.

====================
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 missed makefile

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

update another missed file

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

eliminate bogus escaping

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

get rid of another bogus escape

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

remove unused include directory

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

get rid of no longer used libdir

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

remove unused incdir

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

fix up some problems for make compatibility and missing trailing /

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

put afs.exp in the right place

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

remove bogus afssrvdir reference

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

update dest version of output

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

update ref to libexecdir

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

kill refs to afssrvdir

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


convert missed LIBDIR to TOP_LIBDIR

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

remove explicit INSTALL and use makefile.@sys value instead

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

except it's helpful to actually include makefile.@sys

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

convert LIBDIR to TOP_LIBDIR
2001-09-10 20:15:57 +00:00
Nathan Neulinger
635df30c0f more-makefiles-cleanup-20010829
get rid of cases where we'd end up with two / because of DESTDIR pasting

macroize calls to rm

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

get rid of another case of bogus trailing quoting
2001-08-30 00:22:17 +00:00
Nathan Neulinger
b0c5f0cac6 makefile-updates-20010828
clean up all the makefiles to remove bogus targets, eliminate trailing /
requirement from DESTDIR, avoid needing to pass things like DESTDIR around
between makefiles

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

remove bogus quoting
2001-08-29 02:19:55 +00:00
Derrick Brashear
c5c521af0e convert-from-bsd-to-posix-string-and-memory-functions-20010807
bcopy, bcmp, bzero, index, rindex, you're all cut.
memcpy, memcmp, memset, strchr, strrchr, show us how it's done

====================
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 reference to memset the right thing

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

make change to arguments globally and not just for e.g. linux/darwin/fbsd

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

fix a minor flub in how this was done

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

correct another bad memcpy coversion

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

fix up more inadvertant turds

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

fix two errors found by chas williams
2001-08-08 03:05:55 +00:00
Nathan Neulinger
0207991adc convert-all-makefiles-to-makefile-ins-20010802
all relevant variables become subst'd and not passed in the environment
2001-08-02 16:45:35 +00:00
Sam Hartman
fabec30f17 viced-copyonwrite-give-useful-error-messages-when-taking-volumes-offline-20010720
don't just report "needs salvage", tell why it was taken offline
2001-07-20 21:38:06 +00:00
Nathan Neulinger
1fd4f11faf include-afsconfig-before-param-h-20010712
so stuff can be defined in afsconfig.h and included first
2001-07-12 20:58:15 +00:00
Nathan Neulinger
e7ec0d4213 afsconfig-and-rcsid-all-around-20010705
convert rest of source to afsconfig; include rcsid macros

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

remove bogus if/define/endif triple

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

revert non-rcsid and afsconfig portion of patch
2001-07-05 16:20:00 +00:00
Tom Maher
a7014d4208 update-freebsd-support-20010628
fileserver now set up for namei interface. still no client
2001-06-29 04:20:01 +00:00
Derrick Brashear
aaca2cacd9 introduce-autoconf-for-openafs-20010628
replace existing build system with autoconf faceplate

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

so we can fix the file modes

====================
commit withj correct file modes

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

stuff which got left behind

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

more stuff which was missed

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

get this right so build completes

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

also make these correct (no obj reference)

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

so autoconf dependancy chain need not change

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

set correct variable for obsolete buildng

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

so we can more easily use autoconf'd CC var
2001-06-28 06:44:19 +00:00
Nathan Neulinger
033aecd1e8 viced-dotted-quad-logging-without-malloc-20010601
based on suggestion from rees@umich.edu

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

update for solaris cc joy
2001-06-04 22:08:19 +00:00
Nathan Neulinger
429c2eb913 log-host-addrs-as-dotted-quad-not-hex-in-viced-20010601
so you get a dotted quad and byte-correct port instead of a hex ip and a potentially
byteswapped port number from viced log messages
2001-06-01 20:14:58 +00:00
Nathan Neulinger
2a8a12e94b update-makefiles-for-afsconfig-h-20010517
more updates so afsconfig.h can be included
2001-05-18 02:22:10 +00:00
Nathan Neulinger
92165dc105 change-effect-of-afs-quietfs-env-20010514
so ViceLog happens when file server starts
2001-05-14 22:41:12 +00:00
Tom Maher
0c1eb3a380 initial-freebsd-port-work-20010414
start of work on freebsd port
2001-04-14 18:27:12 +00:00
Chaskiel M Grundman
a41175cfbb initial-darwin-support-20010327
setup for darwin port

====================
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.
====================
changes for darwin port

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

added files for the darwin port

====================
changes for darwin port
2001-03-27 08:43:13 +00:00
Michael Stroucken
bccc6a809d first-pass-at-alpha-linux-support-20010312
Changes for Alpha to previous 64 bit changes for sparc (sparc64 isn't
necessarily analogous to alpha or any other 64 bit linux platform)

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

====================
Include necessary file for alpha config

====================
Deal with 64 bit time_t

====================
Don't do increments in a way that can be miscompiled

====================
configure for alpha linux

====================
deal with time and initialize a variable

====================
don't use ViceIoctl32 for alpha linux

====================
deal with compiling kdump for alpha linux

====================
mods in callback.c analogous to dux port; mods in viced to deal with
thread creation function return convention

====================
config for linux alpha

====================
ids for alpha linux consistent with new-style sysname grouping

====================
makefile and config files for new-style sysnames

====================
MakefileProto changes for alpha linux with new-style sysnames. A change
in config/mc.c will be needed for this to configure correctly, and it will
be added soon

====================
note alpha port and the state it's in to hopefully avoid questions
2001-03-27 00:53:26 +00:00
Nathan Neulinger
0d466f2f10 add-server-syslog-logging-capabilities-20010326
Add support for syslogging server log messages

====================
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.
====================
Add syslogging capability to ptserver

====================
add syslog capability to fileserver

====================
Add syslog capability to the volserver

====================
Add syslog capability to the vlserver

====================
fix my own error when hand-applying nathan's patch

====================
remove unused function
2001-03-26 20:26:17 +00:00
Derek Atkins
2165ef3af8 make-fileserver-deal-correctly-with-client-which-changed-addresses-but-was-offline-when-a-callback-to-it-was-revoked-20010326
"First, some background: The AFS Fileserver tries really hard to keep
track of all the "interfaces" of a client.  Generally this is for a
multi-homed client, so that the server realizes that you are the same
client when you come from multiple addresses.  However, this also
winds up applying to a mobile host whose IP address changes over time.

When the Fileserver sees a "new" address, it asks the client for its
Uuid and, if that Uuid already exists, it adds this new address to the
list of interfaces for the existing host.  However, it keeps a
callback connection open to the original address.

Here's the problem: Assume the client has callbacks registered with
the server and then disappears from the network.  While the client is
off the net, someone else makes a change that causes that callback to
be broken.  The fileserver can't reach the client, so the break gets
added to the delayed callback list.  The logic is such that no client
requests will be processed by a host while there are outstanding
delayed callbacks to that client.


Now, if the client comes back on the same IP Address, everything works
fine.  The fileserver uses the cached callback connection and the
callbacks are cleared successfully.  However, if the client returns to
the network under a different address, this new address is added to
the existing host structure and then the delayed callbacks are
attempted.  Unfortunately it is using the (invalid) cached connection
to the old IP Address, so the delayed break fails.  Therefore, this
client is locked out of the fileserver until:

        1) the fileserver reboots,
        2) the client returns to the original IP Address, or
        3) All the callbacks timeout on their own.

This patch will fix this problem.  When the client makes a request and
the fileserver tries to break the delayed callbacks, if the breaking
fails then the fileserver will attempt to find a 'working' interface
by probing all the host interfaces for one that responds with the
correct Uuid.  If that succeeds then it resets the cached callback
connection and then breaks the delayed callbacks, thereby regaining
the connection to the client and proceeding with the proper cleanup
before the original request is completed."
2001-03-26 17:51:34 +00:00
Hartmut Reuter
0b70e19056 mrafs-client-extensions-including-afs-int64-20010210
"       Extensions used by MR-AFS in the client. I have added only two
        pioctl-calls which are used by the "fs"-command for a large number
        of MR-AFS specific subcommands. With this modification also the
        data type afs_int64 is introduced because MR-AFS supports large files.
        afs_int64 is either "long long" or a structure consisting of two
        32-bit numbers. We are already running on rs_aix42 a fully large-file
        capable AFS-client, but these changes are still in a beta test and
        not yet added here."
2001-02-10 21:26:14 +00:00
Derrick Brashear
17fdc9038a replace-gets-with-fgets-20001104
replace gets with fgets
based as patch from nneul@umr.edu
2000-11-05 02:21:42 +00:00
Derrick Brashear
fb5bcd00fc Standardize License information 2000-11-04 10:01:08 +00:00
IBM
87c10e8d7f Initial IBM OpenAFS 1.0 tree 2000-11-04 02:13:13 +00:00