openafs.git
13 years agobos: Do not assume DAFS just if DAFS bnode exists
Andrew Deason [Tue, 20 Jul 2010 17:32:10 +0000]
bos: Do not assume DAFS just if DAFS bnode exists

For salvaging purposes, we were assuming that if a DAFS bnode existed,
we should perform a DAFS salvage. Since it is possible to have a
disabled DAFS bnode alongside an enabled non-DAFS fs bnode, we should
perform a regular non-DAFS salvage if the DAFS bnode is disabled. Do
that.

Change-Id: If4e6fa3b733e2e9684cd9942be56368d60bf6dee
Reviewed-on: http://gerrit.openafs.org/2453
Tested-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Derrick Brashear <shadow@dementia.org>

13 years agobozo: Clean up bnode parms for each bnode
Andrew Deason [Tue, 20 Jul 2010 17:06:57 +0000]
bozo: Clean up bnode parms for each bnode

bosserver was remembering the parms for past bnodes, and just
overwriting parms for new bnodes. This is a problem if we have a
'dafs' bnode followed by an 'fs' bnode, since the 'fs' bnode will get
the 'dasalvager' parm, and bosserver will think it is its scanner
program.

So instead keep track of a separate array of the parms that we
actually pass to bnode_Create, so we only pass parms that we saw for
this specific bnode.

Change-Id: Ic609e2156cfd8ecf5b83b3815c5dff235010aa00
Reviewed-on: http://gerrit.openafs.org/2452
Tested-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Derrick Brashear <shadow@dementia.org>

13 years agoWindows: Build Demand Attach File Service
Jeffrey Altman [Tue, 20 Jul 2010 04:05:18 +0000]
Windows: Build Demand Attach File Service

This patchset permits the building of demand attach file server
and volume server.

Change-Id: I7ee81c69924cde5e8aec2067d73b51cba7e4423e
Reviewed-on: http://gerrit.openafs.org/2450
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agovol AttachByName should mimic other volpkg errors
Derrick Brashear [Mon, 19 Jul 2010 18:17:21 +0000]
vol AttachByName should mimic other volpkg errors

if later callers will deem a volume offline, note it at attach time.
additionally, log the cause.

Change-Id: I4870e8f3bfd8d7e69e448d3a445be81435407f0f
Reviewed-on: http://gerrit.openafs.org/2448
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agoShakeLooseVCaches needs to avoid CVInit vcaches
Derrick Brashear [Mon, 19 Jul 2010 20:56:58 +0000]
ShakeLooseVCaches needs to avoid CVInit vcaches

the code refactoring missed this case. sadly, it means we
can panic under heavy vcache contention.

FIXES 127645

Change-Id: I41929df066b8e3d447ba72e77be6777a306b8bf8
Reviewed-on: http://gerrit.openafs.org/2449
Reviewed-by: Simon Wilkinson <sxw@inf.ed.ac.uk>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agodocument dasalvager
Derrick Brashear [Fri, 16 Jul 2010 17:48:05 +0000]
document dasalvager

split dasalvager and salvager documentation.
refer both ways between docs.

Change-Id: I33480cae671c3f50d47a5a4f8407a07f268164a1
Reviewed-on: http://gerrit.openafs.org/2442
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agodocument davolserver
Derrick Brashear [Fri, 16 Jul 2010 17:39:22 +0000]
document davolserver

split davolserver and volserver documentation.
refer both ways between docs.

Change-Id: Iac70ac8e1fb8bfcb7ebfdbed8e9d7870a2e69fee
Reviewed-on: http://gerrit.openafs.org/2441
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agodafileserver synopsis
Derrick Brashear [Sun, 18 Jul 2010 15:45:06 +0000]
dafileserver synopsis

missed this before, needed for dafs man page

Change-Id: Ie9a309995638ea315198ea204cbc16e2cdc3fbe7
Reviewed-on: http://gerrit.openafs.org/2447
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agodocument dafileserver
Derrick Brashear [Fri, 16 Jul 2010 17:21:57 +0000]
document dafileserver

split dafileserver and fileserver documentation. remove dafs-only
switches from fileserver doc. refer both ways between docs.

Change-Id: Ibcac8ed3f294c18436978f3cd4e52de305130198
Reviewed-on: http://gerrit.openafs.org/2425
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agovos status: report human-readable last*Time
Andrew Deason [Tue, 6 Jul 2010 17:42:40 +0000]
vos status: report human-readable last*Time

Make 'vos status' print the lastReceiveTime and lastSendTime in a
human-readable format, instead of just printing the number of seconds
since the epoch as an integer. As suggested by Jeffrey Altman.

Change-Id: I1348a45078e49ff631cb46323767f1c384a72084
Reviewed-on: http://gerrit.openafs.org/2338
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agovos status: add lastActiveTime field
Andrew Deason [Tue, 6 Jul 2010 17:38:21 +0000]
vos status: add lastActiveTime field

Add a field in the 'vos status' output to report the last time a
transaction was touched by a volser RPC.

Change-Id: Ibfe11e16fc3d7f00134d840ec3ab9fb9263fbea1
Reviewed-on: http://gerrit.openafs.org/2337
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>

13 years agovos status: actually show created time
Andrew Deason [Tue, 6 Jul 2010 17:36:27 +0000]
vos status: actually show created time

The 'created' field in 'vos status' output was being reported as
something else. Make 'vos status' actually report the time the
transaction was created in that field.

Change-Id: Ib890256f4b9f67cf0a37910dc3b3585eafdba4fc
Reviewed-on: http://gerrit.openafs.org/2336
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agodir: Add printf format checks to log
Simon Wilkinson [Sat, 17 Jul 2010 17:23:30 +0000]
dir: Add printf format checks to log

salvage.c uses the Log() function defined by vol/common.c. At the
moment, this isn't defined in a way that we can easily grab its prototype,
so the code has an extern definition at the beginning. For now, just add
format checks to this definition.

Fix all of the fallout from this - we were casting to intptr, and
printing with %x - use AFS_PTR_FMT as nature intended.

