openafs.git
16 years agowindows-lanahelper-20080128
Jeffrey Altman [Tue, 29 Jan 2008 00:20:33 +0000]
windows-lanahelper-20080128

LICENSE MIT

The algorithms that were used to produce a Netbios name were broken.
The name that was produced when the hostname was too long was in fact
longer than the maximum permitted netbios name.

Also, the "NetbiosName" value was not used as a suffix when the loopback
adapter was not installed.  The hardcoded string "AFS" was used instead.

16 years agowindows-network-type-allocation-20080128
Jeffrey Altman [Mon, 28 Jan 2008 19:49:51 +0000]
windows-network-type-allocation-20080128

LICENSE MIT

Microsoft has defined for us:

#define     WNNC_NET_OPENAFS     0x00390000

16 years agorevert-linux-2624-rc5-updates-20080127
Derrick Brashear [Mon, 28 Jan 2008 19:29:49 +0000]
revert-linux-2624-rc5-updates-20080127

LICENSE IPL10
FIXES 83716

the generic 2.6.24 patch should address all this.

16 years agosysctl-table-checking-modpost-fun-fun-20080127
Marc Dionne [Mon, 28 Jan 2008 19:13:46 +0000]
sysctl-table-checking-modpost-fun-fun-20080127

LICENSE IPL10
FIXES 83890

try again to do something sensible so we don't default wrong

16 years agowindows-freelance-improved-dfs-handling-20080127
Jeffrey Altman [Mon, 28 Jan 2008 07:22:32 +0000]
windows-freelance-improved-dfs-handling-20080127

LICENSE MIT

Cell names are published as share names.  As a result they are searched
for as part of the Dfs Referral evaluation.  If share "foo" can not be
reached, the CIFS client will fallback to searching for "fo" as well.

Since the freelance client automatically adds a symlink for prefixes
of the cell name, this results in both "foo" and "fo" being added to
the freelance root.afs volume.  This patch prevents that negative side
effect.

16 years agowindows-afskfw-20080127
Jeffrey Altman [Mon, 28 Jan 2008 07:12:09 +0000]
windows-afskfw-20080127

LICENSE MIT

when tracking ccache names be sure to include the cache type prefix.

16 years agoafsdb-fix-20080126
Derrick Brashear [Mon, 28 Jan 2008 01:37:38 +0000]
afsdb-fix-20080126

LICENSE IPL10

pull bugfix from 1.4

16 years agomacos-panic-decoder-20080127
Jason Edgecombe [Sun, 27 Jan 2008 18:44:28 +0000]
macos-panic-decoder-20080127

LICENSE BSD

panic log decoder from Jason. Still needs some work for Leopard but we should
be able to make a go of this

16 years agoredhat-support-dkms-20080124
Derrick Brashear [Thu, 24 Jan 2008 23:55:02 +0000]
redhat-support-dkms-20080124

LICENSE IPL10

attempt to provide dkms support.
this does work on my fc8 test host. it may not work in all cases.

16 years agotests-update-20080124
Mike Meffie [Thu, 24 Jan 2008 23:44:38 +0000]
tests-update-20080124

LICENSE IPL10

update test scripting

16 years agorxkad-v5-dot-check-20080124
Jeffrey Altman [Thu, 24 Jan 2008 16:05:58 +0000]
rxkad-v5-dot-check-20080124

LICENSE MIT

Export rx_SetSecurityConfiguration on Windows

16 years agowindows-get-volume-no-reset-flag-20080124
Jeffrey Altman [Thu, 24 Jan 2008 15:29:56 +0000]
windows-get-volume-no-reset-flag-20080124

LICENSE MIT

There are circumstances where a volume object is being accessed and the
volume is marked indicating that the volume location information is out
of date but where it is also pointless and perhaps dangerous to block
waiting for the rpc to complete.  One example is when processing the
cmdebug requests.  If we know that we are not going to use the volume
object to contact a server, then we can now set the CM_GETVOL_FLAG_NO_RESET
flag.

16 years agowindows-symlink-dot-dot-20080124
Jeffrey Altman [Thu, 24 Jan 2008 15:17:57 +0000]
windows-symlink-dot-dot-20080124

LICENSE MIT

when moving up in the directory tree we search the recorded fid list to
find a matching fid that we have already crossed.  we must also reset
the fid count based upon what we discover.

