]> git.michaelhowe.org Git - packages/o/openafs.git/log
packages/o/openafs.git
16 years agoAFS Backgrounder implementation & warirng clean
Claudio Bisegni [Sat, 1 Aug 2009 17:43:39 +0000 (19:43 +0200)]
AFS Backgrounder implementation & warirng clean

Replaced the NSMenuExtra and created the AFSBackgrounder that will do all work for aklog at login and manage the Status menu in menu bar

Reviewed-on: http://gerrit.openafs.org/262
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 7868e1961048d2a24bd5d4d5afab07d3dbf54fd2)
Change-Id: I379d1091dd8b376d5036e447651465ee9b099863
Reviewed-on: http://gerrit.openafs.org/948

16 years agoStart coding OSX Backgrounder Application, for OpenAFS Preference Pane, that user...
Claudio Bisegni [Wed, 29 Jul 2009 13:12:13 +0000 (15:12 +0200)]
Start coding OSX Backgrounder Application, for OpenAFS Preference Pane, that user NSStatusItem

To prevent future compatibility with osx we must use NSStatusItem instead NSMenuExtra that is not documented api.
For this has been created a background only application that will manage all function managed by current NSMenuExtra

Reviewed-on: http://gerrit.openafs.org/261
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit f52f509962fbaade008f5dc6c2f8a3bece70c13c)
Change-Id: I69815922f40ea51c380c7300648e9dfa3bb809b5
Reviewed-on: http://gerrit.openafs.org/947

16 years agoinstall AFSCommander in prefpane dir
Derrick Brashear [Tue, 28 Jul 2009 16:13:24 +0000 (12:13 -0400)]
install AFSCommander in prefpane dir

make the AFSCommander prefPane be installed, in /Library (as
are growl, macfuse, etc)

Reviewed-on: http://gerrit.openafs.org/243
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Simon Wilkinson <sxw@inf.ed.ac.uk>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 6640b8b064b238333a46ef72aa09913b06271a91)
Change-Id: Ic9e46c62ee3587012bed33c737573cfc18b4672d
Reviewed-on: http://gerrit.openafs.org/946

16 years agoIn rxi_SendPacket[List], down hosts if ENETUNREACH or equivalent
Adam Megacz [Mon, 27 Jul 2009 03:32:07 +0000 (20:32 -0700)]
In rxi_SendPacket[List], down hosts if ENETUNREACH or equivalent

This patch causes rxi_SendPacket[List] to "down" a host if
rxi_Sendmsg() returns -ENETUNREACH (or equivalent).  Previous behavior
only did this check if defined(KERNEL) becauase non-defined(KERNEL)
implementations did not return meaningful error codes from
rxi_Sendmsg().

Jeff Altman <jaltman@openafs.org> supplied the logic for the
AFS_NT40_ENV case; I was not able to test this (I do not own a
Windows license) and took him on his word.

Reviewed-on: http://gerrit.openafs.org/59
Reviewed-by: Adam Megacz <megacz@gmail.com>
Tested-by: Adam Megacz <megacz@gmail.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 1ddc7fa920213f9b5455e632bbddf05b866af647)
Change-Id: I1c5bdf8f3216f82f32fcf22f1c47a3a43130e071
Reviewed-on: http://gerrit.openafs.org/945

16 years agoBuild fix - pre-processor typos in rx_lwp.c and rx_pthread.c
Marc Dionne [Mon, 27 Jul 2009 01:45:33 +0000 (21:45 -0400)]
Build fix - pre-processor typos in rx_lwp.c and rx_pthread.c

Commit 119c756d96c4a7f9e01e4ff6bb20156f1abf761b introduced a typo
in two places, using #elif instead of the apparently intended #else.

Reviewed-on: http://gerrit.openafs.org/231
Tested-by: Jeffrey Altman <jaltman@openafs.org>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
(cherry picked from commit 9a490c96a074f4c3c82a3f01c18bc74cc19ae184)
Change-Id: Ic6282bb1535c0d4ba206736d1c2ae5c088bf2a7e
Reviewed-on: http://gerrit.openafs.org/944
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
16 years agoUse -errno or WSAGetLastError() as return value from rxi_Sendmsg()
Adam Megacz [Sun, 19 Jul 2009 18:00:41 +0000 (11:00 -0700)]
Use -errno or WSAGetLastError() as return value from rxi_Sendmsg()

This patch causes the pthread and lwp implementations of rxi_Sendmsg()
to use -errno or WSAGetLastError() as the return value if it is
positive.  This is required in order to communicate more meaningful
error conditions to rxi_SendPacket[List], which should "down" a host
immediately when it observes ENETUNREACH.

Jeff Altman <jaltman@openafs.org> supplied the logic for the
AFS_NT40_ENV case; I was not able to test this (I do not own a
Windows license) and took him on his word.

Reviewed-on: http://gerrit.openafs.org/58
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Adam Megacz <megacz@gmail.com>
Tested-by: Adam Megacz <megacz@gmail.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 119c756d96c4a7f9e01e4ff6bb20156f1abf761b)
Change-Id: I31f97e4cef4b32abb69c783d19b1adfd897889fa
Reviewed-on: http://gerrit.openafs.org/943

16 years agoRunning bos -noauth should not require client CellServDB configuration
Jeffrey Altman [Fri, 24 Jul 2009 16:58:26 +0000 (12:58 -0400)]
Running bos -noauth should not require client CellServDB configuration

When setting up a new cell, the admin is instructed to use "bos -noauth"
to configure the servers and only afterwards create the client configuration.
This leads to a catch-22 since currently bos -noauth fails if there is no
client configuration even though it is not required.

This change avoids the call to afsconf_Open() which is only required
if tokens are being acquired.

FIXES 125156

Reviewed-on: http://gerrit.openafs.org/209
Reviewed-by: Simon Wilkinson <sxw@inf.ed.ac.uk>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Jeffrey Altman <jaltman@openafs.org>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
(cherry picked from commit e435e248f44c46866cb73db185b9548c0bd148b4)
Change-Id: I5a40091410bcc4b28fce04b7cd65ae797b3d8ed0
Reviewed-on: http://gerrit.openafs.org/942
Tested-by: Derrick Brashear <shadow@dementia.org>
16 years agoafsprefs pane shouldn't hardcode 10.4 sdk
Derrick Brashear [Fri, 24 Jul 2009 04:44:31 +0000 (00:44 -0400)]
afsprefs pane shouldn't hardcode 10.4 sdk

10.4 sdk isn't available in the release after 10.5 as a default. don't hardcode it
same with afscell

Reviewed-on: http://gerrit.openafs.org/207
Tested-by: Simon Wilkinson <sxw@inf.ed.ac.uk>
Reviewed-by: Simon Wilkinson <sxw@inf.ed.ac.uk>
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit a6025e0268fd7cff6ee7de145bdbf59cc350c572)
Change-Id: I404861b1d27c9ff8eef4c61707f14d4c36b7ea9d
Reviewed-on: http://gerrit.openafs.org/941

16 years agoFinish afscell implementation work
Toby Blake [Thu, 23 Jul 2009 19:18:28 +0000 (20:18 +0100)]
Finish afscell implementation work

This patch completes the implementation of an install time prompeter
for information about the local AFS cell, which is then used to populate
the ThisCell file. It removes the need for manual editing of
configuration files as part of the installation.

(Build system modified by Simon Wilkinson from Toby's original patch)

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

16 years agoplatform makefile should handle clean target
Derrick Brashear [Thu, 23 Jul 2009 15:46:50 +0000 (11:46 -0400)]
platform makefile should handle clean target

pass "make clean" through to platform-specific makefiles

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

16 years agoMakefile.in modification for compile AFSPreference source code
Claudio Bisegni [Thu, 23 Jul 2009 14:40:39 +0000 (16:40 +0200)]
Makefile.in modification for compile AFSPreference source code

Have been added the rule "OpenAFS.prefPane" tha compile with xcodebuild the xcode project

Reviewed-on: http://gerrit.openafs.org/http://gerrit.openafs.org/197
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit f1bb016e12a1f4bb3b9b01d5a9abe4f8c8dabe32)
Change-Id: If747e6cafce06fba7a338059636763a521279ae5
Reviewed-on: http://gerrit.openafs.org/938

16 years agoOSX Preference Pane Source Import
Claudio Bisegni [Fri, 10 Jul 2009 22:18:56 +0000 (00:18 +0200)]
OSX Preference Pane Source Import

Reviewed-on: http://gerrit.openafs.org/http://gerrit.openafs.org/196
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 694c5ca3f400ce88219f60edec75249bf73cc8fc)
Change-Id: I4078bfc6004431c2dd277cbc2a665b4c6cc412a3
Reviewed-on: http://gerrit.openafs.org/937