Change-Id: I2110ebddbe207c307fcad00ab89e5818824a644d
Reviewed-on: http://gerrit.openafs.org/2446
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agobudb: Add printf format checks to logging fns
Simon Wilkinson [Sat, 17 Jul 2010 17:06:39 +0000]
budb: Add printf format checks to logging fns

Add format checking to the Log, LogError and LogDebug functions.

Fix the resulting type errors. One of these in particular is a
signficant bug, where we would try to print a hash table pointer
as a string.

Change-Id: I02d7bcd7ce63583d24dda4da40288af51a516583
Reviewed-on: http://gerrit.openafs.org/2445
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agovol: Fix logging functions
Simon Wilkinson [Fri, 16 Jul 2010 22:20:27 +0000]
vol: Fix logging functions

Fix the Log, Abort and Quit functions used by the vol package so
that they are all defined in a common header file, rather than
prototyped in each file which uses them.

Use the appropriate macros to flag those functions which never
return, and mark them all as taking printf style input.

Fix all of the callers which had mismatched format strings and
arguments.

Change-Id: I78194f623360e13f055f8f37b3558c08a70acd1f
Reviewed-on: http://gerrit.openafs.org/2444
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agoLinux: Load exportfs first
Simon Wilkinson [Fri, 16 Jul 2010 20:58:33 +0000]
Linux: Load exportfs first

The changes to use the exportfs interface to access cache files
require that the exportfs module is loaded before our module.

In 'normal' operation depmod, and modprobe, would take care of
this for us, however our legacy installation format where we
ship the kernel module outside of /lib/modules stops modprobe from
working, and our init script uses insmod. So, explicitly load
exportfs first.

Note: I'm aware of just how much this sucks, and the fact that we
really should just tidy up all of the packaging and init scripts
around our kernel module - but this close to 1.6 branch is probably
not the time for those kinds of changes.

Change-Id: Icdc11482f4eb05419a806a2cd55852eaa5999638
Reviewed-on: http://gerrit.openafs.org/2443
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agoRename configure.in to configure.ac
Russ Allbery [Thu, 15 Jul 2010 17:18:03 +0000]
Rename configure.in to configure.ac

Rename configure.in and configure-libafs.in to use the *.ac extension
instead, which is preferred by current Autoconf versions for input
files to Autoconf.  *.in can then be more consistently used for files
that are input into config.status.

Change-Id: I4d352560200e4dbb1a2dda3d5ab7c7c9a38b565f
Reviewed-on: http://gerrit.openafs.org/2437
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Russ Allbery <rra@stanford.edu>

13 years agoAdd include method for POD documentation
Russ Allbery [Fri, 16 Jul 2010 00:21:26 +0000]
Add include method for POD documentation

Add a preprocessor for POD documentation that handles a custom
=include directive.  Demonstrate how to use the preprocessor by
factoring out all the standard PTS options into a separate POD
fragment and including that fragment in all the PTS commands that
take the standard options instead of including that documentation
in each separate file.

Change-Id: If5255efc6d3fc670b38a9898b3d7d3c60af04fcf
Reviewed-on: http://gerrit.openafs.org/2440
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agoFix unterminated B<> sequence in bos addhost man page
Russ Allbery [Fri, 16 Jul 2010 00:18:12 +0000]
Fix unterminated B<> sequence in bos addhost man page

Change-Id: Ied06fbf8c0a9cc064b257daf6272cd5a5bd2e816
Reviewed-on: http://gerrit.openafs.org/2439
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agoFlesh out the configuration documentation
Russ Allbery [Thu, 15 Jul 2010 23:29:27 +0000]
Flesh out the configuration documentation

Remove obsolete configure options and document all remaining options
other than some provided by Autoconf and some that are currently not
very interesting.

Document that, on modern Linux systems, configure can find the kernel
build system and headers by itself and doesn't need the flag.

Include some more information in README about changing the default
installation paths, and mention that the da* versions of the file server
and volserver also aren't stripped.

Remove the generic GNU installation instructions, which aren't useful
for OpenAFS.

Change-Id: I56d0003ff0173749e9a5e04f1d0ed4d004787dfd
Reviewed-on: http://gerrit.openafs.org/2438
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agoAdd new demand-attach binaries to .gitignore
Russ Allbery [Thu, 15 Jul 2010 00:32:35 +0000]
Add new demand-attach binaries to .gitignore

Change-Id: I822153d890e736c2422f6bc0c0b29bb7c4240f9b
Reviewed-on: http://gerrit.openafs.org/2434
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agoFix .version generation for make libafs_tree
Russ Allbery [Thu, 15 Jul 2010 00:30:11 +0000]
Fix .version generation for make libafs_tree

The first argument to the git-version script should be the root
directory of the tree, not the .version file in that directory.

Change-Id: I145d360dc79132fc1474e94893c999b35774d874
Reviewed-on: http://gerrit.openafs.org/2433
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agoMove build support files into build-tools
Russ Allbery [Thu, 15 Jul 2010 00:29:34 +0000]
Move build support files into build-tools

Now that we have a build-tools directory, move the various support
files used by Autoconf and Automake into it as well to reduce clutter
at the top level.

Change-Id: Ieae317524d5354e3a6168507c569378f7913b05f
Reviewed-on: http://gerrit.openafs.org/2432
Tested-by: Russ Allbery <rra@stanford.edu>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agoafspag version of rx_knet.o
Marc Dionne [Thu, 15 Jul 2010 02:43:01 +0000]
afspag version of rx_knet.o

in order to correctly generate KBUILD_MODNAME, each object
file needs to be built only once. in this case it matters because the
pr_debug macro, called as a result of including errqueue.h, needs it
and things which depend on it, and when it's built into 2 .kos,
the wrong thing happens.

Change-Id: I85be7a3322fd179ef75fe14a90c9e7592e542ed1
Reviewed-on: http://gerrit.openafs.org/2435
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agoDebian: Install the demand-attach versions of the binaries
Russ Allbery [Wed, 14 Jul 2010 19:46:04 +0000]
Debian: Install the demand-attach versions of the binaries