16 years agoredhat-spec-more-arches-20080123
Derrick Brashear [Wed, 23 Jan 2008 21:37:01 +0000]
redhat-spec-more-arches-20080123

LICENSE IPL10

support sprc, sparc64, ppc, ppc64, s390, s390x. we should be able to cope with
all these. if not, fix it.

16 years agolinux-key-type-detection-once-20080123
Derrick Brashear [Wed, 23 Jan 2008 13:47:23 +0000]
linux-key-type-detection-once-20080123

LICENSE IPL10

doubled configure test from 2 sources.

16 years agoredhat-kmodtool-20080122
Simon Wilkinson [Wed, 23 Jan 2008 05:29:03 +0000]
redhat-kmodtool-20080122

LICENSE IPL10

install simon's modified kmodtool

16 years agorxkad-v5-dot-check-20080122
Simon Wilkinson [Wed, 23 Jan 2008 04:13:55 +0000]
rxkad-v5-dot-check-20080122

LICENSE IPL10
FIXES 75101

give an option to not enforce the dotted principal check. document it.

16 years agoviced-fsync-glock-creation-20080122
Derrick Brashear [Wed, 23 Jan 2008 03:20:13 +0000]
viced-fsync-glock-creation-20080122

LICENSE IPL10

create fsync glock and cond before we initialize volume package. oops?

16 years agoredhat-packaging-keep-up-with-the-joneses-20080122
Derrick Brashear [Tue, 22 Jan 2008 21:03:51 +0000]
redhat-packaging-keep-up-with-the-joneses-20080122

LICENSE IPL10

track new manpages

16 years agovos-volser-enhancements-20080121
Derrick Brashear [Tue, 22 Jan 2008 05:15:15 +0000]
vos-volser-enhancements-20080121

LICENSE IPL10

add option to addsite to allow adding a site where there is already a release-
equivalent volume resident, where thus we don't want to mark unreleased

(possible by dumping an existing RO and restoring with -readonly at the
 new site)

add ability to vos clone to a readonly or backup with the correct ID and name

add ability when restoring a RW to a new site to leave the volume at the old
site intact

all changes are internal to vos and can be used with any OpenAFS from 2006
or later (supporting changes in namei to not create volumes with bad parent
id went in in December 2005)

16 years agotests-update-20080121
Mike Meffie [Mon, 21 Jan 2008 21:04:35 +0000]
tests-update-20080121

LICENSE IPL10

update test scripting

16 years agomacos-packaging-using-afs-conf-when-possible-20080121
Evan Broder [Mon, 21 Jan 2008 21:03:48 +0000]
macos-packaging-using-afs-conf-when-possible-20080121

LICENSE IPL10
FIXES 81825

switch to afs.conf as other ports use instead of afsd.options,
when possible

16 years agomake-avoid-double-slash-20080121
Derrick Brashear [Mon, 21 Jan 2008 18:36:02 +0000]
make-avoid-double-slash-20080121

LICENSE IPL10

avoid having double / in make commands

16 years agosolaris-vfsroot-refcount-issue-20080121
Jeffrey Hutzelman [Mon, 21 Jan 2008 17:34:00 +0000]
solaris-vfsroot-refcount-issue-20080121

LICENSE IPL10

fix issue with afs root vnode refcount dropping to 0

16 years agoredhat-spec-update-20080121
Simon Wilkinson [Mon, 21 Jan 2008 17:08:22 +0000]
redhat-spec-update-20080121

LICENSE IPL10

update specfile to default to fedorakmod

16 years agolibafs-linux-dest-right-things-20080121
Derrick Brashear [Mon, 21 Jan 2008 14:18:11 +0000]
libafs-linux-dest-right-things-20080121

LICENSE IPL10

"duh"

make it like the install rules

16 years agovos-restore-incrementals-no-orphans-really-20080121
Derrick Brashear [Mon, 21 Jan 2008 14:04:34 +0000]
vos-restore-incrementals-no-orphans-really-20080121

LICENSE IPL10
FIXES 46937

based on comments from jhutz@cmu.edu; runnign thread in the ticket

16 years agoman-page-fileserver-limits-20080119
Jason Edgecombe [Sun, 20 Jan 2008 00:06:49 +0000]
man-page-fileserver-limits-20080119

LICENSE BSD

Document the 2TB volume and partition limits and the -abortthreshold flag
to the AFS fileserver.