16 years agoOSX Preference Pane
Claudio Bisegni [Fri, 10 Jul 2009 22:18:04 +0000 (00:18 +0200)]
OSX Preference Pane

Reviewed-on: http://gerrit.openafs.org/http://gerrit.openafs.org/195
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 2675642e024f56a3069414d1f96ee440c9cb0c77)
Change-Id: I8f1c1fe751962efc0180a2eb6063eb83becb1e2a
Reviewed-on: http://gerrit.openafs.org/936

16 years agoavoid call to rxi_FreePacket with NULL pointer
Hans-Werner Paulsen [Wed, 22 Jul 2009 13:14:33 +0000 (15:14 +0200)]
avoid call to rxi_FreePacket with NULL pointer

the function rx_ReadProc32 (src/rx/rx_rdwr.c) checks the pointer
call->currentPacket before the function rxi_FreePacket is called. This
test was missing in the function rx_ReadProc.

FIXES 125110

Reviewed-on: http://gerrit.openafs.org/http://gerrit.openafs.org/178
Tested-by: Jeffrey Altman <jaltman@openafs.org>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
(cherry picked from commit e35dfdcce9d11607669783844331ad2dbafd2793)
Change-Id: I1156403dc3d7e64d4176577e51933b79b00442db
Reviewed-on: http://gerrit.openafs.org/935
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
16 years agoAFSOP_STOP_RXEVENT sometimes set without wakeup
Derrick Brashear [Tue, 21 Jul 2009 17:14:57 +0000 (13:14 -0400)]
AFSOP_STOP_RXEVENT sometimes set without wakeup

make sure when AFSOP_STOP_RXEVENT is set, a wakeup is sent on the
variable so waiters realize it's the case

Reviewed-on: http://gerrit.openafs.org/http://gerrit.openafs.org/162
Reviewed-by: Simon Wilkinson <sxw@inf.ed.ac.uk>
Tested-by: Simon Wilkinson <sxw@inf.ed.ac.uk>
Reviewed-by: Russ Allbery <rra@stanford.edu>
(cherry picked from commit ba27f1b3cb08db66e184682b30d60ff6fc4ce43e)
Change-Id: If2ac96e7c793c8d4c93492625f006abefac634d1
Reviewed-on: http://gerrit.openafs.org/934
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
16 years agovos print_addr() must call ubik_VL_GetAddrsU with correct level of indirection
Jeffrey Altman [Wed, 15 Jul 2009 15:26:12 +0000 (11:26 -0400)]
vos print_addr() must call ubik_VL_GetAddrsU with correct level of indirection

Reported by Marcus Watts.

print_addr() accepts a afsUUID* and must not pass the address of
that variable to ubik_VL_GetAddrsU.

LICENSE IPL10

Reviewed-on: http://gerrit.openafs.org/101
Verified-by: Russ Allbery <rra@stanford.edu>
Reviewed-by: Russ Allbery <rra@stanford.edu>
(cherry picked from commit 86b0f09bddeded9515f39ad17b47a0b4e23a968b)
Change-Id: I07050a8025eae384194615e78d97641d144ce8b2
Reviewed-on: http://gerrit.openafs.org/933
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
16 years agoMake 'fs listquota' output readable for large quota
Hartmut Reuter [Fri, 10 Jul 2009 13:46:09 +0000 (15:46 +0200)]
Make 'fs listquota' output readable for large quota

With the old print format quota and used values became one large
number for quotas in the terabyte range.

Fix alignment of the "no limit" string in the Windows fs command
for volumes with no quota.

Reviewed-on: http://gerrit.openafs.org/34
Verified-by: Russ Allbery <rra@stanford.edu>
Reviewed-by: Russ Allbery <rra@stanford.edu>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
(cherry picked from commit 42d64b5b1f9944fe35bd6358ebeba9a24162243e)
Change-Id: I2dbb186a91df96ec1b0693e8ccd3bda01ac28a48
Reviewed-on: http://gerrit.openafs.org/932
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
16 years agoFix assert message to avoid printing garbage
Michael Meffie [Wed, 15 Jul 2009 16:46:56 +0000 (12:46 -0400)]
Fix assert message to avoid printing garbage

Fix an off by one error in assert() to avoid printing garbage
characters to the log. Remove the newline character generated by
ctime() to match the format generated by the other logging functions.

FIXES 124613

Reviewed-on: http://gerrit.openafs.org/102
Verified-by: Russ Allbery <rra@stanford.edu>
Reviewed-by: Russ Allbery <rra@stanford.edu>
(cherry picked from commit 15d203c7be957ba0e63288e2d95cbd078d94eb21)
Change-Id: I4720285db68f30730f67d62978d777fd6857fc7a
Reviewed-on: http://gerrit.openafs.org/931
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
16 years agoCorrect pointer type of 'next' field within struct volinfo
Jeffrey Altman [Wed, 15 Jul 2009 05:53:32 +0000 (01:53 -0400)]
Correct pointer type of 'next' field within struct volinfo

Reported by Marcus Watts

The next field of struct volinfo is supposed to be a pointer
to a struct volinfo.

LICENSE IPL10

Reviewed-on: http://gerrit.openafs.org/87
Verified-by: Russ Allbery <rra@stanford.edu>
Reviewed-by: Russ Allbery <rra@stanford.edu>
(cherry picked from commit 47e31b020c3393fdbda9dddd99269482693cfb6c)
Change-Id: I719f6417abc68d5ab2595241b247eeb83cf7affc
Reviewed-on: http://gerrit.openafs.org/930
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
16 years agolinux-locking-brace-fix-20090602
Derrick Brashear [Tue, 2 Jun 2009 19:12:10 +0000 (19:12 +0000)]
linux-locking-brace-fix-20090602

LICENSE IPL10

so regardless of which code branch we choose we work
(cherry picked from commit 521f4e6d473335ac8f7f265904bda7840fddad71)

Change-Id: I5ec0ff52ac769a35548b5a583bff4a9b849ab609
Reviewed-on: http://gerrit.openafs.org/929
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
16 years agolinux-byte-range-locks-sensibility-20090526
Simon Wilkinson [Wed, 27 May 2009 01:47:40 +0000 (01:47 +0000)]
linux-byte-range-locks-sensibility-20090526

LICENSE IPL10
FIXES 124766

make our locks work correctly with the linux connectathon lock testing

Change-Id: Ic632c30f597881ae40a8b412a3a1fd99f35ef025
Reviewed-on: http://gerrit.openafs.org/928
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
16 years agorx-pthread-mutex-protects-threadcount-20090128
Jeffrey Altman [Wed, 28 Jan 2009 21:34:33 +0000 (21:34 +0000)]
rx-pthread-mutex-protects-threadcount-20090128

LICENSE BSD

add protection of previously unprotected thread count variables
(cherry picked from commit 226cf894b65c62225785180dfeeed0ec1c1a160b)

Change-Id: Id0e6172ff64175323c7867c0156fabca753d7e97
Reviewed-on: http://gerrit.openafs.org/927
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
16 years agofix-tsfpq-20090210
Jeffrey Altman [Tue, 10 Feb 2009 22:42:40 +0000 (22:42 +0000)]
fix-tsfpq-20090210

LICENSE BSD

avoid transferring more than the number of packets in a queue

Change-Id: I1c2ae660bdaa117aa16f91ca24ce08326bf436a4
Reviewed-on: http://gerrit.openafs.org/926
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
16 years agotsm41-makefile-fix-20090609
Derrick Brashear [Tue, 9 Jun 2009 14:46:51 +0000 (14:46 +0000)]
tsm41-makefile-fix-20090609

LICENSE IPL10

fix form of case statement in makefile for tsm41
(cherry picked from commit a8614747878cedef5e54f10dcc7296034a88e738)

Change-Id: I673e66b9a3e957c20f0d84fe31bee11f26d3e341
Reviewed-on: http://gerrit.openafs.org/925
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
16 years agoSearch for the Linux version in the correct header
Russ Allbery [Tue, 7 Jul 2009 00:19:26 +0000 (17:19 -0700)]
Search for the Linux version in the correct header

src/config/linux-version already had support for handling either versioned
or unversioned kernel source directories, but the grep for UTS_RELEASE
was unconditionally done against the versioned source tree, ignoring the
previous determination of where the header file was.

Instead, check instead the header file location that we'd previously
determined.

This patch has been tested in the Debian OpenAFS 1.4.11~pre3+dfsg-1
package.