This will need more comprehensive packaging work later, but in the
meantime, install the binaries so that make dpkg will complete
successfully.

Change-Id: Ic82feb92c05a3638365593c4e321ef5e45916ee2
Reviewed-on: http://gerrit.openafs.org/2429
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agoUse the full version number for Debian packages
Russ Allbery [Wed, 14 Jul 2010 19:33:40 +0000]
Use the full version number for Debian packages

Debian packaging can deal with the full version number that we
generate using git-version, so base the version we put into
src/packaging/Debian/changelog on that version instead of the
LINUX_PKGVER that we use for other packaging.

Change-Id: Ibf50854748b2b588c2f971d6bdadd4f66f648c5b
Reviewed-on: http://gerrit.openafs.org/2428
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agomake dpkg should only build binary packages
Russ Allbery [Wed, 14 Jul 2010 19:27:30 +0000]
make dpkg should only build binary packages

The source package we would get by running dpkg-buildpackage in the
source tree without further preparation is basically useless, since
it's a native source package for a non-native package and will contain
any random dirty cruft in the current source tree.  Since the purpose
of make dpkg is to provide quick Debian packages for testing purposes,
only build the *.deb files and don't bother to build the source
package.

Change-Id: Ia2643c7e8936b15e3447df589ed0236438b8341e
Reviewed-on: http://gerrit.openafs.org/2427
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agoUpdate Debian packaging to 1.5.75-2
Russ Allbery [Wed, 14 Jul 2010 19:25:55 +0000]
Update Debian packaging to 1.5.75-2

Fixes the duplicate run of make install during the package build
process and updates the changelog to the current Debian packages.

Change-Id: I20fa4cc24e17c3944de2b08e265e277ff5d5564f
Reviewed-on: http://gerrit.openafs.org/2426
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agoman: document bos addhost -clone
Michael Meffie [Wed, 7 Jul 2010 18:25:46 +0000]
man: document bos addhost -clone

Add the missing -clone option to the bos addhost
man page.

Change-Id: I0ead9acfd25d573b907f2617845c25c8c11df53c
Reviewed-on: http://gerrit.openafs.org/2349
Tested-by: Russ Allbery <rra@stanford.edu>
Reviewed-by: Russ Allbery <rra@stanford.edu>

13 years agoFix ktime test on 64-bit systems
Russ Allbery [Wed, 14 Jul 2010 17:02:08 +0000]
Fix ktime test on 64-bit systems

0xffffffff is a bad representation for -1 when the size of the data
type may vary.  Rather than forcing everything to 32 bits and losing
later on platforms with 64-bit time_t, change the table to use time_t
and try to add a cast that will do the right thing.

Change-Id: Id532c9b7a1fc215dc9fd532592fecb2ea45597a0
Reviewed-on: http://gerrit.openafs.org/2420
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agoRX: ignore all local 127/8 IFF_LOOPBACK interfaces
Andrew Deason [Thu, 8 Jul 2010 20:59:58 +0000]
RX: ignore all local 127/8 IFF_LOOPBACK interfaces

Currently RX lists all non-127.0.0.1 interfaces in the interface list,
even those that are specified as IFF_LOOPBACK, to accomodate certain
special cases where IFF_LOOPBACK interfaces should be advertised.
However, this makes us advertise e.g. a 127.0.0.2 lo interface. So
instead, skip all interfaces that are both in 127/8 and claim they are
IFF_LOOPBACK, as this will skip a stray 127.0.0.2, but should not
confuse the special cases.

Change-Id: I60a4ed5330252078e2f58894195f9b68ec70dcfa
Reviewed-on: http://gerrit.openafs.org/2376
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agoTreat all 127.0/16 addresses as loopback
Andrew Deason [Thu, 8 Jul 2010 15:56:28 +0000]
Treat all 127.0/16 addresses as loopback

Many places treat loopback addresses specially; they are skipped over
when traversing local interface lists, and they are sometimes replaced
with the public IP of the local hostname when interpreting user
arguments.

However, we only treated 127.0.0.1 as 'loopback'. Many systems can
have more than one loopback interface, such as having an interface
with the address 127.0.0.2. So, to catch these, treat everything in
127.0/16 as a loopback address or otherwise 'invalid' address. We
still do not treat the rest of 127/8 like this, to still allow some
127.* addresses to not be treated as loopback if someone really wants
to.

Change-Id: I64724cc1ee366e5ef80a8d6e3008e30a7077a4b2
Reviewed-on: http://gerrit.openafs.org/2367
Tested-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agoRewrite FUSE macro to skip FUSE if not found unless --enabled
Russ Allbery [Wed, 14 Jul 2010 16:28:47 +0000]
Rewrite FUSE macro to skip FUSE if not found unless --enabled

If no configure flags are given, build the FUSE afsd iff FUSE is
found.  If --enable-fuse-client is explicitly given, always try to
build the FUSE client and abort if FUSE libraries could not be found.

Change-Id: Icc0d5bbb03239470ad856d87bca600304f030591
Reviewed-on: http://gerrit.openafs.org/2419
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agoLinux: use an int pointer for the size argument to getsockopt
Marc Dionne [Wed, 14 Jul 2010 13:52:03 +0000]
Linux: use an int pointer for the size argument to getsockopt

getsockopt expects an int pointer as the size parameter, both in
the kernel version and our replacement compat inline function, which
causes warnings because we give it a size_t pointer.

Use an int variable instead.

Change-Id: Ide77ac01610c2f32f87d833c0d130c79007a1a33
Reviewed-on: http://gerrit.openafs.org/2417
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agoDon't overflow a buffer on the server's stack at startup
Jeffrey Hutzelman [Wed, 14 Jul 2010 05:20:22 +0000]
Don't overflow a buffer on the server's stack at startup

The servers like to log the command line it was invoked with.
It does this by concatenating its arguments, separated by spaces,
into a 150-character buffer on the stack of main(). That's just
wrong. Use a dynamically-allocated buffer instead.