16 years agowindows-cm_ioctl_query_opts-20080115
Jeffrey Altman [Wed, 16 Jan 2008 03:16:19 +0000]
windows-cm_ioctl_query_opts-20080115

LICENSE MIT

The path ioctl operations have several issues:

(1) the specified path for "fs examine, whereis, whichcell, flush" and so
    always has the follow symlinks and mount points semantics.  This makes
    it impossible to determine what the FID of a symlink or mount point is.

(2) "fs examine" out is not the result of a single pioctl operation but is
    actually the combined output of half a dozen operations.  Path evaluation
    is an expensive operation.  It would be faster if the caller could
    evaluate the FID first and then perform all of the rest of the operations
    by specifying the FID instead of the path.

(3) fs output reports all objects as files.  By adding a GetFileType
    pioctl more informative output can be provided that indicates what
    type of object the path evaluates to.

(4) the Windows fs command includes a number of commands that do nothing
    but exist only because the Unix cache manager supports them.

This delta adds a new extendible data structure cm_ioctl_query_opts_t which
can be optionally specified with pioctls that do not already require
input data.  The first two fields of this structure are 'literal' and
'fid'.  The literal field is used to indicate whether the last component
of the path should be evaluated following symlinks and mount points.
The fid field permits a fid to be specified.

A new GetFileType pioctl has been added. The type of objects are now
output.

A new "-literal" option is available for "fs examine, flush, whereis, and
whichcell.

Unimplemented fs commands have been removed.

16 years agoredhat-makesrpm-deal-with-cellservdb-20080115
Derrick Brashear [Tue, 15 Jan 2008 23:42:08 +0000]
redhat-makesrpm-deal-with-cellservdb-20080115

LICENSE IPL10

autofetch the CellServDB based on the spec or let one be provided

16 years agofbsd-70-updates-20080115
Matt Benjamin [Tue, 15 Jan 2008 06:04:49 +0000]
fbsd-70-updates-20080115

LICENSE IPL10
FIXES 82847

updates to make us build on freebsd 7.0

16 years agoarm-linux-20080115
Derrick Brashear [Tue, 15 Jan 2008 05:20:49 +0000]
arm-linux-20080115

LICENSE IPL10

make an arm linux port.

16 years agoman-page-cmdebug-updates-20080113
Jason Edgecombe [Mon, 14 Jan 2008 04:55:21 +0000]
man-page-cmdebug-updates-20080113

LICENSE BSD

Add -ctime and -cellservdb options to the cmdebug man page and improve
example host names and SEE ALSO references.

16 years agocmd-nname-20080113
Jeffrey Altman [Sun, 13 Jan 2008 15:32:24 +0000]
cmd-nname-20080113

LICENSE MIT

Nname() is used to concatenate two strings and is frequently used with
the first string being the name of the executable perhaps with a full
path.  The static buffer specified is too small for a full path and
there was no protection against writing beyond the end of it.

16 years agowindows-pioctl-parse-path-20080113
Jeffrey Altman [Sun, 13 Jan 2008 14:37:04 +0000]
windows-pioctl-parse-path-20080113

LICENSE MIT

Apply the desired "follow symlinks/mountpoints" semantics to the single
component non-UNC case.

16 years agowindows-explorer-shell-symlinks-show-20080112
Jeffrey Altman [Sat, 12 Jan 2008 23:29:59 +0000]
windows-explorer-shell-symlinks-show-20080112

LICENSE MIT

Add AFS->Symlnks->Show dialog to the explorer shell menu

16 years agocmdebug-cellservdb-20080112
Jeffrey Altman [Sat, 12 Jan 2008 15:43:37 +0000]
cmdebug-cellservdb-20080112

LICENSE MIT

Add -cellservdb option to the cmdebug command.

This option will retrieve the volume location database information
for all cells known to the cache manager and output the data in the
format required by the CellServDB file.

This functionality is supported by the UNIX cache managers and
Windows cache managers 1.5.31 and later.

16 years agoconfig-cvsignore-update-20080111
Derrick Brashear [Fri, 11 Jan 2008 22:38:48 +0000]
config-cvsignore-update-20080111

LICENSE IPL10

ignore generated Makefile.SYSNAME.in

16 years agowindows-callback-getcellservdb-20080111
Jeffrey Altman [Fri, 11 Jan 2008 19:09:20 +0000]
windows-callback-getcellservdb-20080111

LICENSE MIT

Add support for RXAFS_GetCellServDB.  Implemented by generalizing
RXAFS_GetCellByNum and special casing the index values to do the
right thing.