Reviewed-on: http://gerrit.openafs.org/4
Reviewed-by: Simon Wilkinson <sxw@inf.ed.ac.uk>
Verified-by: Russ Allbery <rra@stanford.edu>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit ecd3fc42d1d6dca23bb2e2728a0066d3db8eceb6)
Change-Id: I286109d139320f7ce71c5d5265bc3e4a2fca4945
Reviewed-on: http://gerrit.openafs.org/924
Tested-by: Derrick Brashear <shadow@dementia.org>
16 years agorx-user-socket-buffer-sizes-20090110
Jeffrey Altman [Sun, 11 Jan 2009 04:24:37 +0000 (04:24 +0000)]
rx-user-socket-buffer-sizes-20090110

LICENSE MIT

if the socket buffer size specified by the configuration is too large
to be applied, do not drop down immediately to 32766 bytes.  Instead
try increasingly smaller values trying to find the largest one that
works.  use the same value for the send buf size as well.
(cherry picked from commit 5b0e23567e1ed64f448bb3253ad90d39cad31271)

Change-Id: I7cb1ded895458d099be5aeffc712a914193e18c0
Reviewed-on: http://gerrit.openafs.org/922
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
16 years agosalvager-no-chdir-20081108
Steve McIntosh [Sat, 8 Nov 2008 15:58:06 +0000 (15:58 +0000)]
salvager-no-chdir-20081108

LICENSE IPL10
FIXES 123577

make sure salvager cores don't get left in vice partitions
(cherry picked from commit 0ac956b3384842b3c60e72bde78a4baf58a5877f)

Change-Id: I12f34ef66d7783d5615959553749b7a2ec4f2692
Reviewed-on: http://gerrit.openafs.org/921
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
16 years agoasm unexecutable stack
Derrick Brashear [Thu, 12 Nov 2009 00:36:01 +0000 (19:36 -0500)]
asm unexecutable stack

make stack not executable in assembled files

FIXES 125491

Change-Id: I396680b6877843201f6c07d5607385044abd5e74
Reviewed-on: http://gerrit.openafs.org/818
Reviewed-by: Simon Wilkinson <sxw@inf.ed.ac.uk>
Reviewed-by: Russ Allbery <rra@stanford.edu>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 9bfd03d723a9cf17673f40513a7adde1d503bcbc)
Reviewed-on: http://gerrit.openafs.org/976

16 years agorx-rdwr-avoid-free-null-packet-20081026
Jeffrey Altman [Sun, 26 Oct 2008 21:16:57 +0000 (21:16 +0000)]
rx-rdwr-avoid-free-null-packet-20081026

LICENSE MIT

avoid a potential call to rxi_FreePacket with a NULL pointer as input

Change-Id: Id18712f44779dd4e26215049e74d55a0d68d1409
Reviewed-on: http://gerrit.openafs.org/920
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
16 years agorx-change-packet-allocation-calculation-20080925
Jeffrey Altman [Thu, 25 Sep 2008 20:34:41 +0000 (20:34 +0000)]
rx-change-packet-allocation-calculation-20080925

LICENSE IPL10

don't alloc ourselves to death; try harder to manage growth

Change-Id: Idee89b272c46b9d183cc44f6588b3906a0b7aa07
Reviewed-on: http://gerrit.openafs.org/919
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
16 years agorx-buffer-allocation-corrected-20080813
Jeffrey Altman [Thu, 14 Aug 2008 03:27:36 +0000 (03:27 +0000)]
rx-buffer-allocation-corrected-20080813

LICENSE MIT

a corrected version of delta rx-buffer-allocation-20080812
(cherry picked from commit 919fb5e14bdcde66218e64cfdd7fecccab67d8f5)

Change-Id: Idd029c06f4a625b03aef6db56ffd7c006fc36f77
Reviewed-on: http://gerrit.openafs.org/918
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
16 years agoMove afscell to platform/DARWIN
Simon Wilkinson [Thu, 23 Jul 2009 18:27:47 +0000 (19:27 +0100)]
Move afscell to platform/DARWIN

Move our current afscell code into platform/DARWIN so that it's in a
location that can be added to the build, rather than packaging, step

Reviewed-on: http://gerrit.openafs.org/http://gerrit.openafs.org/200
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit b4564fa8254afbfef94915f1051a5ad7ab17b11d)
Change-Id: I2a13a556730cf2bd205a66609bc9cb34b12dcd47
Reviewed-on: http://gerrit.openafs.org/917

16 years agomacos-afscell-configurator-20080423
David Botsch [Fri, 25 Apr 2008 12:39:45 +0000 (12:39 +0000)]
macos-afscell-configurator-20080423

LICENSE IPL10

not ready for release, but, add a tool which installer can run to ask for a cell
name
AUTHOR
LICENSE IPL10

====================
This delta was composed from multiple commits as part of the CVS->Git migration.
The checkin message with each commit was inconsistent.
The following are the additional commit messages.
====================
LICENSE IPL10

not ready for release, but, add a tool which installer can run to ask for a cell
name
(cherry picked from commit b1bf96f7581e58137f49e2b685cf6e91ff4f7dda)

Change-Id: I13ca9268e679e029f97260712f1ac7331fd90b2d
Reviewed-on: http://gerrit.openafs.org/916
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
16 years agoMove end label into correct position
Simon Wilkinson [Sun, 26 Jul 2009 18:23:08 +0000 (19:23 +0100)]
Move end label into correct position

The end label was in the wrong #ifdef block in order to actually be referenced
in the case where USEIFADDR is unset

Reviewed-on: http://gerrit.openafs.org/226
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Jeffrey Altman <jaltman@openafs.org>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
(cherry picked from commit 4c2e426d2dad559e1ed2c2c43d48193400b22c61)
Change-Id: If7a3ed246da58aca60b60dcf5501430acc999b0c
Reviewed-on: http://gerrit.openafs.org/915
Tested-by: Derrick Brashear <shadow@dementia.org>
16 years agoviced: set volume sync data in bulk status rpcs
Jeffrey Altman [Thu, 19 Nov 2009 23:11:06 +0000 (18:11 -0500)]
viced: set volume sync data in bulk status rpcs

The bulkstatus and inlinebulkstatus rpcs have a bug
that prevents the volume sync data from being set.
Currently the data is being set within the for loop
only when i == nfiles.  The conditional of the loop
is i < nfiles so the SetVolumeSync call is never
performed.  This patch changes the test for performing
SetVolumeSync to i == 0.

LICENSE MIT

Change-Id: I17e3980184ec68e38c5186e1c9637ac6e38451fe
Reviewed-on: http://gerrit.openafs.org/856
Reviewed-by: Dan Hyde <drh@umich.edu>
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 13843d852749ba081804f3af368620db7b4b7d7a)
Reviewed-on: http://gerrit.openafs.org/914

16 years agomacos avoid dotunderbar lookups in fakestat mode
Derrick Brashear [Mon, 7 Dec 2009 04:44:53 +0000 (23:44 -0500)]
macos avoid dotunderbar lookups in fakestat mode

cocoa tries to lookup ._ files for every object, possibly generating
AFSDB queries and other fun. avoid them

Change-Id: Id70b6335d4dddcb6d5628a9883b2c81193bb39d7
Reviewed-on: http://gerrit.openafs.org/896
Reviewed-by: Rod Widdowson <rdw@steadingsoftware.com>
Reviewed-by: Simon Wilkinson <sxw@inf.ed.ac.uk>
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 019ae5240691f27beaf583084fc81f4efb84b166)
Reviewed-on: http://gerrit.openafs.org/913

16 years agovos-move-avoid-spurious-unlock-20080424
Derrick Brashear [Thu, 24 Apr 2008 23:44:01 +0000 (23:44 +0000)]
vos-move-avoid-spurious-unlock-20080424

LICENSE IPL10

lightly modified from what Bren Mills submitted; the second unlock call after mfail may be entirely useless.
(cherry picked from commit b87935a4c5f26357e29f1db46eff8b1cf9185f3b)

Change-Id: I82478dabe1df66fc261e8d7c64bb898b3a60d88b
Reviewed-on: http://gerrit.openafs.org/912
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
16 years agoLinux: Fix lock ordering
Simon Wilkinson [Mon, 16 Nov 2009 22:52:01 +0000 (22:52 +0000)]
Linux: Fix lock ordering

The inode mutex (or semaphore) should be held before acquiring the
alloc semaphore. Fix the lock ordering to avoid theoretical deadlocks.

Change-Id: Ifc572083dc92fff51be6785b0bcc92152fab1d73
Reviewed-on: http://gerrit.openafs.org/835
Reviewed-by: Marc Dionne <marc.c.dionne@gmail.com>
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit a2744cab12c87a8c42ba40a9f186a1f05c6886f8)
Reviewed-on: http://gerrit.openafs.org/977