Change-Id: Ibe398e5f449eec176f11f301090a1b68ef13e94b
Reviewed-on: http://gerrit.openafs.org/2275
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Derrick Brashear <shadow@dementia.org>

13 years agorx_user.c: Remove unused variable
Marc Dionne [Wed, 14 Jul 2010 13:29:49 +0000]
rx_user.c: Remove unused variable

There's an unused variable in the pmtu code in rx_user.c.
Remove the "offender".

Change-Id: I869b317d7e31b0f70b71f3e9ea2a0e0209709fcb
Reviewed-on: http://gerrit.openafs.org/2415
Reviewed-by: Rod Widdowson <rdw@steadingsoftware.com>
Tested-by: Rod Widdowson <rdw@steadingsoftware.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agolinux rx pmtu fixes
Derrick Brashear [Wed, 14 Jul 2010 06:00:32 +0000]
linux rx pmtu fixes

failed to get committed in earlier round of pmtu revamping. oops.

Change-Id: Ie4b0e2e3c343b62abf9871fd41018d25b09d30d4
Reviewed-on: http://gerrit.openafs.org/2414
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agosimple fuse enable change
Derrick Brashear [Wed, 14 Jul 2010 04:44:11 +0000]
simple fuse enable change

just turn on fuse by default. don't move anything

Change-Id: I533aeda117159ed4bf37c550906b580125f7f729
Reviewed-on: http://gerrit.openafs.org/2413
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agoAdd -unsafe-nosalvage fileserver option
Andrew Deason [Fri, 25 Jun 2010 22:02:54 +0000]
Add -unsafe-nosalvage fileserver option

Provide a runtime flag to the DAFS fileserver to allow for
fast-restart-like behavior for DAFS. Call the flag -unsafe-nosalvage, and
document it, warning against its use.

Change-Id: I342c58745b7e2e1d1a2066b4fb08941b02c660f9
Reviewed-on: http://gerrit.openafs.org/2277
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agoCheck for crypt in external library
Simon Wilkinson [Tue, 13 Jul 2010 20:53:22 +0000]
Check for crypt in external library

Check to see if we need to explicitly include a library in order
to get the crypt() function

Change-Id: I9bd1d70e420d4d1656bd86cd3215525102fa6259
Reviewed-on: http://gerrit.openafs.org/2404
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>

13 years agoUpdate Debian packaging to 1.5.75-1
Russ Allbery [Tue, 13 Jul 2010 22:39:29 +0000]
Update Debian packaging to 1.5.75-1

This update now builds shared library packages for the libafsauthent
and libafsrpc shared libraries.  It should also fix problems with
make dpkg due to debian/changelog being deleted on make distclean.

Change-Id: I14ce0633edc1f0cc9e081eb7383b2f1e7bfc729f
Reviewed-on: http://gerrit.openafs.org/2405
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agoenable pmtu in configure by default
Derrick Brashear [Tue, 13 Jul 2010 19:14:00 +0000]
enable pmtu in configure by default

if we can get a socket error to let us get pmtu discovery info,
use it.

Change-Id: I7756c1a00e6cb018146a5b0545bed828446e5483
Reviewed-on: http://gerrit.openafs.org/2400
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agodemand attach build always
Derrick Brashear [Tue, 13 Jul 2010 20:47:39 +0000]
demand attach build always

always build demand attach. includes doubtless-broken
windows support. installs dafileserver, dasalvager, davolserver.
salvageserver keeps its (unique) name.

Change-Id: Ia272dd2b0f72789b9e0f2a7712f9c206bb922095
Reviewed-on: http://gerrit.openafs.org/2403
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agoafs sunpro not always c99
Derrick Brashear [Wed, 14 Jul 2010 03:51:52 +0000]
afs sunpro not always c99

old enough sunpro c won't be c99, and doesn't define
a macro when it is c99. since there's no way to tell, be safe.

Change-Id: Ib60ead7b702fe3ab203de83456d0f126afecc1ec
Reviewed-on: http://gerrit.openafs.org/2411
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agoxdr sunpro not always c99
Derrick Brashear [Wed, 14 Jul 2010 03:36:30 +0000]
xdr sunpro not always c99

old enough sunpro c won't be c99, and doesn't define
a macro when it is c99. since there's no way to tell, be safe.

Change-Id: I1709827872b03c5365d9bb26b0ce9d86f038d882
Reviewed-on: http://gerrit.openafs.org/2410
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agomake dpkg should not depend on dest
Russ Allbery [Tue, 13 Jul 2010 22:57:25 +0000]
make dpkg should not depend on dest

It's pointless to have make dpkg build the tree before running the
Debian build rules, since the Debian build rules are just going to
build the tree again.

Change-Id: I2481b20a5ca23f8cb067ba609d4d3acd58738cc4
Reviewed-on: http://gerrit.openafs.org/2406
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agosimple is-lex-flex autoconf test
Derrick Brashear [Tue, 13 Jul 2010 18:31:41 +0000]
simple is-lex-flex autoconf test

if we're flex, we may need to be lex-compatible. engage
it if we're flex

Change-Id: If9a39ca0bce3f4a68b742d1e8f0c679d3f79896e
Change-Id: I7f245d579bcc46fdd0aa7202bbd45f3f9f647ebc
Reviewed-on: http://gerrit.openafs.org/2399
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agoLink libafsauthent with -lresolv if required
Russ Allbery [Tue, 13 Jul 2010 20:42:01 +0000]
Link libafsauthent with -lresolv if required

libafsauthent includes auth/cellconfig.c, which uses res_search, so it
requires -lresolv even if it isn't needed for gethostbyname.  Add
LIB_AFSDB to the link line for libafsauthent.

Change-Id: Id83ceb8b261b8c7fb176e24cc138276282608513
Reviewed-on: http://gerrit.openafs.org/2408
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>

13 years agoLink libafsauthent with -lresolv if required
Russ Allbery [Tue, 13 Jul 2010 20:42:01 +0000]
Link libafsauthent with -lresolv if required