Conditionalize grabbing the callp->lock in the callback functions.
The race conditions in rx have long since been fixed and the potential
for deadlocks are too great.

Add a new flag CM_FLAG_NOPROBE for use in calls to cm_GetCell.  When
set the newly discovered servers will not be immediately probed.  Useful
when setting tokens, setting server preferences, or responding to cmdebug
callbacks.

16 years agowindows-smb-synchronization-20080110
Jeffrey Altman [Thu, 10 Jan 2008 23:48:02 +0000]
windows-smb-synchronization-20080110

LICENSE MIT

1. prevent stopping the smb_Listeners due to an ip addr change when the
LANA is determined either by registry assignment or loopback detection

2. add synchronization logic to prevent smb_Listener restarts prior to
   smb_Listener thread stoppage

3. no longer permit panics from smb_Listener threads

4. move the probe logic from cm_IPAddrDaemon thread to the cm_Daemon
   thread in order to avoid the loss of ip addr change events.  If an
   adapter stops and restarts fast enough there might not be anything
   for us to do.

16 years agolinux-2624-rc5-updates-20080110
Matt Benjamin [Thu, 10 Jan 2008 16:58:30 +0000]
linux-2624-rc5-updates-20080110

LICENSE IPL10
FIXES 80463

Include linux/key-type.h in osi_groups.c, if it exists. Fix
do_sync_read test for recent kbuild (maybe break it for [some older 2.6]).

16 years agoredhat-make-srpm-script-20080109
Simon Wilkinson [Wed, 9 Jan 2008 19:36:59 +0000]
redhat-make-srpm-script-20080109

LICENSE IPL10

srpm builder script

16 years agowindows-smb-name-deleted-20080109
Jeffrey Altman [Wed, 9 Jan 2008 15:25:07 +0000]
windows-smb-name-deleted-20080109

LICENSE MIT

if the smb_Listener receives NRC_NAMERR (name deleted) it must be because
an smb shutdown has occurred.  do not panic.

16 years agowindows-pioctl-follow-mountpoints-registry-20080108
Jeffrey Altman [Wed, 9 Jan 2008 06:03:10 +0000]
windows-pioctl-follow-mountpoints-registry-20080108

LICENSE MIT

Add a registry value "PioctlFollowMountPoint" to permit the use of the
old pioctl path evaluation behavior that always followed mountpoints
and symlinks.

16 years agosmb-even-less-chatty-20080108
Jeffrey Altman [Tue, 8 Jan 2008 22:28:39 +0000]
smb-even-less-chatty-20080108

LICENSE MIT

remove the smb_RestartListeners message entirely

16 years agowindows-daemon-20080108
Jeffrey Altman [Tue, 8 Jan 2008 22:03:12 +0000]
windows-daemon-20080108

LICENSE MIT

sleep 10 seconds between cycles.  should make this configurable.

16 years agowindows-smb-logging-20080108
Jeffrey Altman [Tue, 8 Jan 2008 21:59:28 +0000]
windows-smb-logging-20080108

LICENSE MIT

Be less chatty

16 years agowindows-callback-missing-bang-20080108
Jeffrey Altman [Tue, 8 Jan 2008 21:26:46 +0000]
windows-callback-missing-bang-20080108

LICENSE MIT

Insert a missing bang that results in a null pointer dereference
when processing a callback from an unrecognized server.

16 years agoobsd-more-stack-20080108
Jim Rees [Tue, 8 Jan 2008 17:18:57 +0000]
obsd-more-stack-20080108

make stack bigger in volserver and fileserver
eliminates overflow in k5 library

16 years agoobsd-lock-no-interlock-20080108
Jim Rees [Tue, 8 Jan 2008 17:04:30 +0000]
obsd-lock-no-interlock-20080108

restore lock vnode op, but without vnode interlock for obsd 4.2

16 years agowindows-nim-afscred-identity-initialization-20080108
Asanka Herath [Tue, 8 Jan 2008 17:04:19 +0000]
windows-nim-afscred-identity-initialization-20080108

LICENSE MIT

One of the challenges to deploying NIM has been the configuration of
AFS token acquisition.  This patch adds a new registry key hierarchy

  HKLM\SOFTWARE\OpenAFS\Client\Realms