16 years agomacos panic decoder should handle 64 bit kernel in 32 bit mode
Derrick Brashear [Wed, 9 Sep 2009 22:49:29 +0000 (18:49 -0400)]
macos panic decoder should handle 64 bit kernel in 32 bit mode

panic from 64 bit should be decodable in 32 bit mode. make it so. add
-k switch to allow a path to a kernel to be specified.

Reviewed-on: http://gerrit.openafs.org/438
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 754a4b628a14657db2e00931926311a1c703558b)
Change-Id: I6611c2dddca7138d4136f6409b82f3200755f099
Reviewed-on: http://gerrit.openafs.org/910

16 years agopioctl-settoken-malloc-fail-check-20080206
Derrick Brashear [Thu, 6 Mar 2008 16:41:14 +0000 (16:41 +0000)]
pioctl-settoken-malloc-fail-check-20080206

LICENSE IPL10

avoid malloc failure panic (oops)
(cherry picked from commit f58e08baae0a5ee9be516e9e220a12b78e5bf414)

Change-Id: I83b7db7c57d02ce687f9251a21fdc9fca6d6810c
Reviewed-on: http://gerrit.openafs.org/911
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
16 years agoredhat spec dkms don't strip modules
Derrick Brashear [Tue, 1 Sep 2009 15:18:19 +0000 (11:18 -0400)]
redhat spec dkms don't strip modules

provide a debug module which is unstripped. this is necessary for debugging
problems.

Reviewed-on: http://gerrit.openafs.org/391
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit c46689c05ffd56299a12f9883645e8fcf50fa29a)
Change-Id: I64c6970230b9b9b1ad9dcce8736c501f8797f821
Reviewed-on: http://gerrit.openafs.org/909

16 years agoDump all hostFlags in hosts.dump
Andrew Deason [Tue, 24 Nov 2009 21:09:42 +0000 (16:09 -0500)]
Dump all hostFlags in hosts.dump

Currently only certain flags are dumped in hosts.dump. Also dump the
value of hostFlags itself, so we get more information from a host dump.

Reviewed-on: http://gerrit.openafs.org/869
Tested-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Dan Hyde <drh@umich.edu>
Reviewed-by: Alistair Ferguson <alistair.ferguson@mac.com>
Tested-by: Alistair Ferguson <alistair.ferguson@mac.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 3cb49f57a34b42c9efdc24797efda053cd88be80)

Change-Id: Ib6e7df4dcdbf8cbba7bb027ab54b753f2b857326
Reviewed-on: http://gerrit.openafs.org/908
Tested-by: Andrew Deason <adeason@sinenomine.net>
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
16 years agoCorrect duplicate special inodes while salvaging
Andrew Deason [Mon, 26 Oct 2009 19:09:41 +0000 (14:09 -0500)]
Correct duplicate special inodes while salvaging

Right now when the salvager encounters duplicate special inodes for a
volume, it refuses to salvage the volume, presumably because it does not
know which inodes to use when recreating the volume header.

However, this can cause the confusing state where the fileserver and
various volume utilities have no problem with a volume, but the salvager
refuses to salvage it and marks the volume as needing salvage. When
salvaging, if we already have a volume header, and we encounter
duplicate special inodes, it is likely that the special inode referenced
by the volume header is the correct one.

So, instead of erroring out, keep track of which inodes are referenced
in the volume header, and if there are any duplicates, either ignore or
delete the unreferenced ones, depending on the -orphans setting. Also be
a little more verbose when logging errors in this area.

Reviewed-on: http://gerrit.openafs.org/736
Tested-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Alistair Ferguson <alistair.ferguson@mac.com>
Reviewed-by: Steve Simmons <scs@umich.edu>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit d393aabca577917b107afdd42efb40cc2fdac50c)

Change-Id: I80f0666afe552354476bf0d5f85db8076854e974
Reviewed-on: http://gerrit.openafs.org/882
Tested-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
16 years agoshutdown_icl returns void
Michael Meffie [Mon, 30 Nov 2009 23:15:59 +0000 (18:15 -0500)]
shutdown_icl returns void

Remove incorrect return statement from shutdown_icl,
introduced in b7198421a222a06cf5f34c53e516c31f5edf587c
Fix memory allocation warnings at shutdown.

Change-Id: Ib57161cb70152e08c1deba30bc0457efb98ebc97
Reviewed-on: http://gerrit.openafs.org/877
Reviewed-by: Marc Dionne <marc.c.dionne@gmail.com>
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
16 years agoModify Solaris Rx NetIfPoller to avoid Panic
Jeffrey Altman [Wed, 15 Jul 2009 07:58:02 +0000 (03:58 -0400)]
Modify Solaris Rx NetIfPoller to avoid Panic

This patch changes the common error reporting type from CE_PANIC
to CE_WARN and adds appropriate cleanup processing so that we do not
leak resources if an error occurs.

LICENSE MIT
FIXES 124498

Reviewed-on: http://gerrit.openafs.org/97
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit ccb3e316868f381831d9ddda530af83102f67697)

Change-Id: I8e289d256e5cbc3d3724cafe7114a77f0ddd900a
Reviewed-on: http://gerrit.openafs.org/878
Tested-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
16 years agoAvoid IHandle leak when failing to attach volume
Rainer Toebbicke [Fri, 27 Nov 2009 14:03:25 +0000 (15:03 +0100)]
Avoid IHandle leak when failing to attach volume

When a volume fails to attach, ensure it's volume handles
get released before all traces of it are erased. Failure to do so
might cause problems once the volume is salvaged and re-attached.
VReleaseVolumeHandles_r is moved to FreeVolume and no longer called separately.

Change-Id: I2366f13fd9daa6eb8ce3b4240bb1534f14f706c4
Reviewed-on: http://gerrit.openafs.org/874
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
16 years agoCheck for (hostFlags & HOSTDELETED) after h_Lock_r
Jeffrey Altman [Fri, 23 Oct 2009 14:54:35 +0000 (09:54 -0500)]
Check for (hostFlags & HOSTDELETED) after h_Lock_r

Many callers of h_Lock_r do not check if the HOSTDELETED flag is set,
even though it could have been set while waiting for the host lock. Add
checks for it everywhere we call h_Lock_r and we care if the host has
been deleted.

FIXES 125507

Reviewed-on: http://gerrit.openafs.org/716
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit cbe580fee176c9e9e083379129c309fd15d0f24c)

Change-Id: I5eacee7a33f7b1357ec13cfcc4e1b7b4538837f6
Reviewed-on: http://gerrit.openafs.org/776
Tested-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
16 years agoAdd array bounds checking in h_Enumerate
Dan Hyde [Thu, 29 Oct 2009 16:07:47 +0000 (12:07 -0400)]
Add array bounds checking in h_Enumerate

When hostList is not properly NULL-terminated, the current code does
not protect from buffer overflow.  The following patch prevents buffer
overflow, prints a message, and asserts.

On our Linux hosts, we never reached the original assert, as there is
a problem handling the segfault the buffer overflow causes.

FIXES 125506

Reviewed-on: http://gerrit.openafs.org/757
Reviewed-by: Dan Hyde <drh@umich.edu>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 93d48b1735b88b3051357307bdbebf5da9872d69)

Change-Id: Idb920d2bd309b40ae9bebc6972e614ddf9ba8dcc
Reviewed-on: http://gerrit.openafs.org/862
Tested-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
16 years agovolser transaction object race conditions
Michael Meffie [Wed, 18 Nov 2009 15:07:14 +0000 (10:07 -0500)]
volser transaction object race conditions

Fix the transaction object races between VolMonitor and the
volume operation procedures which can cause the volume
server to crash.

Add a per transaction object mutex to safely set the
transaction call pointer and name. Fix VolMonitor to safely
traverse the transaction list and to access the call pointer
and last proc name while copying info to send to the vos
client.  Fix the sleep thread to safely access the last proc
name.

FIXES 125479

Change-Id: I6dffa31a84d98249712dd17aad353f99151b4fd5
Reviewed-on: http://gerrit.openafs.org/619
Reviewed-by: Alistair Ferguson <alistair.ferguson@mac.com>
Reviewed-by: Tom Keiser <tkeiser@sinenomine.net>
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Tested-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
16 years agoMake ktc_curpag also detect ONEGROUP PAG gids
Andrew Deason [Wed, 11 Nov 2009 17:23:49 +0000 (11:23 -0600)]
Make ktc_curpag also detect ONEGROUP PAG gids

ktc_curpag falls back to looking at the group list if the VIOC_GETPAG
pioctl fails. If we're in AFS_LINUX26_ONEGROUP_ENV in the kernel,
though, ktc_curpag still looks for two groups, instead of the one
combined group. Add a check for the big one group in the fallback if
we're on LINUX26.