libafsauthent includes auth/cellconfig.c, which uses res_search, so it
requires -lresolv even if it isn't needed for gethostbyname.  Add
LIB_AFSDB to the link line for libafsauthent.

Change-Id: I4dafdf83db9a00e4e30bff7c59357c13bf7af961
Reviewed-on: http://gerrit.openafs.org/2402
Tested-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Jason Edgecombe <jason@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>

13 years agodisconnected fix prototype warning
Derrick Brashear [Tue, 13 Jul 2010 19:47:41 +0000]
disconnected fix prototype warning

supporting disconnected in ukernel uncovered this
warning from lack of a prototype

Change-Id: I81d287a8e4466270906fe67f8a1f2f6406fec430
Reviewed-on: http://gerrit.openafs.org/2401
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years ago64bit macos new config.guess support
Derrick Brashear [Tue, 13 Jul 2010 18:29:38 +0000]
64bit macos new config.guess support

new config.sub/config.guess call 64 bit macos something
new. update our handling so we deal.

Change-Id: Ieadd71b66e879ff58bf2c7f77173284c570e4252
Reviewed-on: http://gerrit.openafs.org/2398
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agounix disconnected mode always
Derrick Brashear [Tue, 13 Jul 2010 17:06:02 +0000]
unix disconnected mode always

per 1.6 release plan, enable disconnected always. eject ifdefs
(and a stray printf that was hidden in one)

Change-Id: I6a68cb8506878c28502e1742a48858f2e84958f5
Reviewed-on: http://gerrit.openafs.org/2397
Tested-by: Jason Edgecombe <jason@rampaginggeek.com>
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>

13 years agolinux cache bypass by default
Derrick Brashear [Tue, 13 Jul 2010 16:41:15 +0000]
linux cache bypass by default

can't eject the ifdef yet as this is not fully portable now.
however, just enable it always.

Change-Id: Ia7a49a10377f308740ebd42027ac9748b073016e
Reviewed-on: http://gerrit.openafs.org/2396
Tested-by: Jason Edgecombe <jason@rampaginggeek.com>
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>

13 years agoDAFS: variable declarations in C must be a top of block
Jeffrey Altman [Mon, 12 Jul 2010 18:42:12 +0000]
DAFS: variable declarations in C must be a top of block

Two instances of variable declarations not being present
at the top of a code block in src/vol/volume.c when building
with AFS_DEMAND_ATTACH_FS.  Fix them.

Change-Id: Ic6b9c5a6bbbd8355a144fea38a6ca1dd2a2c747d
Reviewed-on: http://gerrit.openafs.org/2388
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Jeffrey Altman <jaltman@openafs.org>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>

13 years agoWindows: Generate a valid <revision> block using mkvers.c
Jeffrey Altman [Tue, 13 Jul 2010 03:35:05 +0000]
Windows: Generate a valid <revision> block using mkvers.c

The <revision> tag requires not only a <revnumber> but a <date>.

Change-Id: I3c5b7691d18381b1bf71bbd3d726bd284bf90919
Reviewed-on: http://gerrit.openafs.org/2390
Reviewed-by: Russ Allbery <rra@stanford.edu>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Tested-by: Jeffrey Altman <jaltman@openafs.org>

13 years agoWindows: Permit docbook validation using xmllint
Jeffrey Altman [Tue, 13 Jul 2010 03:36:56 +0000]
Windows: Permit docbook validation using xmllint

Add a "check" rule to each of the docbook directories
that uses xmllint.exe (from Cygwin) to validate the
docbook source against the DTD.  Validation failures
will halt the build.

Change-Id: Ifcfcab11d5077381bfe7fa5e3767070a8d55cb21
Reviewed-on: http://gerrit.openafs.org/2391
Reviewed-by: Russ Allbery <rra@stanford.edu>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Tested-by: Jeffrey Altman <jaltman@openafs.org>

13 years agoCommit DTD validation errors in the Windows Release Notes
Jeffrey Altman [Tue, 13 Jul 2010 03:40:01 +0000]
Commit DTD validation errors in the Windows Release Notes

Correct errors detected using xmllint

Change-Id: I75c936084f116addbb7918856fe958b596e91b03
Reviewed-on: http://gerrit.openafs.org/2393
Reviewed-by: Russ Allbery <rra@stanford.edu>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Tested-by: Jeffrey Altman <jaltman@openafs.org>

13 years agoCorrect DTD validation errors in the UserGuide
Jeffrey Altman [Tue, 13 Jul 2010 03:40:52 +0000]
Correct DTD validation errors in the UserGuide

Correct errors detected using xmllint

Change-Id: Idd9e91ef463679cb58bdb622fd600e4020224e81
Reviewed-on: http://gerrit.openafs.org/2394
Reviewed-by: Russ Allbery <rra@stanford.edu>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Jason Edgecombe <jason@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Tested-by: Jeffrey Altman <jaltman@openafs.org>

13 years agoCorrect DTD validation errors in the AdminGuide
Jeffrey Altman [Tue, 13 Jul 2010 03:38:56 +0000]
Correct DTD validation errors in the AdminGuide

Correct DTD validation errors detected using xmllint.

Change-Id: Ia255ac319a81966e63b702dd2b672ff3d6d8958a
Reviewed-on: http://gerrit.openafs.org/2392
Reviewed-by: Russ Allbery <rra@stanford.edu>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agoLinux: Use inode lock compat function
Simon Wilkinson [Mon, 12 Jul 2010 11:04:20 +0000]
Linux: Use inode lock compat function

We've now got a compatibilty function for locking and unlocking an
inode. Use that in osi_file, rather than a local set of #ifdefs

Change-Id: Ie64f0b758df0b90d0df2033d57729c8b09652c39
Reviewed-on: http://gerrit.openafs.org/2389
Tested-by: Jason Edgecombe <jason@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agofix dumptool on macos
Ken Hornstein [Tue, 4 May 2010 18:04:59 +0000]
fix dumptool on macos

make dumptool in test suite compile on macos again