which is used to configure the AFS Provider for a new identity based
upon the realm of the identity.  The Realms key contains subkeys for
each realm for which configuration data is being provided

  HKLM\SOFTWARE\OpenAFS\Client\Realms\"RealmName"

"RealmName" contains one optional value, "AFSEnabled", and subkeys for
each Cell that is to be added to the configuration.  "AFSEnabled" defaults
to 0x01.

   HKLM\SOFTWARE\OpenAFS\Client\Realms\"RealmName"\"CellName"

In "CellName", there are two optional values, "Realm" and "MethodName".
If the values are not specified, the automatic realm and method determination
algorithms are used.

These values can be added to an MSI transform or deployed via Group Policy.

16 years agowindows-smb-started-synchronization-20080108
Jeffrey Altman [Tue, 8 Jan 2008 07:04:51 +0000]
windows-smb-started-synchronization-20080108

LICENSE MIT

Add a new mutex "smb_StartedMutex" which is used to protect the
transitions between the various smb_ListenerState values.

16 years agowindows-printf-format-string-protection-20080108
Jeffrey Altman [Tue, 8 Jan 2008 06:27:36 +0000]
windows-printf-format-string-protection-20080108

LICENSE MIT

Do not pass strings generated from incoming network data to ??printf
as the format string.  Instead use a format string of "%s".  This protects
against %? expansions being inserted in the string.

16 years agoviced-hpr-error-handling-20080107
Derrick Brashear [Mon, 7 Jan 2008 20:22:10 +0000]
viced-hpr-error-handling-20080107

LICENSE IPL10

fix ubik reinit issue reported by jhutz@cs

16 years agosys-syscall-object-dependency-20080107
Derrick Brashear [Mon, 7 Jan 2008 20:10:27 +0000]
sys-syscall-object-dependency-20080107

LICENSE IPL10

make syscall.o always be created, some makes don't deal with the implicit requirement

16 years agolinux-probe-warning-case-20080107
Russ Allbery [Mon, 7 Jan 2008 18:14:54 +0000]
linux-probe-warning-case-20080107

LICENSE MIT

Some older Linux kernels prefix warnings with "Warning:" rather than
"WARNING:", so do the grep case-insensitively when finding missing symbols.

16 years agowindows-bkg-prefetch-buf-refcount-leak-20080107
Jeffrey Altman [Mon, 7 Jan 2008 17:54:06 +0000]
windows-bkg-prefetch-buf-refcount-leak-20080107

LICENSE MIT

Close a refcount leak in bkg prefetch.

Do not stop prefetching simply because a buffer we want is already being
fetched.  Instead skip the buffer and try to fetch the next one we require.

16 years agowindows-ipaddr-change-server-deadlock-20080106
Jeffrey Altman [Sun, 6 Jan 2008 23:11:01 +0000]
windows-ipaddr-change-server-deadlock-20080106

LICENSE MIT

avoid a deadlock during server probes initiated by the ipaddr change
daemon thread.

16 years agoviced-threadquota-release-holds-20080106
Derrick Brashear [Sun, 6 Jan 2008 15:57:05 +0000]
viced-threadquota-release-holds-20080106

LICENSE IPL10

release a hold when we decline to service a host

16 years agowindows-power-mgmt-20080105
Jeffrey Altman [Sun, 6 Jan 2008 06:25:08 +0000]
windows-power-mgmt-20080105

LICENSE MIT

Log more power mgmt events.

Do not permit a smb reinitialization when in a suspended state

Periodically check to see if the LAN adapter is -1.  If so, try to
reinitialize the smb stack.

16 years agowindows-follow-backup-path-20080105
Jeffrey Altman [Sat, 5 Jan 2008 22:19:12 +0000]
windows-follow-backup-path-20080105

LICENSE MIT

parens are required in order to get the desired behavior

16 years agowindows-nim-afscred-referrals-two-20080105
Jeffrey Altman [Sat, 5 Jan 2008 18:55:55 +0000]
windows-nim-afscred-referrals-two-20080105

LICENSE MIT

compatibility with Visual Studio 2005/2008

16 years agowindows-vista-network-change-20080105
Jeffrey Altman [Sat, 5 Jan 2008 17:55:20 +0000]
windows-vista-network-change-20080105

LICENSE MIT

After a network change, test to see if the desired LAN adapter to bind
the Netbios Name to has changed.  If so, stop the Netbios Network and
restart with the new LAN adapter.

This can happen on Vista after a suspend if the service wakes up before
the Loopback adapter re-initializes.