Reviewed-on: http://gerrit.openafs.org/815
Tested-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Marc Dionne <marc.c.dionne@gmail.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit c53abbb3e8d14643f3f82999cbe24fb12d358ce0)

Change-Id: I771d90546b1aec9f3e84a56a5b6a465e18b1241a
Reviewed-on: http://gerrit.openafs.org/853
Tested-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
16 years agoClean up console message
Simon Wilkinson [Mon, 26 Oct 2009 12:49:11 +0000 (12:49 +0000)]
Clean up console message

Clean up the 'all buffers locked' console message so that it's
clear that it comes from AFS, and so it has a trailing newline.

From a bug report by Rainer Toebbicke to openafs-info

Change-Id: I3f69e57e37a91ae3e6e8822ccfe72dddc06b4359
Reviewed-on: http://gerrit.openafs.org/732
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 4a006f167bf6fe550eac9c96c6fce1f538760709)
Reviewed-on: http://gerrit.openafs.org/823
Reviewed-by: Dan Hyde <drh@umich.edu>
16 years agocm: address race condition in afs_QueueVCB
Michael Meffie [Mon, 9 Nov 2009 21:28:33 +0000 (16:28 -0500)]
cm: address race condition in afs_QueueVCB

Access the vcache callback member after taking
the xvcb lock to avoid the server object from
being freed in FlushServer on another thread.

Eventually, we should have a ref count on
avc->server.

FIXES 125596

Change-Id: I9328a0b3e372353b7812d6e9f2cbea44655a3d58
Reviewed-on: http://gerrit.openafs.org/817
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
16 years agoDo not check *aoutSize in PGetPAG
Andrew Deason [Wed, 11 Nov 2009 16:51:19 +0000 (10:51 -0600)]
Do not check *aoutSize in PGetPAG

*aoutSize is always zero in pioctls, since afs_HandlePioctl handles
checking the output buffer size, and sets outSize to 0 before calling
the pioctl. So, PGetPAG was always returning E2BIG; remove the check to
make it work.

Reviewed-on: http://gerrit.openafs.org/814
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 97d3fcfcd1617bafa6ee62d291f09b2e8bb6daf7)

Change-Id: Icc401904c26027e235ec869e834297861a640d39
Reviewed-on: http://gerrit.openafs.org/816
Reviewed-by: Dan Hyde <drh@umich.edu>
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
16 years agoFix memory allocation warnings at shutdown
Marc Dionne [Sat, 31 Oct 2009 12:54:52 +0000 (08:54 -0400)]
Fix memory allocation warnings at shutdown

At shutdown we check for unfreed memory allocated with AllocSmallSpace
and AllocLargeSpace and complain in the syslog if there are dangling
pieces.  This patch takes care of a few cases that always showed up
as warnings, even after a simple start-stop of the client.

- The cacheInode file needs to be closed before the checks, since it
uses a large piece for its struct file.

- The ICL logging code allocates 6 small pieces that are never freed.
Add a shutdown_icl() function that releases everything.  While we're
at it, correct one place where we allocated with afs_osi_Alloc but
freed with osi_FreeSmallSpace, confusing our accounting.

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

16 years agoLinux: Fix write_begin configure test for recent RHEL kernels
Marc Dionne [Sat, 31 Oct 2009 17:27:18 +0000 (13:27 -0400)]
Linux: Fix write_begin configure test for recent RHEL kernels

Recent RHEL kernels now define simple_write_begin, which was used as
a test for the write_begin address_space op.  This makes the test
succeed when it shouldn't, and breaks the build.
Rewrite the test to actually check the address_space operation.

Change-Id: Idac9b318ff716b61bf8ca4508d2dbdbfbad5b50d
Reviewed-on: http://gerrit.openafs.org/759
Reviewed-by: Simon Wilkinson <sxw@inf.ed.ac.uk>
Tested-by: Marc Dionne <marc.c.dionne@gmail.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Reviewed-on: http://gerrit.openafs.org/766
Tested-by: Derrick Brashear <shadow@dementia.org>
16 years agomacos 10.6 64bit trace fixes
Derrick Brashear [Wed, 4 Nov 2009 00:25:23 +0000 (19:25 -0500)]
macos 10.6 64bit trace fixes

the 64 bit pointer massaging was incomplete for kernel
tracing on macos. add in the missing cases.

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

16 years ago.gitignore for src/pinstall
Russ Allbery [Wed, 4 Nov 2009 05:00:44 +0000 (21:00 -0800)]
.gitignore for src/pinstall

Ignore the pinstall binary in src/pinstall.  This is a 1.4-specific
change since pinstall has been removed from master.

Change-Id: I92ea9745174268e60ceb2b7aeff56d1263ff9072
Reviewed-on: http://gerrit.openafs.org/779
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
16 years agoAlways use kbuild for all Linux kernel configure probes
Aaron M. Ucko [Tue, 7 Jul 2009 00:41:49 +0000 (17:41 -0700)]
Always use kbuild for all Linux kernel configure probes

Some Linux kernel probes for the existence of header files were done
with file existence checks (test -f).  This breaks if the kernel build
system is stacking multiple directories of headers together with
compile-time -I include path options, as is the case for the current
Debian Linux header packages.  Instead, always use kbuild to check
whether a kernel header is available.

Similarly, use AC_TRY_KBUILD instead of AC_TRY_COMPILE when checking
for an SELinux kernel, since AC_TRY_COMPILE doesn't call into kbuild
and won't get the correct kernel header paths.

This is part of the fix for Debian Bug#521745 and has been included in
the Debian package since 1.4.10+dfsg1-1.

Reviewed-on: http://gerrit.openafs.org/5
Verified-by: Russ Allbery <rra@stanford.edu>
Verified-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit b7942950c2d1fcaa1e94ebbe91c8d2a9a7670cdb)
Change-Id: If42353162712271d88ffc0d1c743b903c03c75c6
Reviewed-on: http://gerrit.openafs.org/777
Tested-by: Russ Allbery <rra@stanford.edu>
16 years agoLinux - Fix disk cache access for selinux/AppArmor constrained processes
Marc Dionne [Wed, 28 Oct 2009 21:54:32 +0000 (17:54 -0400)]
Linux - Fix disk cache access for selinux/AppArmor constrained processes

Preserve the credentials used for cache initialisation and use then
whenever disk cache files are opened.  This takes advantage of the
credentials separation work from David Howells available in kernels
2.6.29 and above.
Access to cache files was done under the security context of the
user process, causing processes constrained by selinux or AppArmor to
fail to access AFS cache files and causing the cache manager to panic.

Besides the RT tickets, should also fix the following Ubuntu bugs:
 415766 429260 457779 459299

FIXES 92944,125544

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

16 years agoBuild shadow header files when necessary on Linux
Aaron M. Ucko [Tue, 7 Jul 2009 00:51:00 +0000 (17:51 -0700)]
Build shadow header files when necessary on Linux

The current kernel module build infrastructure relies on the ability to
create symlinks from known directory names used in the AFS code to the
actual locations of the kernel header files.  This breaks if there is no
single kernel header tree and instead multiple trees are layered together
by kbuild using compile-time -I include paths.