Change-Id: Id60f625ce53bc9695673b68c733fa653521a8122
Reviewed-on: http://gerrit.openafs.org/2387
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agorx getaddr loopback change fallout
Derrick Brashear [Mon, 12 Jul 2010 19:04:44 +0000]
rx getaddr loopback change fallout

failed to git add, and so failed to push this back.

Change-Id: Ic538ac13f3099cfb3b8a5561e332750421ddd093
Reviewed-on: http://gerrit.openafs.org/2386
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agoxstat: fix large integer output
Michael Meffie [Tue, 11 May 2010 21:26:36 +0000]
xstat: fix large integer output

Do not print large positive integers as negative.

Change-Id: Ia7f96e64ee6ad0c58de0d03779b230623d60b114
Reviewed-on: http://gerrit.openafs.org/1949
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agoProvide man pages for more fssync-debug commands
Andrew Deason [Wed, 23 Jun 2010 21:08:13 +0000]
Provide man pages for more fssync-debug commands

Provide man pages for the fssync-debug commands vgcadd, vgcdel,
vgcquery, vgcscan, vgcscanall, vnode, and volop.

Change-Id: If456a4cdfedbf5f2776c276bc20178319638c26a
Reviewed-on: http://gerrit.openafs.org/2239
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agoviced: host hash address collisions
Michael Meffie [Mon, 19 Apr 2010 14:00:52 +0000]
viced: host hash address collisions

Attempt to resolve collisions when adding a host to the
address hash table and another host with the same address:port
is already present in the hash table. Retrieve the uuid for
the host at that address and if the uuid matches the new host
and not the old, remove the address from the old host and
install the new host into the address hash.

Change-Id: Id182f907f63be556c61ffb91777edd35f0aa950d
Reviewed-on: http://gerrit.openafs.org/1786
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Tested-by: Michael Meffie <mmeffie@sinenomine.net>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agoConsolidate loopback address tests
Andrew Deason [Thu, 8 Jul 2010 20:37:48 +0000]
Consolidate loopback address tests

Many different places were testing if an address is a loopback
address. Consolidate these into one function to make it easier to
alter.

Change-Id: I9c4465f3bdc4e840c83d69456504caaac1c544e7
Reviewed-on: http://gerrit.openafs.org/2375
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agoGetInodeSummary: free inode info
Andrew Deason [Thu, 8 Jul 2010 21:40:07 +0000]
GetInodeSummary: free inode info

In the salvager, GetInodeSummary stores some information about the
relevant inodes into a file. Free the memory for that information
after it's been written out, since we don't reference that memory
again.

Change-Id: I9578f941d2ea13240dd22d9b6e7a1f32217263c9
Reviewed-on: http://gerrit.openafs.org/2370
Tested-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Derrick Brashear <shadow@dementia.org>

13 years agoAn RPC test dispatch library for vice
Matt Benjamin [Thu, 24 Jun 2010 13:07:36 +0000]
An RPC test dispatch library for vice

A library framework for remote testing against file servers,
with the ability to establish multiple call/callback channel
pairs within a single test process and dispatch requests
arbitrarily on each.  Thanks to Derrick for design and debugging
help.  Additional callback processing intelligence will follow
in a future changeset.  This version builds on Windows NT (but
might need further adjustment).

Change-Id: Ibea39e912b2a23ebf58e9e0931114572eccf6e78
Reviewed-on: http://gerrit.openafs.org/2229
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agoLinux: Actually use freezer compatibility func
Simon Wilkinson [Sat, 10 Jul 2010 19:30:31 +0000]
Linux: Actually use freezer compatibility func

We were calling try_to_sleep, rather than afs_try_to_sleep. Whilst
try_to_sleep is present in all modern Linux kernels, on some older
systems we need to fall back to our own implementation, which is
what the afs_try_to_sleep function should do, but it can only do so
if we call it.

Change-Id: I900e50cf2754535e676d582bd3da82f1833bde52
Reviewed-on: http://gerrit.openafs.org/2384
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agoLinux: Use freezer compatibility macros in RX
Simon Wilkinson [Sat, 10 Jul 2010 19:17:56 +0000]
Linux: Use freezer compatibility macros in RX

Commit eef18466d920985c37ed8d22a6557b609c6225a6 introduced some
compatibility macros for the refridgerator functionality. Use these
in the Linux kernel RX code, rather than rolling our own.

Change-Id: I4279e0b3ee92337cb992ff46895712630f681b7b
Reviewed-on: http://gerrit.openafs.org/2383
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agoUpdate config.guess and config.sub to 2009-12-30 and 2010-01-22
Russ Allbery [Fri, 9 Jul 2010 23:46:21 +0000]
Update config.guess and config.sub to 2009-12-30 and 2010-01-22

Update to the latest versions provided by the Debian autotools-dev
package.

Change-Id: I503ed6bd4316af40f9d36be6010708cb4fef42e1
Reviewed-on: http://gerrit.openafs.org/2378
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agoMake config.sub executable
Russ Allbery [Fri, 9 Jul 2010 23:42:26 +0000]
Make config.sub executable

Autoconf apparently doesn't care because it runs it explicitly under
a shell, but it's sometimes useful to run it manually to check
something.  Plus, executable shell scripts should be executable on
general principles.

Change-Id: I0663d91da643f7c0a77fe758ca63f1cc14e81180
Reviewed-on: http://gerrit.openafs.org/2377
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agoTerminate the DARWIN80 #if in afs_osidnlc.c
Russ Allbery [Sat, 10 Jul 2010 01:09:32 +0000]
Terminate the DARWIN80 #if in afs_osidnlc.c

The #if defined(AFS_DARWIN80_ENV) in src/afs/afs_osidnlc.c was
never terminated, leading to build failures.  Add an #endif.

Change-Id: Ie2f324668becef8294b86cadec5cf5547731d2ad
Reviewed-on: http://gerrit.openafs.org/2381
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>

13 years agoFix ktime test for errors
Russ Allbery [Sat, 10 Jul 2010 01:06:47 +0000]
Fix ktime test for errors

The variable passed into ktime_DateToLong must be initialized to 0
or, on error, we get the previous value and the tests fail.