16 years agowindows-nim-afscred-referrals-20080105
Jeffrey Altman [Sat, 5 Jan 2008 17:28:59 +0000]
windows-nim-afscred-referrals-20080105

LICENSE MIT

If the requestd realm name is the empty string, copy the realm from the
resulting ticket for use in pts registration.

16 years agowindows-aklog-referrals-20080105
Derrick Brashear [Sat, 5 Jan 2008 16:59:56 +0000]
windows-aklog-referrals-20080105

LICENSE IPL10

If the realm name of the requested ticket is the empty string, decode
the actual service ticket to determine the actual realm.  Obtaining the
actual realm prevents unnecessary pts registration failures.

16 years agoaklog-referral-support-20080104
Marc Horowitz [Sat, 5 Jan 2008 04:43:09 +0000]
aklog-referral-support-20080104

LICENSE IPL10

with updates and configure support from Simon Wilkinson.

make aklog able to cope with referrals.

16 years agopag-allocation-dont-throttle-when-time-reverses-20080104
Derrick Brashear [Fri, 4 Jan 2008 18:37:28 +0000]
pag-allocation-dont-throttle-when-time-reverses-20080104

LICENSE IPL10
avoid pag allocation throttling when time is set back by e.g. ntpd to avoid starving everyone.

16 years agoxbsd-include-systmh-20080104
Jim Rees [Fri, 4 Jan 2008 18:07:35 +0000]
xbsd-include-systmh-20080104

include systm.h for xbsd

16 years agoobsd-resid-type-20080104
Jim Rees [Fri, 4 Jan 2008 17:56:11 +0000]
obsd-resid-type-20080104

use correct type for resid when calling vn_rdwr()

16 years agosetuuid-return-20080104
Jim Rees [Fri, 4 Jan 2008 17:39:05 +0000]
setuuid-return-20080104

return success (0) from setuuid()

16 years agoobsd-time-20080104
Jim Rees [Fri, 4 Jan 2008 17:27:23 +0000]
obsd-time-20080104

update kernel time functions for OpenBSD 4.2

16 years agowindows-fs-test_volstat-20080103
Jeffrey Altman [Fri, 4 Jan 2008 07:56:45 +0000]
windows-fs-test_volstat-20080103

LICENSE MIT

Add a hidden command that can be used to test volume status handlers.
fs test_volstat.

16 years agowindows-fs-path-avail-20080103
Jeffrey Altman [Fri, 4 Jan 2008 07:51:31 +0000]
windows-fs-path-avail-20080103

LICENSE MIT

fix the reporting of volume status as a result of the VIOC_PATH_AVAIL
pioctl call. Switch on errno instead of the pioctl return value.

16 years agowindows-fs-prototype-20080103
Jeffrey Altman [Fri, 4 Jan 2008 07:48:37 +0000]
windows-fs-prototype-20080103

LICENSE

Fix types in prototypes to be consistent with function definitions

16 years agowindows-smb-20080103
Jeffrey Altman [Fri, 4 Jan 2008 07:46:29 +0000]
windows-smb-20080103

LICENSE MIT

ensure type consistency between 32-bit and 64-bit processes by replacing
'long' with 'afs_uint32'

16 years agowindows-volume-status-20080103
Jeffrey Altman [Fri, 4 Jan 2008 07:44:10 +0000]
windows-volume-status-20080103

LICENSE MIT

when performing offline volume status checks handle CM_ERROR_NOACCESS
conditions by restoring the volume status to vl_unknown.

16 years agoaix-lam-aklog-update-20080103
Derrick Brashear [Thu, 3 Jan 2008 18:02:30 +0000]
aix-lam-aklog-update-20080103

LICENSE IPL10

make the aklog lam plugin work correctly in e.g. the CDE screenlocker, which is
part of the long-running and not-run-by-user dtsession; this means we do wackiness to
1) not pag ourselves in that case
2) setuid to the user to set uid tokens if we got a username and are root
3) do not use pr_mumble get the the AFS ID to put in the tokens, as multiple
   initializations of Rx in the process space of dtsession crashes it

16 years agoobsd-buf-fixes-20080103
Jim Rees [Thu, 3 Jan 2008 17:46:08 +0000]
obsd-buf-fixes-20080103

use new b_data field in struct buf

16 years agoobsd-lock-vnops-20080103
Jim Rees [Thu, 3 Jan 2008 17:12:21 +0000]
obsd-lock-vnops-20080103