Attempt to detect this case by seeing if linux/types.h is in the kernel
header directory where we expect it.  If not, rather than creating
symlinks for h, sys, and netinet, create directories and populate them
with single-line headers that just include the corresponding linux/*.h
header.  The list of headers for which to do this is generated dynamically
by analyzing the AFS kernel source code and looking for relevant #include
directives.

This patch has been part of the Debian OpenAFS package since
1.4.10+dfsg1-1.  The check for whether we have layered kernel header trees
may be specific to Debian and may require modification later if other
Linux distributions do something similar.

FIXES 124583

Reviewed-on: http://gerrit.openafs.org/6
Verified-by: Russ Allbery <rra@stanford.edu>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Verified-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 01d390d0d022309d06760aac1373829a35a6d79c)
Change-Id: I5a5ba79e88f8aafc07502c7d1c82058184c01da0
Reviewed-on: http://gerrit.openafs.org/775
Tested-by: Russ Allbery <rra@stanford.edu>
16 years agoMake afsd.pod reflect reality
Simon Wilkinson [Wed, 28 Oct 2009 11:12:18 +0000 (11:12 +0000)]
Make afsd.pod reflect reality

9d396c4916fdac64fcface30e6637ca6e2911203 (from 2005) introduced
autotuning for afsd, and changed some of the defaults which aren't
autotuned. Update the afsd man page to reflect the autotuning, and
the new defaults.

Change-Id: Iea2035743cb45cca1c249bc2e838405039ad7d3a
Reviewed-on: http://gerrit.openafs.org/744
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 7833e472b9585ee1a7085ca704e642a73ca969a5)
Reviewed-on: http://gerrit.openafs.org/773

16 years agoAvoid using released hosts
Andrew Deason [Wed, 28 Oct 2009 16:06:47 +0000 (11:06 -0500)]
Avoid using released hosts

Since h_Release_r has the possibility of freeing a host, we should not
be using a host after it has been released. A few places can still use a
released host, potentially causing heap corruption, double frees, and
generally weird behavior.

So either move calls of h_Release_r until after we finish using a host,
or make sure to set the pointer to NULL after it has been released.

Reviewed-on: http://gerrit.openafs.org/747
Tested-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Dan Hyde <drh@umich.edu>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 416e2f11c35f5d55f91090b30b4db1a9bf6d6e07)

Change-Id: I91bd09c3e6d87476de8c66c2eb710c0fd424cadd
Reviewed-on: http://gerrit.openafs.org/762
Tested-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
16 years agoProtect rx_call iovq from simultaneous attempts to empty it
Jeffrey Altman [Mon, 27 Jul 2009 16:54:16 +0000 (12:54 -0400)]
Protect rx_call iovq from simultaneous attempts to empty it

The iovq queue is not safe to clear without holding the call lock.

FIXES 125110

LICENSE BSD

Reviewed-on: http://gerrit.openafs.org/242
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Hans-Werner Paulsen <hans@MPA-Garching.MPG.DE>
Tested-by: Jeffrey Altman <jaltman@openafs.org>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
(cherry picked from commit 4dadd24ba8ce72fd655e29d74801f27e9e148b01)
Change-Id: Ifdb1f420f07f9c55d56fe24899e3a040a77db6a9
Reviewed-on: http://gerrit.openafs.org/763
Tested-by: Andrew Deason <adeason@sinenomine.net>
16 years agoDec old special inodes in inode convertROtoRW
Andrew Deason [Mon, 26 Oct 2009 19:04:48 +0000 (14:04 -0500)]
Dec old special inodes in inode convertROtoRW

The convertROtoRW code for the inode fileserver makes copies of the
volume's special inodes, but leaves the old (RO) inodes around. If the
RO is created again, this will result in duplicate special inodes for
the same volume, which freaks out the salvager (and possibly other
things).

So IH_DEC the old RO special inodes after converting, so they go away.

Reviewed-on: http://gerrit.openafs.org/735
Tested-by: Andrew Deason <adeason@sinenomine.net>
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit dbe3b7b8eeb4a010f82248befc6167b3b5ed9606)

Change-Id: Id545befbb38f60c262ab23b5eb5dd54439008760
Reviewed-on: http://gerrit.openafs.org/761
Tested-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
16 years agoLinux: Avoid deadlock in readdir - release GLOCK for filldir
Marc Dionne [Sun, 1 Nov 2009 21:03:17 +0000 (16:03 -0500)]
Linux: Avoid deadlock in readdir - release GLOCK for filldir

The GLOCK is held while calling the filldir function in afs_linux_readdir().
If this function causes a page fault, and in particular if this fault
involves AFS, we're in trouble as we'll eventually deadlock in the
readpage code.
A simple test case for this is to call the getdents syscall on an
AFS directory with a buffer that is part of an mmaped AFS file.

This is already the case in the master branch; the change was part of
the merge of the NFS translator code.

FIXES 125555

Change-Id: I829838e45f94921d22335154587216f7842e3955
Reviewed-on: http://gerrit.openafs.org/760
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>
16 years agoLinux: 2.6.32 - Adapt to writeback changes
Marc Dionne [Thu, 17 Sep 2009 20:57:52 +0000 (16:57 -0400)]
Linux: 2.6.32 - Adapt to writeback changes

Adapt to the writeback changes in kernel 2.6.32
- Since we define our own backing_dev, it needs to be registered with
the writeback code and attached to the super_block.  Otherwise it
might get ignored when writeback is needed.
- Each backing_dev now gets its own kernel thread.  The name of the
thread is based on the registered name - the openafs one will appear
as "flush-afs".

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

16 years agoAvoid prematurely destroying callback_rxcon
Andrew Deason [Thu, 22 Oct 2009 16:12:30 +0000 (11:12 -0500)]
Avoid prematurely destroying callback_rxcon

Currently, h_GetHost_r and removeAddress_r can destroy the
callback_rxcon of a host. Having a NULL callback_rxcon can cause
segfaults in code that does not properly check if a host has been
HOSTDELETED before trying to use it.

Although such code is incorrect and should be fixed, we can still avoid
a segfault in those situations by not destroying callback_rxcon until we
destroy the host itself. This just prevents destroying callback_rxcon in
h_GetHost_r and removeAddress_r, leaving it to h_TossStuff_r to destroy
when it destroys the host.

Reviewed-on: http://gerrit.openafs.org/717
Tested-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit bbcfbe1a04eda9e75b1643be88cf9d4842a8aa86)

Change-Id: I4d44fca9b79b656bc70f8108616f23f2dfaa353f
Reviewed-on: http://gerrit.openafs.org/749
Tested-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
16 years agoHPUX: Do not sigwait on critical signals
Andrew Deason [Tue, 20 Oct 2009 17:43:42 +0000 (12:43 -0500)]
HPUX: Do not sigwait on critical signals

On HPUX, it is possible for 'critical' signals such as SEGV, ABRT, etc
to be delivered to the softsig thread when we sigwait(). The current
code marks these as 'fatal' and just exit(0)s when they are received,
preventing us from getting cores in the case of a SEGV, ABRT, etc.

To work around this and keep behavior on other platforms the same, just
do not wait on 'critical' signals on HPUX in the softsig thread.

Reviewed-on: http://gerrit.openafs.org/693
Tested-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit bf9c51a4e13b3e621b99866e9be53c8fe35a39fe)
Reviewed-on: http://gerrit.openafs.org/702

16 years agoUse f_bsize for ZFS afs_fsfragsize
Andrew Deason [Thu, 24 Sep 2009 17:02:55 +0000 (12:02 -0500)]
Use f_bsize for ZFS afs_fsfragsize

On ZFS, the disk space files can use up can be rounded up to the next
recordsize boundary if they've been truncated. This can cause the Unix CM
to mis-estimate cache usage, since it truncates files fairly often, and
assumes the disk space used is the file length rounded up to the next
f_frsize.

Since the ZFS recordsize is available via the statvfs f_bsize, just
round up to that instead. There is still some additional file metadata
that takes up some additional space on disk, but according to ZFS people
I've spoken to about this, it cannot be known in advance. In practice,
the additional metadata storage doesn't appear to exceed about 10% of
the data storage, which should be acceptable.

FIXES 125365

Reviewed-on: http://gerrit.openafs.org/650
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Andrew Deason <adeason@sinenomine.net>
(cherry picked from commit 78d8b8c5c19b8d6873b2d62beaa60cc7acba1840)
Reviewed-on: http://gerrit.openafs.org/655
Tested-by: Derrick Brashear <shadow@dementia.org>
16 years agoRemove extra arguments to afs_syscall_call
Andrew Deason [Tue, 13 Oct 2009 16:20:51 +0000 (11:20 -0500)]
Remove extra arguments to afs_syscall_call

Someone appears to have mistaken afs_syscall_call for
afs_syscall_pioctl, and passed rvp and CRED to afs_syscall_call on
solaris (afs_syscall_call always takes 6 arguments; afs_syscall_pioctl
takes various arguments depending on the platform). After
b1ff4a0b1115f5739c0365cc963189b1f931971f, this breaks the client build
on AFS_SUN5_ENV, but only because it added prototypes for
afs_syscall_call; it looks like it's always been wrong, but it was never
noticed.

Reviewed-on: http://gerrit.openafs.org/653
Tested-by: Andrew Deason <adeason@sinenomine.net>
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
16 years agoMake namei_ops.c build again
Andrew Deason [Tue, 13 Oct 2009 15:56:47 +0000 (10:56 -0500)]
Make namei_ops.c build again

Commit 10441428634e6f474457a1fbf38ea693279d1ad1 used a 1.5-only
function, so did not build on 1.4 (sorry). Fix that.

Reviewed-on: http://gerrit.openafs.org/652
Tested-by: Andrew Deason <adeason@sinenomine.net>
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
16 years agoMake namei convertROtoRW'd volumes usable
Andrew Deason [Wed, 7 Oct 2009 17:14:11 +0000 (12:14 -0500)]
Make namei convertROtoRW'd volumes usable

Right now, if you convertROtoRW a volume on namei, the converted volume
appears to need a salvage before it is usable, and the header of the old
(now empty) RO volume is kept around. Fix this:

 -- Set inUse = 0 on the converted volume, so the fileserver will be
    able to attach the volume when we give it back

 -- Unlink the RO header file, instead of trying to unlink the
    VI_VOLINFO file twice

 -- Log the actual error code (errno) in the error message for the last
    unlink

Reviewed-on: http://gerrit.openafs.org/591
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 906403c6d770026fd9da606ea468e47ee911f896)
Reviewed-on: http://gerrit.openafs.org/613

16 years agoviced cap fetchdata len to avoid negative
Derrick Brashear [Fri, 25 Sep 2009 07:15:40 +0000 (03:15 -0400)]
viced cap fetchdata len to avoid negative

when trying to read from a short or zero length file,
it's possible for sanity checking to knock the length below
zero. set a floor at zero.

Reviewed-on: http://gerrit.openafs.org/494
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 529d487d65d8561f5d0a43a4dc71f72b86efd975)
Reviewed-on: http://gerrit.openafs.org/500

16 years agoh_GetHost_r cleanup cases
Russ Allbery [Sat, 26 Sep 2009 00:50:54 +0000 (17:50 -0700)]
h_GetHost_r cleanup cases

avoid potentially leaking a cb_in or a capabilities blob;
use a common exit function and free when these were left set.

Reviewed-on: http://gerrit.openafs.org/496
Tested-by: Alistair Ferguson <alistair.ferguson@mac.com>
Reviewed-by: Alistair Ferguson <alistair.ferguson@mac.com>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
(cherry picked from commit 5d765426e597c60228e66bddaa21bf2453c74a85)
Reviewed-on: http://gerrit.openafs.org/497
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
16 years agoImplement _PC_FILESIZEBITS for solaris pathconf
Andrew Deason [Mon, 21 Sep 2009 21:57:01 +0000 (16:57 -0500)]
Implement _PC_FILESIZEBITS for solaris pathconf

Using recent NFS clients and servers with the translator under Solaris
causes AFS to be queried for the _PC_FILESIZEBITS pathconf value. Right
now we don't implement it and return EINVAL, causing at least some
modern NFS clients to be unable to mount AFS via the translator on at
least some modern NFS servers.

So, return _PC_FILESIZEBITS as either 32 or 64, depending on whether we
are a 64-bit client or not.

Reviewed-on: http://gerrit.openafs.org/481
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 40b18318e4a04a323dbdd9e3c4a73d3b2e92104d)
Reviewed-on: http://gerrit.openafs.org/490

16 years agoAdd automatic sysname detection for ARM Linux
Russ Allbery [Sat, 22 Aug 2009 01:37:41 +0000 (18:37 -0700)]
Add automatic sysname detection for ARM Linux

Add arm*-linux* to the case statement that attempts to automatically
determine the AFS sysname, similar to the other Linux sysname
determination cases.

Reviewed-on: http://gerrit.openafs.org/334
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit a59df36211d6bc641eeec6d8fd8876a98ce3600a)
Reviewed-on: http://gerrit.openafs.org/462

16 years agofileserver should actually retry VL_RegisterAddrs on failure
Derrick Brashear [Mon, 3 Aug 2009 16:17:14 +0000 (12:17 -0400)]
fileserver should actually retry VL_RegisterAddrs on failure

currently the background daemon logic for retrying was never triggered.
easy enough fix: set FS_registered to 1 so the loop retries

Reviewed-on: http://gerrit.openafs.org/266
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 160aff88be210a8141b67a54583aed7387d8bffc)
Reviewed-on: http://gerrit.openafs.org/459

16 years agoInit the vrequest structure correctly
Rainer Toebbicke [Mon, 14 Sep 2009 12:53:56 +0000 (13:53 +0100)]
Init the vrequest structure correctly

FIXES 125355
(1.4.x only)

afs_InitReq fails to initialize the "flags" field of the vrequest structure.

Consequently the logic involving (flags & O_NONBLOCK) in afs_Analyze leads to
unpredictable results. afs_InitReq should initialize the complete vrequest
structure.

Reviewed-on: http://gerrit.openafs.org/457
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
16 years agoUpdate accessDate on volume access
Andrew Deason [Thu, 3 Sep 2009 19:43:28 +0000 (14:43 -0500)]
Update accessDate on volume access

Right now accessDate is simply never updated, so the last access time
for a volume is never reported. Simply update the field in
VBumpVolumeUsage_r, so we track the last time the volume was accessed.

Note that this does not increase disk writes to the volume header; the
performance impact is effectively nil.

Reviewed-on: http://gerrit.openafs.org/385
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 5d9c767ac55b2d1b8f5b87dc9ced63e282af7bac)
Reviewed-on: http://gerrit.openafs.org/398

16 years agoFixed out-of-tree builds.
Felix Frank [Wed, 26 Aug 2009 18:34:01 +0000 (20:34 +0200)]
Fixed out-of-tree builds.

Fix a minor error that originates from replacing Makefile.version.CML
with Makefile.version.CML.in

(cherry picked from commit5bc9641620d8e1c56a4af6857cb4c79109c79194)

Reviewed-on: http://gerrit.openafs.org/342
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
16 years agoBuild on linux 2.4 again
Michael Meffie [Fri, 17 Jul 2009 15:06:34 +0000 (11:06 -0400)]
Build on linux 2.4 again

Add missing conditional to fix building on
linux 2.4.

FIXES 125120

Reviewed-on: http://gerrit.openafs.org/http://gerrit.openafs.org/148
Tested-by: Simon Wilkinson <sxw@inf.ed.ac.uk>
Reviewed-by: Simon Wilkinson <sxw@inf.ed.ac.uk>
Tested-by: Russ Allbery <rra@stanford.edu>
Reviewed-by: Russ Allbery <rra@stanford.edu>
(cherry picked from commit f6e46babd8e3a0d51d31ae381748516330f5b84d)
Reviewed-on: http://gerrit.openafs.org/386
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
16 years agomacos 10.5 doesn't support compiler kext flag
Derrick Brashear [Fri, 28 Aug 2009 05:01:46 +0000 (01:01 -0400)]
macos 10.5 doesn't support compiler kext flag

-kext was added in later xcodes; it's safer to just assume we don't
have it.
(cherry picked from commit eefb4d83c5ee7fbf3b575773eeec2b126373557a)

Reviewed-on: http://gerrit.openafs.org/366
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
16 years agoupdate decode-panic for 10.6
Derrick Brashear [Thu, 27 Aug 2009 19:47:58 +0000 (15:47 -0400)]
update decode-panic for 10.6

how panics get reported changed in 10.6. also, the 64 bit universal kext
means we don't know what the last boot was.

Reviewed-on: http://gerrit.openafs.org/353
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit a747f5951b920dfb6d77465de6ca8ff54bae1706)
Reviewed-on: http://gerrit.openafs.org/363

16 years agomacos 10.6 64 bit support
Derrick Brashear [Wed, 26 Aug 2009 21:34:50 +0000 (17:34 -0400)]
macos 10.6 64 bit support

support 64 bit userland with 32 bit kernel, and
32 and 64 bit userland with 64 kit kernel

Reviewed-on: http://gerrit.openafs.org/343
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 81099c479e148a103dcf9f4def125b28e989107c)
Reviewed-on: http://gerrit.openafs.org/362

16 years agomacos rc script server handling
Derrick Brashear [Wed, 26 Aug 2009 19:15:27 +0000 (15:15 -0400)]
macos rc script server handling

only start bosserver if its configured. shut it down if we (likely) started it

Reviewed-on: http://gerrit.openafs.org/344
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 9473089bdf1997b2f43e3ea368907c6cdc0fa582)
Reviewed-on: http://gerrit.openafs.org/361

16 years agomacos 10.6 updates
Derrick Brashear [Fri, 14 Aug 2009 16:06:03 +0000 (12:06 -0400)]
macos 10.6 updates

cope with mixed 32/64 environment provided by macos 10.6. build needed
stuff for audit logs in shlibafsauthent.

Reviewed-on: http://gerrit.openafs.org/310
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 3a48ae3e243b695ac5bb3b35aa3b09641db1af3b)
Reviewed-on: http://gerrit.openafs.org/360

16 years agomacos 10.6 package naming
Derrick Brashear [Thu, 30 Jul 2009 02:56:08 +0000 (22:56 -0400)]
macos 10.6 package naming

call the dmg Snowleopard for 10.6.

Reviewed-on: http://gerrit.openafs.org/252
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit e18216b91fa7171efdf796908ce2e98e7bc42f11)
Reviewed-on: http://gerrit.openafs.org/359

16 years agomacos 10.6 amd64 kmod build fix
Derrick Brashear [Thu, 30 Jul 2009 02:14:01 +0000 (22:14 -0400)]
macos 10.6 amd64 kmod build fix

make the ARCHFLAGS support for amd64 work correctly by grepping for the correct thing

Reviewed-on: http://gerrit.openafs.org/250
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 6bec05a874035b30a1b7d5119a053f550adeba4d)
Reviewed-on: http://gerrit.openafs.org/358

16 years agomacos 10.6 pam support
Derrick Brashear [Wed, 29 Jul 2009 21:23:14 +0000 (17:23 -0400)]
macos 10.6 pam support

Make pam module compile on 10.6. Not tested yet.

Reviewed-on: http://gerrit.openafs.org/249
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 5593ff360c7a8f9f69cebda0cb2e2909ff2f31b4)
Reviewed-on: http://gerrit.openafs.org/357

16 years agoOSX lock initialization cleanup
Derrick Brashear [Tue, 21 Jul 2009 21:09:39 +0000 (17:09 -0400)]
OSX lock initialization cleanup

Move GLOCK creation before other things at modload time. Also
remove unused rwlock support from rx kmutex package.

Reviewed-on: http://gerrit.openafs.org/http://gerrit.openafs.org/170
Reviewed-by: Simon Wilkinson <sxw@inf.ed.ac.uk>
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 322a7a854b348e68b0bc49f5ad37049af188518f)
Reviewed-on: http://gerrit.openafs.org/356

16 years agoMacOS 10.6 support update
Derrick Brashear [Wed, 15 Jul 2009 18:57:56 +0000 (14:57 -0400)]
MacOS 10.6 support update

Make things build on MacOS 10.6 again. Don't break 10.5 build.
Fix an error in the MacOS port which was left from previous head.

Reviewed-on: http://gerrit.openafs.org/96
Verified-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Russ Allbery <rra@stanford.edu>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 1d1ae6195bd03c4348a57914cf892e06b507d855)
Reviewed-on: http://gerrit.openafs.org/355
Tested-by: Derrick Brashear <shadow@dementia.org>
16 years agoAdd additional vlprocs safety checks
Andrew Deason [Mon, 20 Jul 2009 17:31:44 +0000 (12:31 -0500)]
Add additional vlprocs safety checks

This adds additional safety checks to the vlserver's implementation of
the VL_CreateEntry, VL_ReplaceEntry, and VL_UpdateEntry RPCs. Now in all
three of these, any new volume ID that would be added to the VLDB or
that would be newly referenced in a VLDB entry is checked against
duplication in other entries. Additionally, any new volume names added
to the VLDB (either by creation, or modifying an existing volume) are
checked against duplication. This should make it impossible for clients
to make a volume ID or volume name correspond to multiple volume groups
(either conceptually or literally in the vldb).

This also alters the vlserver's implementation of the VL_GetNewVolumeId
RPC such that the vlserver increments maxvolid until the range of volume
IDs [*newvolumeid, *newvolumeid+bumpcount) is unused. 'vos' is modified
to only allocate one new volume id at a time, so we don't skip over
potentially-usable vol ids.

Reviewed-on: http://gerrit.openafs.org/158
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit ef7e0d64e7c29675405299f36ee3b7343b31cb35)
Reviewed-on: http://gerrit.openafs.org/280

16 years agoAllow specifying vos create/addsite volume IDs
Andrew Deason [Mon, 6 Jul 2009 15:29:20 +0000 (10:29 -0500)]
Allow specifying vos create/addsite volume IDs

This adds the -id option to 'vos create', and the -roid option to 'vos
create' and 'vos addsite'. This allows the user to manually specify the
volume IDs that a new RW or RO volume will get (or explicitly specify
that an RO volume ID should be unset), instead of always relying on the
volume IDs retrieved from the vlserver.

Reviewed-on: http://gerrit.openafs.org/157
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 29a5ddf1ddc05dd1ea826220a424f4f6650cc0c7)
Reviewed-on: http://gerrit.openafs.org/275

16 years agoIgnore SIGSYS when issuing pioctl syscall
Andrew Deason [Tue, 14 Jul 2009 16:29:01 +0000 (11:29 -0500)]
Ignore SIGSYS when issuing pioctl syscall

Ignore SIGSYS when we issue the pioctl syscall, so we don't dump core
when the kernel module hasn't yet been installed on several platforms.
Also, restore the old SIGSYS signal handler afterwards, so we don't
cause any side-effects.

Reviewed-on: http://gerrit.openafs.org/81
Verified-by: Andrew Deason <adeason@sinenomine.net>
Verified-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Russ Allbery <rra@stanford.edu>
(cherry picked from commit 4f36dd089a9c7187f94f77516a486245c057f7f4)
Reviewed-on: http://gerrit.openafs.org/274
Tested-by: Andrew Deason <adeason@sinenomine.net>
16 years agoCorrecting formatting typo in vos addsite manpage
Andrew Deason [Wed, 8 Jul 2009 21:15:37 +0000 (16:15 -0500)]
Correcting formatting typo in vos addsite manpage

Reviewed-on: http://gerrit.openafs.org/12
Verified-by: Russ Allbery <rra@stanford.edu>
Reviewed-by: Russ Allbery <rra@stanford.edu>
(cherry picked from commit 722070a5c6b1c87cb8c80e8938464183dab01c8f)
Reviewed-on: http://gerrit.openafs.org/273
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
16 years agoAlways display vnode accesses in vos output
Andrew Deason [Tue, 7 Jul 2009 22:34:17 +0000 (17:34 -0500)]
Always display vnode accesses in vos output

Vos was not displaying the "N accesses in the past day (i.e., vnode
references)" message when updateDate was unset. Fix that.

FIXES 125064

Reviewed-on: http://gerrit.openafs.org/9
Verified-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Reviewed-by: Simon Wilkinson <sxw@inf.ed.ac.uk>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit f52b97b76cba008c9aa6ae843869c95d83fbd9f9)
Reviewed-on: http://gerrit.openafs.org/272
Tested-by: Derrick Brashear <shadow@dementia.org>
16 years agoFixing manpage for vos addsite -valid
Andrew Deason [Wed, 8 Jul 2009 21:07:58 +0000 (16:07 -0500)]
Fixing manpage for vos addsite -valid

The -valid switch to vos addsite doesn't take an argument, and it is
optional. Correcting documentation to reflect that.

Reviewed-on: http://gerrit.openafs.org/11
Verified-by: Russ Allbery <rra@stanford.edu>
Reviewed-by: Russ Allbery <rra@stanford.edu>
(cherry picked from commit 7488aeef5cfd58935fe4a6a07810c8d757dd98a3)
Reviewed-on: http://gerrit.openafs.org/271
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
16 years agoMake ktc_curpag generally available
Russ Allbery [Sun, 12 Jul 2009 18:26:03 +0000 (11:26 -0700)]
Make ktc_curpag generally available

ktc_curpag isn't specific to a Kerberos v4 environment, so move it outside
the AFS_KERBEROS_ENV #ifdef.  Add it to the auth.h header and to the
exports from the shared libafsauthent.

FIXES 125155

Reviewed-on: http://gerrit.openafs.org/64
Verified-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit cd37fd33f70c2196ff64188e32ff759590cb3748)
Reviewed-on: http://gerrit.openafs.org/208
Tested-by: Derrick Brashear <shadow@dementia.org>
16 years agoFix afs_GetVolume() for non-root dynroot FIDs
Jeffrey Hutzelman [Wed, 22 Jul 2009 14:19:28 +0000 (10:19 -0400)]
Fix afs_GetVolume() for non-root dynroot FIDs

Make afs_GetVolume() correctly handle requests for fids which are in
the dynroot cell but are not the root of the dynamic root volume.  This
is necessary to allow dynamic root mount points to be looked up and
followed in situations where the dynroot volume is not in the volcache,
but its root vnode is in the vcache.

Reviewed-on: http://gerrit.openafs.org/http://gerrit.openafs.org/180
Tested-by: Jeffrey Hutzelman <jhutz@cmu.edu>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
16 years agoRemove the RCSID macro
Simon Wilkinson [Tue, 21 Jul 2009 23:04:24 +0000 (00:04 +0100)]
Remove the RCSID macro

The move to git means that we can no longer populate the RCSID
macro in the way that it was used with CVS. This patch simply
removes the macro from every file, except where it contains
information from upstream (and it's in a comment).

Reviewed-on: http://gerrit.openafs.org/14
Verified-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 3bb5fa5f1b3dc13ab20ed026c7ea64e11388b9c9)
Reviewed-on: http://gerrit.openafs.org/http://gerrit.openafs.org/174
Tested-by: Derrick Brashear <shadow@dementia.org>