]> git.michaelhowe.org Git - packages/o/openafs.git/log
packages/o/openafs.git
15 years agoFinalize changes for 1.5.75-1
Russ Allbery [Tue, 13 Jul 2010 21:46:13 +0000 (14:46 -0700)]
Finalize changes for 1.5.75-1

15 years agoSet the OpenAFS build version
Russ Allbery [Tue, 13 Jul 2010 21:45:49 +0000 (14:45 -0700)]
Set the OpenAFS build version

* Set the OpenAFS build version to the Debian package version with
  -debian appended so that the Debian package versions can be
  distinguished from unmodified upstream versions.

15 years agoLink libafsauthent with -lresolv -lcrypt
Russ Allbery [Tue, 13 Jul 2010 21:16:49 +0000 (14:16 -0700)]
Link libafsauthent with -lresolv -lcrypt

* Explicitly link libafsauthent with -lresolv -lcrypt.  This is a
  temporary fix for Linux that will be replaced by a better upstream fix
  in the next release.

15 years agoAdd symbols files for new shared libraries
Russ Allbery [Tue, 13 Jul 2010 04:13:31 +0000 (21:13 -0700)]
Add symbols files for new shared libraries

15 years agoAdd Lintian overrides for breaks-without-version
Russ Allbery [Tue, 13 Jul 2010 04:09:28 +0000 (21:09 -0700)]
Add Lintian overrides for breaks-without-version

These are virtual packages, and breaks is more correct than Conflicts
since upgrading to something that provides openafs-modules3 will fix
the problem but the packages can be co-installed from a file system
perspective.

15 years agoUpdate libkopenafs1 symbols file for k_haspag
Russ Allbery [Tue, 13 Jul 2010 04:07:37 +0000 (21:07 -0700)]
Update libkopenafs1 symbols file for k_haspag

15 years agoInstall new fssync-debug man pages
Russ Allbery [Tue, 13 Jul 2010 03:07:29 +0000 (20:07 -0700)]
Install new fssync-debug man pages

15 years agoProvide man pages for more fssync-debug commands
Andrew Deason [Wed, 23 Jun 2010 21:08:13 +0000 (16:08 -0500)]
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>
(cherry picked from commit 5cc6293c2cfc7b0a8746942fd048127bb7cbf10f)

15 years agoFix ktime test for errors
Russ Allbery [Sat, 10 Jul 2010 01:06:47 +0000 (18:06 -0700)]
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>
(cherry picked from commit 9e2aba99124f777a209d30ea57cbe92e19130b1f)

15 years agoAdd more cherry-picked upstream deltas to changelog
Russ Allbery [Tue, 13 Jul 2010 03:03:46 +0000 (20:03 -0700)]
Add more cherry-picked upstream deltas to changelog

15 years agoAdd changelog workaround for upstream packaging reuse
Russ Allbery [Fri, 9 Jul 2010 23:52:36 +0000 (16:52 -0700)]
Add changelog workaround for upstream packaging reuse

* Add a workaround in the clean target to allow the same packaging files
  to be used by upstream, which removes changelog during distclean
  because it's Autoconf-generated.  This workaround will not trigger
  during a normal Debian package build.

15 years agoRemove now-unneeded chmod commands
Russ Allbery [Fri, 9 Jul 2010 23:43:33 +0000 (16:43 -0700)]
Remove now-unneeded chmod commands

We used to mark executable some files that upstream didn't ship
executable properly, but one of them has disappeared and the other
is now correctly executable upstream.

15 years agoTighten /usr/share/doc symlink dependencies, install NEWS
Russ Allbery [Fri, 9 Jul 2010 23:33:52 +0000 (16:33 -0700)]
Tighten /usr/share/doc symlink dependencies, install NEWS

* Tighten the dependencies on openafs-client in packages that symlink
  their /usr/share/doc directories to openafs-client's to meet the
  Policy requirements for changelog files.
* Install an upstream changelog file now that upstream provides one.

15 years agoTODO updates
Russ Allbery [Fri, 9 Jul 2010 23:21:32 +0000 (16:21 -0700)]
TODO updates

15 years agoRemove ancient conflicts/replaces/provides for openafs-ptutil
Russ Allbery [Fri, 9 Jul 2010 23:20:39 +0000 (16:20 -0700)]
Remove ancient conflicts/replaces/provides for openafs-ptutil

* Remove conflicts/replaces/provides for openafs-ptutil, which was
  ancient (removed in 2001).

15 years agoUpdate standards version to 3.9.0
Russ Allbery [Fri, 9 Jul 2010 23:19:27 +0000 (16:19 -0700)]
Update standards version to 3.9.0

* Update standards version to 3.9.0.
  - Use Breaks instead of Conflicts where appropriate.

15 years agoBuild packages for libafsauthent and libafsrpc
Russ Allbery [Fri, 9 Jul 2010 23:16:26 +0000 (16:16 -0700)]
Build packages for libafsauthent and libafsrpc