Change-Id: I5528a830981a85fb6737bb8cb5931ab95faffb13
Reviewed-on: http://gerrit.openafs.org/2379
Tested-by: Russ Allbery <rra@stanford.edu>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agoInclude linux/freezer.h in rx_kmutex.c
Russ Allbery [Sat, 10 Jul 2010 01:08:12 +0000]
Include linux/freezer.h in rx_kmutex.c

rx_kmutex.c calls refrigerator(), which is prototyped in linux/freezer.h,
but was not including it, causing build failures on Linux 2.6.32-5
(Debian).

Change-Id: I3867be6e7b8478d6fab8b97a4c923f979029517e
Reviewed-on: http://gerrit.openafs.org/2380
Tested-by: Russ Allbery <rra@stanford.edu>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agoUse afs_sfsize_t for *_SIZE results
Andrew Deason [Wed, 7 Jul 2010 20:43:26 +0000]
Use afs_sfsize_t for *_SIZE results

Callers of FDH_SIZE and OS_SIZE should be storing the results in an
afs_sfsize_t. Some were using regular 'int's and other things, which
can screw up if the file is sufficiently large.

Change-Id: Ibbc2067ed3b90edcbdd46cfa43da559fd6419f0b
Reviewed-on: http://gerrit.openafs.org/2357
Tested-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agoRemove incorrect critical section use in dnlc_lookup
Ben Kaduk [Fri, 9 Jul 2010 04:38:16 +0000]
Remove incorrect critical section use in dnlc_lookup

Critical sections may not be used with (non-spin) locks.  As such,
this code was wrong, and led to a panic.
We don't see why there what synchronization they may have been
providing, so just remove them and do not replace them.

Change-Id: I5d81595a7059a91b9aad46ab0a634fa684f67325
Reviewed-on: http://gerrit.openafs.org/2373
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agowiki url changed
Michael Meffie [Sat, 3 Jul 2010 22:54:15 +0000]
wiki url changed

Update the various places we reference the project wiki.

Change-Id: I56bcf038553eec02695667d737e0cd51e653b881
Reviewed-on: http://gerrit.openafs.org/2374
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agobuild fix on older linux
Michael Meffie [Thu, 8 Jul 2010 18:45:22 +0000]
build fix on older linux

The commit d0abe56aa47d4561ba57527d53a2b0db2ea613c2 added
a duplicate inclusion of freezer.h. Older versions
of linux (circa 2.6.20) are missing include guards
on freezer.h.

Change-Id: I12c47cded7d06a3514a520b554bbcbd3328f0d2b
Reviewed-on: http://gerrit.openafs.org/2369
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agoSOURCE-MAP updates
Alexander Redinger [Fri, 2 Jul 2010 19:43:42 +0000]
SOURCE-MAP updates

SOURCE-MAP now reflects state of current code tree,
reformatted for readability and easier updating.

Change-Id: I858156692c1e4c60ba4d5a75b684db2a079e2dba
Reviewed-on: http://gerrit.openafs.org/2348
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agovos: Don't call SubEnumerate twice
sanket [Thu, 1 Jul 2010 22:05:24 +0000]
vos: Don't call SubEnumerate twice

Set a flag to say when we've called SubEnumerate, so that we don't
end up calling it twice when in -format mode

(Simon Wilkinson extracted this from a larger patch by sanket)

FIXES 41031

Change-Id: I2cadd536cb6c9f389330d64ffbf35a16d673d2de
Reviewed-on: http://gerrit.openafs.org/2320
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agoUpdate the Red Hat spec file to include fssync-debug man pages
Jonathan Billings [Thu, 8 Jul 2010 13:23:28 +0000]
Update the Red Hat spec file to include fssync-debug man pages

Include the new man pages in the base 'openafs' package.  The package
build process fails with unpackaged files without this update.

Change-Id: Ie7a80a283bb95b492b56be0133c1bd811953c57e
Reviewed-on: http://gerrit.openafs.org/2364
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agoFix VPrintDiskStats_r logging
Andrew Deason [Fri, 2 Jul 2010 19:28:29 +0000]
Fix VPrintDiskStats_r logging

VPrintDiskStats_r tried to log some information using separate Log()
statements on the same line. This looks very odd when logged, since we
add a timestamp to every Log() call these days. Fix it to print the
line as one call to Log().

Change-Id: I19a5365c24208229201ba54ff04e793b5e50eee5
Reviewed-on: http://gerrit.openafs.org/2359
Tested-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agoviced: Remove stray \r
Andrew Deason [Mon, 28 Jun 2010 19:55:18 +0000]
viced: Remove stray \r

The "File Server has started at" log message contains a trailing '\r'
for some reason. Remove it (ctime will give us a trailing '\n').

Change-Id: I8f280abff9a7548f376f007021d74d3a21ac45cf
Reviewed-on: http://gerrit.openafs.org/2358
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agoRemove a few erroneous NEWS entries for 1.5.75
Russ Allbery [Wed, 7 Jul 2010 21:04:37 +0000]
Remove a few erroneous NEWS entries for 1.5.75

FUSE was already in 1.5.74, and DAFS fast-restart was not in
1.5.75.

Change-Id: I2e1b765c61ce4670800787dbcfd13c2c2af63f79
Reviewed-on: http://gerrit.openafs.org/2356
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agoFix build
Ben Kaduk [Thu, 8 Jul 2010 02:10:44 +0000]
Fix build