use generic vnops for lock/unlock (for obsd 4.2)

16 years agoobsd-uvm-1-20080103
Jim Rees [Thu, 3 Jan 2008 17:11:22 +0000]
obsd-uvm-1-20080103

long overdue fixes for uvm on openbsd

16 years agouse-k5-klog-20080102
Jim Rees [Thu, 3 Jan 2008 02:28:29 +0000]
use-k5-klog-20080102

use k5 klog for OpenBSD

16 years agowindows-64bit-20080102
Jeffrey Altman [Wed, 2 Jan 2008 15:53:46 +0000]
windows-64bit-20080102

LICENSE MIT

do not disable the signature verification of binaries when using
large cache sizes on 64-bit systems

cm_config_data values are unsigned and some are 64-bit.  when logging
them use the correct data format types.

16 years agoredhat-spec-cvsignore-20080101
Derrick Brashear [Wed, 2 Jan 2008 15:10:08 +0000]
redhat-spec-cvsignore-20080101

LICENSE IPL10

as reported by mdw@umich.edu

16 years agowindows-nim-afscred-supports-krb4-20080102
Jeffrey Altman [Wed, 2 Jan 2008 14:58:35 +0000]
windows-nim-afscred-supports-krb4-20080102

LICENSE MIT

Do not trust the registry to determine whether or not krb4 support
is available.  In a roaming profile the user data can say 'yes' even
if the plug-in or the kerberos library does not exist.

16 years agowindows-nim-afs-krb524-20080102
Jeffrey Altman [Wed, 2 Jan 2008 07:06:58 +0000]
windows-nim-afs-krb524-20080102

LICENSE MIT

Don't call krb524_convert_creds_kdc if it doesn't exist.
64-bit KFW doesn't support krb4 and the function isn't present.

16 years agovgetvnode-debuglog-vio-20071228
Derrick Brashear [Fri, 28 Dec 2007 22:13:42 +0000]
vgetvnode-debuglog-vio-20071228

LICENSE IPL10

provide a way to log otherwise unlogged VIO error cause

16 years agowindows-syncop-20071228
Jeffrey Altman [Fri, 28 Dec 2007 15:46:05 +0000]
windows-syncop-20071228

LICENSE MIT

avoid a race condition between cm_SyncOpCheckContinue and cm_SyncOpDone
that can leave a request on an scp stuck in the waiting state even though
there are no other requests to wake it up.

16 years agowindows-get-buffer-20071228
Jeffrey Altman [Fri, 28 Dec 2007 07:24:48 +0000]
windows-get-buffer-20071228

LICENSE MIT

cm_BkgPrefetch() contained two errors.  First, the loop at the top of the
function that ensures that a cm_buf_t is allocated for each of the offset
positions failed to actually obtain the buffer for the specified offset.
Instead, it repeatedly obtained the buffer for the starting base address.

Second, cm_GetBuffer() would reserve all of the buffers associated with
the cm_scache_t even in the case where we already have a callback and the
existing buffer has the proper data version number.  In that situation
reserving the buffers simply wastes valuable time.

16 years agowindows-cell-aliases-20071228
Jeffrey Altman [Fri, 28 Dec 2007 07:11:59 +0000]
windows-cell-aliases-20071228

LICENSE MIT

Fix the lookup of cell aliases to:

1. avoid re-reading CellServDB each time a cell alias is specified
2. avoid reconstructing the vlserver list for the cell each time an
   alias is specified
3. permit aliases to be used when AFSDB records were used previously
   with the full cell name

16 years agowindows-bkg-daemon-threads-20071228
Jeffrey Altman [Fri, 28 Dec 2007 07:07:53 +0000]
windows-bkg-daemon-threads-20071228

LICENSE MIT

Reduce the default number of background daemon threads used for prefetch and
store operations to one.  Given the current implementation when more than
one thread is allocated they step on each other's toe while fighting over
locks.

A better model might be to divide up threads based upon cells or volumes
as a means of preventing contention.

16 years agowindows-default-chunksize-20071227
Jeffrey Altman [Thu, 27 Dec 2007 20:58:49 +0000]
windows-default-chunksize-20071227

LICENSE MIT

Drop the default chunksize to 18 (256KB) from 20 (1MB) due to the increased
propensity to timeout reads on slow network connections.