* Build shared library packages for libafsauthent and libafsrpc.
  Upstream is now more careful about the ABI.  (Closes: #433054)

15 years agoRemove now-unused exclusion of package in dh_install
Russ Allbery [Fri, 9 Jul 2010 23:08:25 +0000 (16:08 -0700)]
Remove now-unused exclusion of package in dh_install

15 years agoAdd changelog entry for fixing build problems on alpha
Russ Allbery [Fri, 9 Jul 2010 23:07:31 +0000 (16:07 -0700)]
Add changelog entry for fixing build problems on alpha

15 years agoUpdate kernel module packaging scripts
Russ Allbery [Fri, 9 Jul 2010 23:07:00 +0000 (16:07 -0700)]
Update kernel module packaging scripts

* Update kernel module packaging scripts:
  - Remove selection of linux-image vs. kernel-image for kernel names.
  - Use Breaks instead of Conflicts.
  - Update standards version to 3.9.0.

15 years agoUpdate Kerberos flags for configure
Russ Allbery [Fri, 9 Jul 2010 23:01:37 +0000 (16:01 -0700)]
Update Kerberos flags for configure

15 years agoKernel source packages recommend openafs-client
Russ Allbery [Fri, 9 Jul 2010 22:55:30 +0000 (15:55 -0700)]
Kernel source packages recommend openafs-client

* openafs-modules-source and openafs-modules-dkms now recommend an
  appropriate version of openafs-client.

15 years agoMake kernel source packages arch: all
Russ Allbery [Fri, 9 Jul 2010 22:53:23 +0000 (15:53 -0700)]
Make kernel source packages arch: all

* openafs-modules-source and openafs-modules-dkms are now architecture:
  all.  The generated kernel source is now architecture-independent.

15 years agoAdd changelog entry for 1.5.75
Russ Allbery [Fri, 9 Jul 2010 22:50:13 +0000 (15:50 -0700)]
Add changelog entry for 1.5.75

15 years agoRemove a few erroneous NEWS entries for 1.5.75
Russ Allbery [Wed, 7 Jul 2010 21:04:37 +0000 (14:04 -0700)]
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>
(cherry picked from commit c790e7d0ca9f76749f761792234da91078eb573d)

15 years agoAdd NEWS entries for 1.5.75
Russ Allbery [Wed, 7 Jul 2010 19:50:37 +0000 (12:50 -0700)]
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>
(cherry picked from commit bbce05150cae04b7cb2ab943308cdbf0d8dfdffa)

15 years agoMerge commit 'upstream/1.5.75' into experimental
Russ Allbery [Fri, 9 Jul 2010 20:51:14 +0000 (13:51 -0700)]
Merge commit 'upstream/1.5.75' into experimental

15 years agoImported upstream tag openafs-devel-1_5_75 via tarball upstream/1.5.75
Russ Allbery [Fri, 9 Jul 2010 20:50:36 +0000 (13:50 -0700)]
Imported upstream tag openafs-devel-1_5_75 via tarball

15 years agoRemove mention of IBM release notes
Russ Allbery [Tue, 15 Jun 2010 01:19:28 +0000 (18:19 -0700)]
Remove mention of IBM release notes

* Minor update to README.Debian for openafs-doc: the old IBM release
  notes are no longer included.

15 years agoDrop support for lpia, add powerpcspe
Russ Allbery [Tue, 15 Jun 2010 01:13:02 +0000 (18:13 -0700)]
Drop support for lpia, add powerpcspe

* Remove the lpia architecture.  This was an experiment in Ubuntu that
  has apparently been dropped.
* Add preliminary support for powerpcspe, mapping that architecture to
  ppc_linux26.  The kernel build won't work unless uname -m on that
  architecture returns ppc.

15 years agorxkad heimdal cleanup openafs-devel-1_5_75
Derrick Brashear [Tue, 6 Jul 2010 13:36:27 +0000 (09:36 -0400)]
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>
15 years agoWindows: update release notes for 1.5.75
Jeffrey Altman [Tue, 6 Jul 2010 04:30:06 +0000 (00:30 -0400)]
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>
15 years agoWindows: ChangeLog for 1.5.75
Jeffrey Altman [Fri, 2 Jul 2010 17:55:05 +0000 (13:55 -0400)]
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>
15 years agomake openafs 1.5.75
Derrick Brashear [Fri, 2 Jul 2010 21:53:50 +0000 (17:53 -0400)]
make openafs 1.5.75

version number updates for 1.5.75

Change-Id: I05cf66281e497c3eff473a350abe480e6fcfd928
Reviewed-on: http://gerrit.openafs.org/2328
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Tested-by: Jeffrey Altman <jaltman@openafs.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
15 years agoFBSD: always close the rx socket when shutting down
Ben Kaduk [Sun, 4 Jul 2010 06:28:02 +0000 (02:28 -0400)]
FBSD: always close the rx socket when shutting down

The soclose(rx_socket) call is needed in order to restart AFS.
(Otherwise sobind() fails with EADDRINUSE.)
While here, use the defined constant SHUT_RDWR instead of
hardcoding '2' for soshutdown's second argument.

Change-Id: Iba7cac3aec79764783628da28b12253d496a7680
Reviewed-on: http://gerrit.openafs.org/2331
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
15 years agoDo not recurse on the glock in rxk_NewSocketHost
Ben Kaduk [Sun, 4 Jul 2010 02:58:39 +0000 (22:58 -0400)]
Do not recurse on the glock in rxk_NewSocketHost

If sobind() failed, we would lock the glock before going to bad,
which proceeded to lock the glock, panic()ing on the recursion attempt.
Remove the unneeded first call.

Change-Id: Ifa793735ebe64bde98156caa610c06612bdb92bd
Reviewed-on: http://gerrit.openafs.org/2330
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Tested-by: Jeffrey Altman <jaltman@openafs.org>
15 years agoRemoved kpasswd from openafs-file-list
Jonathan Billings [Wed, 30 Jun 2010 19:09:39 +0000 (15:09 -0400)]
Removed kpasswd from openafs-file-list

The executable %{_bindir}/kpasswd was included in the
the 'openafs' base package.

This change removes the kpasswd executable from the base package.  It
is still built and is installed in the 'openafs-kpasswd' package.  I
believe this was the original intent of the 'openafs-kpasswd' package.

Change-Id: Idf49747d8a703bb959cdf758d489d640045f285f
Reviewed-on: http://gerrit.openafs.org/2305
Reviewed-by: Simon Wilkinson <sxw@inf.ed.ac.uk>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
15 years agoupdate VAllocVnode logging
Derrick Brashear [Fri, 2 Jul 2010 21:42:13 +0000 (17:42 -0400)]
update VAllocVnode logging

move the log message i added to the correct place and put one where
it came from. oops

Change-Id: Ieb78d8cc076dbc2279922b0909546878b9ee005e
Reviewed-on: http://gerrit.openafs.org/2327
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
15 years agoDAFS: Salvage VG on volume creation error
Andrew Deason [Tue, 29 Jun 2010 18:19:11 +0000 (13:19 -0500)]
DAFS: Salvage VG on volume creation error

When trying to create a volume (either an entirely new volume or a
clone), request a demand-salvage on that volume group if we hit an
unexpected error. This can allow some situations to automatically
rectify themselves if, for example, a volume is missing its .vol
header, but still otherwise exists and causes an error during a clone.

Change-Id: I22b3e9028685395a8e621962138dee9f5f2ec822
Reviewed-on: http://gerrit.openafs.org/2286
Tested-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
15 years agoDAFS: Allow FSSYNC salvages on unknown volumes
Andrew Deason [Tue, 29 Jun 2010 19:44:31 +0000 (14:44 -0500)]
DAFS: Allow FSSYNC salvages on unknown volumes

Allow salvage requests over FSSYNC (FORCE_ERROR with the FSYNC_SALVAGE
reason code) that are requested on volumes that we do not know to
exist. This can be helpful if a salvage is requested on a volume that
someone attempted to create but failed, indicating that a
partially-created volume may be in the way.

Log an additional message when we do this, as it should not be a
normal occurrence.

Change-Id: I6e1bbe35111a41c489fe85cad36e6a8a6f323a5a
Reviewed-on: http://gerrit.openafs.org/2285
Reviewed-by: Tom Keiser <tkeiser@sinenomine.net>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
15 years agoLinux: cache bypass: fix FCSBypass tests
Marc Dionne [Fri, 2 Jul 2010 13:13:50 +0000 (09:13 -0400)]
Linux: cache bypass: fix FCSBypass tests

Add some parentheses around the tests for FCSBypass.
Without them, the test will not always give the intended result.

Change-Id: I94cb2b2c95c702981fce9cff066b620bce652ee1
Reviewed-on: http://gerrit.openafs.org/2324
Reviewed-by: Matt Benjamin <matt@linuxbox.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
15 years agoLinux: cache bypass: warning fix in afs_bypasscache.c
Marc Dionne [Fri, 2 Jul 2010 13:10:06 +0000 (09:10 -0400)]
Linux: cache bypass: warning fix in afs_bypasscache.c

Cast the printf argument to int to match the format specifier.

Change-Id: I4300c8a407c99c40e116a6e166a76112fb92d254
Reviewed-on: http://gerrit.openafs.org/2323
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
15 years agocache-bypass explicitly reference pages involved in background i/o
matt@linuxbox.com [Fri, 18 Jun 2010 18:27:07 +0000 (14:27 -0400)]
cache-bypass  explicitly reference pages involved in background i/o

Formerly, we assumed that any page eligible for background i/o could
be effectively pinned by lock_page.  Persuant to concern expressed by
Simon that such pages might be eligible to be released by the kernel
after readpages returns, call get_page to increment the refcount on
each page before dispatching a background read (and matching put_page
when the i/o is completed).

Change-Id: Ib3a63e56e6b902b4eb5deb769847e7f17ce2c9ff
Reviewed-on: http://gerrit.openafs.org/2215
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
15 years agoDAFS: Log attempted salvage requests
Andrew Deason [Tue, 29 Jun 2010 17:30:10 +0000 (12:30 -0500)]
DAFS: Log attempted salvage requests

Log in FileLog (or VolserLog, or the log of any program that requests
salvages) when we request a demand-salvage to occur.

Change-Id: I2444480287a1647c2d3e25039467167e28e17f38
Reviewed-on: http://gerrit.openafs.org/2284
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Tom Keiser <tkeiser@sinenomine.net>
Tested-by: Derrick Brashear <shadow@dementia.org>
15 years agoBuild: Let configure pick our lex and yacc
Simon Wilkinson [Thu, 1 Jul 2010 19:18:33 +0000 (20:18 +0100)]
Build: Let configure pick our lex and yacc

Let the autoconf magic pick our lex and yacc implementations,
rather than hardcoding possibly wrong values in osconf.m4

FIXES 1394

Change-Id: I692eb8568780c78cfe6ba2e5b0fddca6fe6c142c
Reviewed-on: http://gerrit.openafs.org/2316
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
15 years agoBuild: Rework git version detection
Simon Wilkinson [Tue, 29 Jun 2010 20:45:36 +0000 (21:45 +0100)]
Build: Rework git version detection

Rework the git version detection script to handle some issues that
have been pointed out.

1/ Make it work properly with objdir builds
2/ Don't try to work out if the tree is dirty if git describe failed
3/ Use the configured VERSION as a fallback if we can't obtain proper
   version information during a make

Change-Id: I39494e1c18cf4eacbb55386334da7128fbe96310
Reviewed-on: http://gerrit.openafs.org/2283
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Tested-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
15 years agovol: Move destroyMe check outside of inUse check
Andrew Deason [Fri, 25 Jun 2010 21:22:28 +0000 (16:22 -0500)]
vol: Move destroyMe check outside of inUse check

The destroyMe conditional does not depend on the result of
VShouldCheckInUse(), so move it outside of that block.

Change-Id: Ieb4c97ae9f76b4369680629f18eecd1dfc06682f
Reviewed-on: http://gerrit.openafs.org/2276
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Tom Keiser <tkeiser@sinenomine.net>
Tested-by: Derrick Brashear <shadow@dementia.org>
15 years agoVAllocVnode error handling
Derrick Brashear [Wed, 30 Jun 2010 00:49:41 +0000 (20:49 -0400)]
VAllocVnode error handling

avoid growing a volume index too large. handle errors other than just by
dropping a core

Change-Id: Id1bf7a1a40672b6b960cc0d7a1cd54f48ab0b50a
Reviewed-on: http://gerrit.openafs.org/2291
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
15 years agoDo not call afs_FlushVCBs with afs_xvcache held
Rainer Toebbicke [Wed, 23 Jun 2010 11:08:47 +0000 (13:08 +0200)]
Do not call afs_FlushVCBs with afs_xvcache held

In afs_AllocCBR, use dynamically created afs_cbr structures
when running out of preformatted ones, rather than calling
afs_FlushVCBs under, potentially, the afs_xvcache lock
(which would be held across the RPC, difficult to drop and
re-acquire under the current hierarchy).

Modest modernization of the number preformatted afs_cbr structures,
rule-of-thumb, not pretending any research.

Change-Id: I9427427d5dab7d4639822c370bdded0418f67d9e
Reviewed-on: http://gerrit.openafs.org/2243
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
15 years agobosserver force corefiles
Derrick Brashear [Fri, 14 May 2010 20:03:32 +0000 (16:03 -0400)]
bosserver force corefiles

override system resource limits so we get corefiles

Change-Id: I50f228d709090c8275bed2fc2958653c43a0a026
Change-Id: I5b5e8c6a5e02ed0b28610949eb81f6345357969e
Reviewed-on: http://gerrit.openafs.org/1959
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
15 years agoLinux: cache bypass: remove warning print before panic
Marc Dionne [Fri, 2 Jul 2010 13:28:05 +0000 (09:28 -0400)]
Linux: cache bypass: remove warning print before panic

This warning printf has some issues - it prints out pointers as
ints with %d (which causes warnings), and if the intention was
to print the referenced values, they wouldn't be set yet at that
point in the function.

Since the purpose is not clear and it has issues, just remove it.

Change-Id: Ied69c390818f9dff235bdaa31af42996aaa39af3
Reviewed-on: http://gerrit.openafs.org/2325
Reviewed-by: Matt Benjamin <matt@linuxbox.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
15 years agoLinux: cache bypass: warning fixes in afs_pioctl.c
Marc Dionne [Fri, 2 Jul 2010 12:55:44 +0000 (08:55 -0400)]
Linux: cache bypass: warning fixes in afs_pioctl.c

Fix two minor warnings in afs_pioctl.c:

- gcc complains that threshold may get used uninitialized.  the
warning looks bogus, but initialize it to keep gcc happy.

- PSetCachingBlkSize is declared but never defined.

Change-Id: I3ac84d665f60ba51fef2d52f2bd8d90e0a7bc3b3
Reviewed-on: http://gerrit.openafs.org/2322
Reviewed-by: Matt Benjamin <matt@linuxbox.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
15 years agoLinux: cache bypass: deal with the afs_serverHasNo64Bit case
Marc Dionne [Thu, 1 Jul 2010 20:07:40 +0000 (16:07 -0400)]
Linux: cache bypass: deal with the afs_serverHasNo64Bit case

Deal correctly with the case of a server with no 64-bit fetch
support.  In that case, the code needs to fallback to the standard
FetchData call, similar to what happens in afs_fetchstore.c.
Move existing check out of 64-bit-only branch so servers
already known to be non-64-bit and not merely those newly
discovered so execute the non-64-bit FetchData.

Change-Id: I505ce6d88072bc3ee5208863717395a78f8562fa
Reviewed-on: http://gerrit.openafs.org/2319
Reviewed-by: Matt Benjamin <matt@linuxbox.com>
Tested-by: Marc Dionne <marc.c.dionne@gmail.com>
Reviewed-by: Marc Dionne <marc.c.dionne@gmail.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
15 years agoProtect truncate_inode_pages when called from osi_VM_FlushPages
Rainer Toebbicke [Wed, 23 Jun 2010 13:10:46 +0000 (15:10 +0200)]
Protect truncate_inode_pages when called from osi_VM_FlushPages

truncate_inode_pages requires the mapping to be protected using
i_mutex / i_sem, which is not held whereever osi_FlushPages is called.

Change-Id: I2ca59cf75633368efb7f6a17fd01c7c517a8f609
Reviewed-on: http://gerrit.openafs.org/2244
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
15 years agoLinux: cache bypass: avoid unused variable warnings
Marc Dionne [Thu, 1 Jul 2010 19:22:47 +0000 (15:22 -0400)]
Linux: cache bypass: avoid unused variable warnings

Some variables are only used for AFS_64BIT_CLIENT code, so make
their declaration conditional as well.

Also, initialize 'code' while we're at it.  The compiler has a
legitimate complaint that it could be used before it's set,
for instance if we have AFS_64BIT_CLIENT but afs_serverHasNo64Bit
is true.

Change-Id: Ic04b07fffa9668123a9029bb42415a7c701c2339
Reviewed-on: http://gerrit.openafs.org/2317
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
15 years agoLinux: cache bypass: warning cleanup in afs_daemons.c
Marc Dionne [Thu, 1 Jul 2010 19:38:32 +0000 (15:38 -0400)]
Linux: cache bypass: warning cleanup in afs_daemons.c

Remove unnecessary warning for the UKERNEL case.  This file will
always get compiled with UKERNEL.

Remove an "if 1" ifdef that was probably used while debugging to
make the function non static.

Change-Id: I5ba5bbb4bd2b782c605699028cf3ad2c7e8cd41f
Reviewed-on: http://gerrit.openafs.org/2318
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
15 years agoLinux: Fix pagevec use in cache-bypass
Simon Wilkinson [Wed, 30 Jun 2010 07:29:28 +0000 (08:29 +0100)]
Linux: Fix pagevec use in cache-bypass

Cache-bypass was still using the old style pagevec manipulation
functions, and so won't build on newer kernels. Update it to use the
same pagevec functions as the generic readpages code.

FIXES 127505

Change-Id: I9d8acaf3165bbdf24068bd9145a2369cd0c87e4d
Reviewed-on: http://gerrit.openafs.org/2298
Reviewed-by: Matt Benjamin <matt@linuxbox.com>
Tested-by: Marc Dionne <marc.c.dionne@gmail.com>
Reviewed-by: Marc Dionne <marc.c.dionne@gmail.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
15 years agoDocument fs -human
Andrew Deason [Thu, 1 Jul 2010 16:57:59 +0000 (11:57 -0500)]
Document fs -human

Document the new -human switch for 'fs diskfree' and 'fs listquota'.

Change-Id: Ic4b4f9d7492c887085ab6da4c802cfc75fd4d08e
Reviewed-on: http://gerrit.openafs.org/2314
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
15 years agoFBSD: do not recurse on the afs_xvcache write lock
Ben Kaduk [Thu, 1 Jul 2010 16:47:55 +0000 (12:47 -0400)]
FBSD: do not recurse on the afs_xvcache write lock

afs_ShakeLooseVcaches grabs the write lock before calling
osi_TryEvictVCache.  The latter calls vgone(l), which sometimes
calls into VOP_CLOSE, which again trys to acquire the write lock,
leading to deadlock.  Drop the write lock and reaquire it in
TryEvictVCache as a fix.

While here, set *slept to 1 since we drop the glock.

This churn was enough that the gcc no longer cached the value of
AFSTOV(avc), which gets set to 0 in VOP_RECLAIM, so the subsequent
VOP_UNLOCK dereferenced a null pointer.  Cache the vnode pointer
in a local variable for the entire function instead of using
AFSTOV() everywhere.

Change-Id: Ic826e7888cb400c19857c58cb6ed88b9bdd0dddc
Reviewed-on: http://gerrit.openafs.org/2315
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
15 years agofs diskfree displays 'total' not 'kbytes'
Andrew Deason [Thu, 1 Jul 2010 16:52:21 +0000 (11:52 -0500)]
fs diskfree displays 'total' not 'kbytes'

Correct the fs manpage to show that 'fs diskfree' shows a header
called 'total' to represent the total disk space, not 'kbytes'.

Change-Id: Id827ec81dcfd79ab28eed3bc392524a378f0069d
Reviewed-on: http://gerrit.openafs.org/2313
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
15 years agofs: Correct human-readable output alignment
Andrew Deason [Thu, 1 Jul 2010 16:22:13 +0000 (11:22 -0500)]
fs: Correct human-readable output alignment

'fs lq' output separates its space values by whitespace, but 'fs df'
does not, which was causing the human-readable output for 'fs' to not
be properly aligned with the output headers. Modify HumanPrintSpace to
take up exactly 10 characters (9 for the value, 1 for the exponent),
and have the callers print out an extra space if appropriate.

Change-Id: Ied81e73e1e84df34e63fdf0c80ad86341bea0cd4
Reviewed-on: http://gerrit.openafs.org/2311
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
15 years agonuke configure options from AIX param files
Tom Keiser [Thu, 1 Jul 2010 06:07:54 +0000 (02:07 -0400)]
nuke configure options from AIX param files

Remove antisocial behavior whereby the AIX param
files silently turn on the FAST_RESTART and
BITMAP_LATER config options.

Change-Id: Ic7f77bd6c7aefe0f17b6d8796ce204cc8a5ad4c2
Reviewed-on: http://gerrit.openafs.org/2309
Reviewed-by: Simon Wilkinson <sxw@inf.ed.ac.uk>
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
15 years agoupdate ticket5 from heimdal
Derrick Brashear [Wed, 30 Jun 2010 19:35:38 +0000 (15:35 -0400)]
update ticket5 from heimdal

includes updated instructions for updating.
note that gen_glue.c in lib/asn1 has a bug which omits
a needed newline in the "const struct units * asn1_%s_units(void);",
line.

FIXES 127554

Change-Id: Ibc880bf51419d51de40b33d8c43122e592971b0b
Reviewed-on: http://gerrit.openafs.org/2306
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
15 years agoRemove --enable-fast-restart configure option
Andrew Deason [Mon, 28 Jun 2010 18:48:00 +0000 (13:48 -0500)]
Remove --enable-fast-restart configure option

FIXES 127526

Change-Id: I80a18fe083a0d52dad9d4e2d5b14bf667c44630b
Reviewed-on: http://gerrit.openafs.org/2278
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
15 years agoDAFS: fix VOL_HDR_IN_LRU state bit tracking
Tom Keiser [Wed, 30 Jun 2010 22:40:20 +0000 (18:40 -0400)]
DAFS: fix VOL_HDR_IN_LRU state bit tracking

For the case where the cached vp->header can be re-used by
GetVolumeHeader(), we have not been re-setting the VOL_HDR_IN_LRU
state bit.  Although this has not affected correctness (this
bit is merely used to aid in debugging), we should be resetting
it in all relevant cases...

Change-Id: I2ad2b8c5070470beb067efdcda6f76f6b72c006c
Reviewed-on: http://gerrit.openafs.org/2308
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
15 years agofs: HumanPrintSpace is void
Andrew Deason [Wed, 30 Jun 2010 17:59:24 +0000 (12:59 -0500)]
fs: HumanPrintSpace is void

HumanPrintSpace never returns anything; declare it void.

Change-Id: I336deb991e298b5132667a9bd7311b521fc082c3
Reviewed-on: http://gerrit.openafs.org/2304
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
15 years agovlclient: Remove incorrect whitespace fix
Andrew Deason [Wed, 30 Jun 2010 17:53:13 +0000 (12:53 -0500)]
vlclient: Remove incorrect whitespace fix

Commit e59a0ff9934f8ea44ecb02e9fdaa81a29bd04b61 generated a warning
since we try to assign NULL into a character. Just remove this code,
since removing trailing whitespace was already handled by commit
df18c9e895e75e77ed466dea3b06ef2a0a07260a.

Change-Id: I915c0678a2f6893e09cf049bf71c519be554369f
Reviewed-on: http://gerrit.openafs.org/2303
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
15 years agoDisable red zones for amd64 FBSD kernel code
Ben Kaduk [Wed, 30 Jun 2010 04:40:09 +0000 (00:40 -0400)]
Disable red zones for amd64 FBSD kernel code

The kernel has been compiled with -mno-red-zone since at least
FreeBSD 5.0; when we compile libafs.ko with red zones enabled
and interact with the red-zone-less kernel, we get occasional
stack corruption, which manifests itself in a variety of
unpleasant ways.
The flags we pass to gcc for our module build currently differ
substantially from those used during a kernel build (or modules
built with the kernel); I hope to transition to a module build
process involving bsd.kmod.mk in the relatively near future.

Change-Id: I406e264c1f96e1d893b9d12b561f48a3cbfdf57c
Reviewed-on: http://gerrit.openafs.org/2297
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
15 years agoAdd human-readable printout to fs df
Evan Broder [Wed, 30 Jun 2010 08:52:15 +0000 (09:52 +0100)]
Add human-readable printout to fs df

This patch adds a -human option to fs df, which causes it to printout
all of its values in "human-readable" form (i.e. rounded to roughly
the nearest power of 1024).

FIXES 124529

Change-Id: I98e4c872abec5784c6ec600d5d977c36f4a8b0ac
Reviewed-on: http://gerrit.openafs.org/2301
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
15 years agofix & enhance vlclient command-line handling
Max Cohan [Wed, 30 Jun 2010 08:30:49 +0000 (09:30 +0100)]
fix & enhance vlclient command-line handling

Corrects an EOL bug in vlclient and adds a more user-friendly
handling of request for help (i.e., '-help' now works)

FIXES 125036

Change-Id: I70f6523d538e34a02536e482f99916293a195df5
Reviewed-on: http://gerrit.openafs.org/2300
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
15 years agoFix VLog so that actual levels are used
Steven Jenkins [Wed, 30 Jun 2010 08:06:29 +0000 (09:06 +0100)]
Fix VLog so that actual levels are used

Fix VLog() so that it actually uses the loglevels and does not set
all log messages to level 5.

FIXES 125035

Change-Id: Ia9f42a814be182215cedadb6a4837347ace32f41
Reviewed-on: http://gerrit.openafs.org/2299
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
15 years agoFBSD: in reclaim, print the failed vnode
Ben Kaduk [Wed, 30 Jun 2010 04:29:41 +0000 (00:29 -0400)]
FBSD: in reclaim, print the failed vnode

If we fail to flush a vnode, in addition to printing a diagnostic
message, also print information about the vnode; fs getfid can
frequently confirm which vnode(s) are problematic, which may be
useful in debugging the failure.

Change-Id: Ia6e93f436f9dcd2d634c46856ede5effbf79e9cb
Reviewed-on: http://gerrit.openafs.org/2296
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
15 years agoActually invalidate the buffer in FBSD's FlushPages
Ben Kaduk [Wed, 30 Jun 2010 04:27:11 +0000 (00:27 -0400)]
Actually invalidate the buffer in FBSD's FlushPages

Chaskiel added a commented-out call to vinvalbuf() in
revision bd707fb7e6 back in 2002; adding in what the
current call should be does not seem to cause any problems
for me.

Change-Id: I2450fbaaa51b5baf2781e8a6572065e5f69b44ed
Reviewed-on: http://gerrit.openafs.org/2295
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
15 years agoFBSD TryToSmush locking fixup
Ben Kaduk [Wed, 30 Jun 2010 04:21:10 +0000 (00:21 -0400)]
FBSD TryToSmush locking fixup

We need to hold the interlock when we check v_flags, so do so.

TryToSmush is sometimes called with the vnode already locked,
as the current code appears to hold the vnode lock for the
current working directory (which is probably a bug).  Check if
the lock is already held (panic if someone else has it!), and
unlock as appropriate when we're done.

Change-Id: Id09ef1e10632c7f63b590271a6339a069176deac
Reviewed-on: http://gerrit.openafs.org/2294
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
15 years agoCorrect whitespace in FBSD/osi_vm.c
Ben Kaduk [Wed, 30 Jun 2010 04:12:59 +0000 (00:12 -0400)]
Correct whitespace in FBSD/osi_vm.c

I'm about to touch this, and the whitespace was bothering me.
Change the six-space indentations to match the rest of the code.

Change-Id: I35a12c82f8b2b4644e58cf1f19f021282e43dc77
Reviewed-on: http://gerrit.openafs.org/2293
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
15 years agoCorrect FBSD-version conditionals for VFS locking
Ben Kaduk [Sun, 20 Jun 2010 22:49:58 +0000 (18:49 -0400)]
Correct FBSD-version conditionals for VFS locking

The locking around some interfaces has changed with time.
Make our preprocessor checks match the reality of when
the changes were made.

Change-Id: If933dd636bb908af27852897e9c77ed600759674
Reviewed-on: http://gerrit.openafs.org/2292
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
15 years agostop abusing OPTMZ in aklog
Derrick Brashear [Tue, 29 Jun 2010 18:33:06 +0000 (14:33 -0400)]
stop abusing OPTMZ in aklog

instead, abuse XCFLAGS less. sigh

Change-Id: Ieda727bf62704f31ba4c1aebe3c5b8aa62c2dfed
Reviewed-on: http://gerrit.openafs.org/2282
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
15 years agoklog warning fix
Derrick Brashear [Tue, 29 Jun 2010 18:32:38 +0000 (14:32 -0400)]
klog warning fix

fix warning-found uninitialized variable in klog.krb5

Change-Id: Id4c78e2ceef82fcc7fbb6cdae7b6d07d74495547
Reviewed-on: http://gerrit.openafs.org/2281
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
15 years agoFix checked build of vldb_check
Rod Widdowson [Tue, 29 Jun 2010 17:30:39 +0000 (18:30 +0100)]
Fix checked build of vldb_check

Checkin http://gerrit.openafs.org/#change,2027 appears to have caused
issues with the checked build for vldb_check.

This fixed is by reflecting the structure change into vldb_check

Change-Id: I12343be8a3a31cb2f6474115a8d9137dadd4ae2d
Reviewed-on: http://gerrit.openafs.org/2280
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
15 years agoUse git describe to determine build version
Simon Wilkinson [Sat, 26 Jun 2010 18:35:18 +0000 (19:35 +0100)]
Use git describe to determine build version

This patch makes the configure and build system use the output
from 'git describe' to determine the version of the software being
built. This means that all that is necessary to create a new release
is to tag the repository - removing the double sources of version
information.

There are a couple of fallbacks for systems which do not have git
available for builds. Firstly, if a file called '.version' exists
in the top level of the repository, then the version information is
pulled from this file. The intention is that those packaging up
git checkouts for onwards distribution will use
'git describe > .version' before producing their tarballs.

Secondly, if we cannot find any version information then the version
will default to 'UNKNOWN'

This all mirrors the way that many others have integrated git with
automake and friends - although the implementation is independent.

Change-Id: I7fa4605e52181d60657ad794ca8efdb5a9fb1449
Reviewed-on: http://gerrit.openafs.org/1824
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Russ Allbery <rra@stanford.edu>
15 years agoLINUX24: crfree typo
Andrew Deason [Mon, 28 Jun 2010 16:03:28 +0000 (11:03 -0500)]
LINUX24: crfree typo

crfree, not crfee.

Change-Id: I4a2d4bd4e37e409b62d587b22c36f4a6d02e9c32
Reviewed-on: http://gerrit.openafs.org/2272
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
15 years agoLINUX24: remove pagecopy and other 2.6-only code
Andrew Deason [Mon, 28 Jun 2010 15:43:55 +0000 (10:43 -0500)]
LINUX24: remove pagecopy and other 2.6-only code

The client background readahead code and 'readpages' implementation
were only written for 2.6 kernels and used 2.6-specific constructs.
Remove them, along with references to the 'pagecopy' code, and some
other 2.6-only cruft in osi_vnodeops.c.

Change-Id: I2e939e98bd72cd7b275b0f7a389607ee5dc94efa
Reviewed-on: http://gerrit.openafs.org/2271
Reviewed-by: Simon Wilkinson <sxw@inf.ed.ac.uk>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
15 years agoLINUX: Remove LINUX26 conditional in proc2cred
Andrew Deason [Mon, 28 Jun 2010 16:24:04 +0000 (11:24 -0500)]
LINUX: Remove LINUX26 conditional in proc2cred

afs_osi_proc2cred contained a 2.4 implementation; remove it, since we
can assume at least 2.6.

Change-Id: I605856e920508cf49a975e5375ade87e00598763
Reviewed-on: http://gerrit.openafs.org/2274
Reviewed-by: Marc Dionne <marc.c.dionne@gmail.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
15 years agoLINUX24: Remove BDI references
Andrew Deason [Mon, 28 Jun 2010 16:17:50 +0000 (11:17 -0500)]
LINUX24: Remove BDI references

afs_backing_dev_info was still referenced in a couple of places in the
LINUX24 code. Although they are properly ifdef-guarded, these lines
were never getting built, so remove them.

Change-Id: I55ffca5dad99124b9d451925c9fcf15b7060bb9b
Reviewed-on: http://gerrit.openafs.org/2273
Tested-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
15 years agoLINUX24: NEED_IOCTL32 fixup
Andrew Deason [Mon, 28 Jun 2010 15:46:22 +0000 (10:46 -0500)]
LINUX24: NEED_IOCTL32 fixup

The NEED_IOCTL32 symbol needs to protect the entire if block, not just
the conditionals.

Change-Id: Ie33860b1d5677cec19ed19aa1ccc1ce0a26824ff
Reviewed-on: http://gerrit.openafs.org/2270
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
15 years agoLINUX24: cr_ref is a regular int
Andrew Deason [Mon, 28 Jun 2010 15:42:05 +0000 (10:42 -0500)]
LINUX24: cr_ref is a regular int

cr_ref is a regular integer, not an atomic_t, so we need to just
assign '1' to it directly.

Change-Id: I3533c79a67f7be35724cc81553d24bfecb7b81d3
Reviewed-on: http://gerrit.openafs.org/2269
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
15 years agoLINUX24: Remove group_info macros/functions
Andrew Deason [Mon, 28 Jun 2010 15:33:38 +0000 (10:33 -0500)]
LINUX24: Remove group_info macros/functions

The LINUX24 code has a macro and a function abstracting
'struct group_info' access. But 'struct group_info' does not exist in
2.4, and nothing calls these, so get rid of them.

Change-Id: Ic38f5be27d55da9fdf6ce7889d4df6afd1464c0f
Reviewed-on: http://gerrit.openafs.org/2268
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
15 years agoMake file offsets in vldb layout unsigned ints
Rod Widdowson [Wed, 26 May 2010 15:18:26 +0000 (16:18 +0100)]
Make file offsets in vldb layout unsigned ints

vlserver.h has a few cases where links through the vldb are being
stored as afs_int32s. These are file offsets and should be unsigned.
This commit fixes just these declarations.  The code still compiles
(because they are silently cast all over the shop), but it starts
the tidy effort.

Change-Id: Iba14bd28cb43a6ca6401be4252bb45135d8b3a55
Reviewed-on: http://gerrit.openafs.org/2027
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
15 years agoMake make_libafs_tree.pl use strict and warnings
Simon Wilkinson [Sun, 27 Jun 2010 14:15:33 +0000 (15:15 +0100)]
Make make_libafs_tree.pl use strict and warnings

Turn on the perl use strict and use warnings options in the
make_libafs_tree script to better catch programming bugs.

Change-Id: Ide358d40eda3cde9dd0261af11993560da71143a
Reviewed-on: http://gerrit.openafs.org/2266
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
15 years agoLinux: Use filehandles for all 2.6 kernels
Marc Dionne [Sat, 26 Jun 2010 00:06:08 +0000 (20:06 -0400)]
Linux: Use filehandles for all 2.6 kernels

This generalizes the use of the exportfs API and file handles
to open disk cache files for all 2.6 kernels.

Code outside of src/afs/LINUX (ex: afsd) can assume that file
handles are used for all 2.6 kernels and can use AFS_LINUX26_ENV
to check.

Within src/afs/LINUX/osi_file.c, NEW_EXPORT_OPS can be used to
determine if the old exportfs API (pre 2.6.24) or the new one
applies.

All traces of the LINUX_USE_FH define are removed.

FIXES 127530

Change-Id: I6803101c56981f9f674cef581f7299656723fdf3
Reviewed-on: http://gerrit.openafs.org/2260
Tested-by: Marc Dionne <marc.c.dionne@gmail.com>
Reviewed-by: Simon Wilkinson <sxw@inf.ed.ac.uk>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
15 years agolinux trivially track host signedness in afs_prototypes.h
Matt Benjamin [Mon, 28 Jun 2010 00:00:37 +0000 (20:00 -0400)]
linux trivially track host signedness in afs_prototypes.h

track host signedness in definition of afs_nfsclient_reqhandler, which
changed in 7d1bbee02a80f045a6ae4e30410798f4785906a8.

Change-Id: If85cbbb36c138fbe6ded93ba7c1c2af31825f5bb
Reviewed-on: http://gerrit.openafs.org/2267
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
15 years agolibafs: correct export_reqhandler prototype
Andrew Deason [Fri, 25 Jun 2010 20:03:23 +0000 (15:03 -0500)]
libafs: correct export_reqhandler prototype

The export_reqhandler function pointer takes an afs_int32*, not an
afs_int32 as the fourth argument.

Change-Id: I89ef9cfd23a5b673cbbb29fc710236cfe1e3c7cf
Reviewed-on: http://gerrit.openafs.org/2257
Tested-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
15 years agoUse unsigned addresses in the NFS exporter
Andrew Deason [Fri, 25 Jun 2010 19:17:49 +0000 (14:17 -0500)]
Use unsigned addresses in the NFS exporter

Use unsigned IP addresses in the NFS exporter code in libafs. This
modifies the distributed headers exporter.h and nfsclient.h.

Change-Id: Ieaddf21e487ae416d7b003223566c999c64279aa
Reviewed-on: http://gerrit.openafs.org/2256
Tested-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
15 years agoUse unsigned IP addresses in bu*
Andrew Deason [Fri, 25 Jun 2010 18:52:16 +0000 (13:52 -0500)]
Use unsigned IP addresses in bu*

Use unsigned IP addresss in bubasics, bucoord, and butc code. This
alters the public tcdata.p.h, but stays away from wire RPCs or
variables used directly with those RPCs.

Change-Id: Ica96172399cafbc2c347f725a966cf1db7ff1128
Reviewed-on: http://gerrit.openafs.org/2255
Tested-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
15 years agovlserver: Use unsigned addresses
Andrew Deason [Fri, 25 Jun 2010 17:43:50 +0000 (12:43 -0500)]
vlserver: Use unsigned addresses

Use unsigned IP addresses in vlserver code. This alters some
structures in the public cnvldb.h header.

Change-Id: I62725ad98d2c4e8bfe610ae9a6132fd0f54cc4aa
Reviewed-on: http://gerrit.openafs.org/2254
Tested-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
15 years agoLinux: remove some 2.6 specific code from 2.4
Marc Dionne [Fri, 25 Jun 2010 23:33:51 +0000 (19:33 -0400)]
Linux: remove some 2.6 specific code from 2.4

Remove some code that will never be compiled or used in the
afs/LINUX24 directory.
This includes code depending on AFS_LINUX26_ENV, and on
LINUX_USE_FH which is never set in 2.4 and is going away
soon anyway.

Change-Id: I972262b45d3518d996756b5dc9f6e6c01450e5cc
Reviewed-on: http://gerrit.openafs.org/2259
Reviewed-by: Simon Wilkinson <sxw@inf.ed.ac.uk>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
15 years agoAutoconf: Update AC_INIT macro use
Simon Wilkinson [Sat, 26 Jun 2010 16:39:20 +0000 (17:39 +0100)]
Autoconf: Update AC_INIT macro use

Update the way that we use the AC_INIT macro to match current
autoconf conventions

Change-Id: Ib1ce2acd879683ff8ff178cfbd9776277ba7460f
Reviewed-on: http://gerrit.openafs.org/2265
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
15 years agoRPM Packaging: Make file types clear
Simon Wilkinson [Sat, 26 Jun 2010 14:59:21 +0000 (15:59 +0100)]
RPM Packaging: Make file types clear

Make it clear that makesrpm.pl takes the bz2, rather than gzip'd,
versions of the OpenAFS distribution.

Change-Id: Ifb99448df5c7060186da1f13ee9c38ba95373376
Reviewed-on: http://gerrit.openafs.org/2264
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
15 years agoRPM Packaging: All debug kernels are bad
Simon Wilkinson [Sat, 26 Jun 2010 14:55:29 +0000 (15:55 +0100)]
RPM Packaging: All debug kernels are bad

We can't build against any of the recent Fedora debug kernels, because
they have options enabled that make criticial symbols GPL-only. Just
skip all debug kernel variants, rather than having to explicitly list
each new Fedora release as it comes out.

Change-Id: I8ed4c04b10facc79fd5a68888ddb10b368b49bef
Reviewed-on: http://gerrit.openafs.org/2263
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
15 years agoRPM Packaging: Add support for Fedora 12 and Fedora 13
Simon Wilkinson [Sat, 26 Jun 2010 14:54:05 +0000 (15:54 +0100)]
RPM Packaging: Add support for Fedora 12 and Fedora 13

Add support for building for Fedora 12 and 13, both i386 and x86_64

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