Previous commit to this file was not as tested as we thought.
This one actually builds (well, except for the part where flex
doesn't like et_lex.lex.l at the moment).

Change-Id: I11d918adc50bb387c022d90cb0877a6a667e8252
Reviewed-on: http://gerrit.openafs.org/2362
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agoFBSD: sync with NFS for *pages vnops
Ben Kaduk [Thu, 8 Jul 2010 00:47:55 +0000]
FBSD: sync with NFS for *pages vnops

We've had per-cpu counter variables for a while, use the proper
macros to adjust them.
FBSD90 has had the page queue locks pushed down a level, so we
don't need to lock them and should lock individual pages instead.
This fixes mmap() on FreeBSD HEAD.

Change-Id: I95d16097aaa65c1c99b4a686c05ac84fe9c11584
Reviewed-on: http://gerrit.openafs.org/2360
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agoAdd NEWS entries for 1.5.75
Russ Allbery [Wed, 7 Jul 2010 19:50:37 +0000]
Add NEWS entries for 1.5.75

Change-Id: I3510b03b6821ce266ebcf217b4bf7d6065a8aaa5
Reviewed-on: http://gerrit.openafs.org/2355
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agoklog: refactor klog_prompter
Andrew Deason [Wed, 7 Jul 2010 17:52:10 +0000]
klog: refactor klog_prompter

The ifdefs in klog_prompter were getting a bit confusing. Split out
some logic into a separate "is this prompt a password prompt"
function. As a result, we can build without KRB5_PROMPT_TYPE_PASSWORD
defined, which happens to be the case on hp_ux11i.

Change-Id: I1d5f794bfc33017f699478e367cde91a3e77d33c
Reviewed-on: http://gerrit.openafs.org/2353
Tested-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Simon Wilkinson <sxw@inf.ed.ac.uk>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agoFix shlibafsrpc des.c hp-ux special case
Andrew Deason [Wed, 7 Jul 2010 16:40:20 +0000]
Fix shlibafsrpc des.c hp-ux special case

'$$@ -I../des', not '-I../des $$@'.

Change-Id: I322963b8f6ab31cfa76a91095be665ca59a3c9c3
Reviewed-on: http://gerrit.openafs.org/2352
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agoHPUX: correct PostPopulateVCache vfsp set
Andrew Deason [Wed, 7 Jul 2010 15:23:27 +0000]
HPUX: correct PostPopulateVCache vfsp set

Setting AFSTOV(avc)->v_mount is the linux/BSD way. avc->v.v_vfsp is
the HP-UX (et al) way.

Change-Id: If2cd1c1e74fcd0ca5ad981497abe7968d97cf0ed
Reviewed-on: http://gerrit.openafs.org/2351
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agoHPUX: include proc_iface.h for proc_t
Andrew Deason [Wed, 7 Jul 2010 14:51:45 +0000]
HPUX: include proc_iface.h for proc_t

We use proc_t in a typedef, and we need proc_iface to get proc_t. So,
include it.

Change-Id: I515abe43ae1d3b4a2c54ebe1b7192a91ed441117
Reviewed-on: http://gerrit.openafs.org/2350
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agoUINT_MAX requires limits.h
Andrew Deason [Tue, 6 Jul 2010 19:02:56 +0000]
UINT_MAX requires limits.h

We need to include limits.h to use UINT_MAX on some platforms, so
include it in src/rxkad/v5der.c.

Change-Id: I79343011e72080e58f07d53195488808d9e29121
Reviewed-on: http://gerrit.openafs.org/2339
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agokernel InitPeerParams has bogus branching and dup code
Derrick Brashear [Wed, 7 Jul 2010 14:43:48 +0000]
kernel InitPeerParams has bogus branching and dup code

several of the mtu configuration cases for the kernel version
of InitPeerParams were bogus. clean up the function.
(a forthcoming change reworks this anyway, but..)

Change-Id: Ia4449d5cecc80cddae7d0f611186f48614b908ee
Reviewed-on: http://gerrit.openafs.org/2343
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agoHPUX: make osi_procname a stub
Andrew Deason [Tue, 6 Jul 2010 19:41:13 +0000]
HPUX: make osi_procname a stub

It is not immediately clear how to obtain the current process name on
HPUX, and the current osi_procname definition breaks the build, so
just make osi_procname a stub for HPUX.

Change-Id: I8c825d53d7f25b1500b41629ba73f2fe1f48f00a
Reviewed-on: http://gerrit.openafs.org/2341
Tested-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agoFix stray static inline
Andrew Deason [Tue, 6 Jul 2010 19:10:35 +0000]
Fix stray static inline

'static inline' should be 'static_inline'; keep the hp-ux compiler
happy.

Change-Id: Ibfb819571c608b9ca7c1437fde6898b405bccc4c
Reviewed-on: http://gerrit.openafs.org/2340
Tested-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agofix newline conventions
Derrick Brashear [Tue, 6 Jul 2010 15:11:25 +0000]
fix newline conventions

we had some CRLF files hanging out. fix them.

Change-Id: Ie2aa707813967192f202aabc3b28808ae8f80da6
Reviewed-on: http://gerrit.openafs.org/2335
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Tested-by: Jeffrey Altman <jaltman@openafs.org>

13 years agorxkad heimdal cleanup openafs-devel-1_5_75
Derrick Brashear [Tue, 6 Jul 2010 13:36:27 +0000]
rxkad heimdal cleanup

don't assume every system have uint16_t and uint32_t;
instead massage for use of native afs types.

Change-Id: I8943f37ecf6dd5d1565ed295b6e6a2ca9eea5b6d
Reviewed-on: http://gerrit.openafs.org/2334
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

13 years agoWindows: update release notes for 1.5.75
Jeffrey Altman [Tue, 6 Jul 2010 04:30:06 +0000]
Windows: update release notes for 1.5.75

Add:

 * better description of Win7 netbios name lookup bug

 * "fs newcell" changes

 * IdleDeadTimeout registry value

 * NatPingInterval registry value

 * ReadOnlyVolumeVersioning registry value

Change-Id: Ibf5ff8145be94ab8a7a48a1a9bd87c7d60e8549b
Reviewed-on: http://gerrit.openafs.org/2333
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Tested-by: Jeffrey Altman <jaltman@openafs.org>

13 years agoWindows: ChangeLog for 1.5.75
Jeffrey Altman [Fri, 2 Jul 2010 17:55:05 +0000]
Windows: ChangeLog for 1.5.75

Change-Id: Iff322bf65d9d8b5af58d6f4b53630256504999cb
Reviewed-on: http://gerrit.openafs.org/2332
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Tested-by: Jeffrey Altman <jaltman@openafs.org>