16 years agowindows-callback-restore-multi-cell-servers-20071226
Jeffrey Altman [Wed, 26 Dec 2007 16:18:37 +0000]
windows-callback-restore-multi-cell-servers-20071226

LICENSE MIT

The case of openafs.org and grand.central.org is a hideous abuse of
the AFS cell name space.  There are many negatives associated with
trying to support two different cell names pointing at overlapping
vlserver lists:

(1) The CM can store duplicate entries for all of the data simply because
    the cell name that was used is different

(2) If the CM attempts to optimize the data storage by aliasing or otherwise
    combining the cell names as part of one cm_cell_t object, then future
    attempts to separate the two cell names will require the destruction
    of the cache.

(3) If the CM does not associate a callback revoke with a particular cell,
    then the status data associated with any entry that matches the revoked
    AFSFid will be discarded.  For volume callbacks this can have a serious
    impact because volume IDs are not unique across cells and discarding
    status data for readonly volumes that are in use can result in a
    significant number of FetchStatus requests being sent to the associated
    file server.

There are other issues as well involving authentication.

The case of openafs.org advertising the vlserver addresses of
grand.central.org should be considered a hack; a hack that the Windows
client will no longer ensure will work.

Additional debugging messages have been added to assist individuals attempting
to debug why callback revokes do not appear to take affect when two cell
names share the same vlserver data.

16 years agowindows-pthread-20071225
Jeffrey Altman [Tue, 25 Dec 2007 23:05:17 +0000]
windows-pthread-20071225

LICENSE MIT

The pthread_cond_timedwait/wait implementations were broken.  Not only
did they return the wrong error values but more importantly, they did not
always return with the mutex locked.

16 years agorx-event-handler-20071225
Jeffrey Altman [Tue, 25 Dec 2007 22:59:06 +0000]
rx-event-handler-20071225

LICENSE MIT

Update event_handler() for Windows.  The return code of
pthread_cond_timedwait() is not limited to 0 and -1 because 'errno'
cannot be set.  Instead of setting 'errno' the error code is returned
directly by the function as the return code.

This patch is only for debugging purposes to track the number of
success, timeout, and other errors experienced by the routine.

16 years agoman-page-license-change-20071225
Jason Edgecombe [Tue, 25 Dec 2007 22:22:22 +0000]
man-page-license-change-20071225

LICENSE BSD

Update man pages submitted by Jason Edgecombe to the BSD license.

16 years agoman-page-misc-updates-20071225
Jason Edgecombe [Tue, 25 Dec 2007 22:15:07 +0000]
man-page-misc-updates-20071225

LICENSE BSD

Add some additional cross-references, add some missing man pages, fix a
few references to the OpenAFS manuals, document the -live flag to vos
move, and add an example for rxdebug.

16 years agoman-page-fileserver-debug-20071225
Andrew Deason [Tue, 25 Dec 2007 22:02:19 +0000]
man-page-fileserver-debug-20071225

LICENSE BSD

The file server debug flag is -d, not -debug.

16 years agowindows-callback-revoke-multi-cell-servers-20071225
Jeffrey Altman [Tue, 25 Dec 2007 21:58:51 +0000]
windows-callback-revoke-multi-cell-servers-20071225

LICENSE MIT

Remove the callback revoke optimization that prevents a (vol,vn,uniq)
tupple from invalidating entries from multiple cells.  We cannot reliably
determine the cell from the server because the server might be identified
as belonging to more than one cell.  For example, openafs.org and
grand.central.org.

16 years agowindows-hold-server-mutex-for-vol-list-20071223
Jeffrey Altman [Mon, 24 Dec 2007 05:29:15 +0000]
windows-hold-server-mutex-for-vol-list-20071223

LICENSE MIT

When walking or modifying the cm_server_vols_t associated with a given
cm_server_t the mutex must be held.  Otherwise, races can occur.

16 years agowindows-daemon-threads-shutdown-sync-20071223
Jeffrey Altman [Mon, 24 Dec 2007 05:23:28 +0000]
windows-daemon-threads-shutdown-sync-20071223

LICENSE MIT

Windows Error Reporting received crashes caused by a failure to synchronize
the shutdown of the AFS client service with the background daemon threads.
The daemon threads (cm_Daemon, cm_BkgDaemon+, cm_IPAddrDaemon) could be
accessing data structures as they were being freed or unmapped.

Add synchronization mechanisms to signal the termination of the threads
with the shutdown of the service.