openafs.git
13 years agoDEVEL15-sysctl-table-checking-modpost-fun-fun-20080127
Marc Dionne [Mon, 28 Jan 2008 19:15:29 +0000]
DEVEL15-sysctl-table-checking-modpost-fun-fun-20080127

LICENSE IPL10
FIXES 83890

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

(cherry picked from commit 5a93678e3943fa2c71d51f25f84b4efd5f3700e6)

13 years agoDEVEL15-windows-freelance-improved-dfs-handling-20080127
Jeffrey Altman [Mon, 28 Jan 2008 07:23:35 +0000]
DEVEL15-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.

(cherry picked from commit 36bdf1ccd859fb0039d8ae9abd04f9eea08d704d)

13 years agoDEVEL15-windows-afskfw-20080127
Jeffrey Altman [Mon, 28 Jan 2008 07:13:24 +0000]
DEVEL15-windows-afskfw-20080127

LICENSE MIT

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

(cherry picked from commit 3f3545024100f3efd7bb76925d3cb1b1c15ae3f4)

13 years agoDEVEL15-afsdb-fix-20080126
Derrick Brashear [Mon, 28 Jan 2008 01:39:18 +0000]
DEVEL15-afsdb-fix-20080126

LICENSE IPL10

pull bugfix from 1.4

(cherry picked from commit 7526681ef5c57a4ffe0c343717c3ed65a9120768)

13 years agoDEVEL15-macos-panic-decoder-20080127
Jason Edgecombe [Sun, 27 Jan 2008 18:46:14 +0000]
DEVEL15-macos-panic-decoder-20080127

LICENSE IPL10

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

(cherry picked from commit 711dc57c7fa053efa58c02df8788da1a2c7889bf)

13 years agoDEVEL15-redhat-support-dkms-20080124
Derrick Brashear [Thu, 24 Jan 2008 23:56:47 +0000]
DEVEL15-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.

(cherry picked from commit 7dc71d1154294cdc5f5aba4c3e58a00972318960)

13 years agoDEVEL15-tests-update-20080124
Mike Meffie [Thu, 24 Jan 2008 23:50:37 +0000]
DEVEL15-tests-update-20080124

LICENSE IPL10

update test scripting

(cherry picked from commit 80f7294490e1d1423a5f7482ed924dda8bab1ba8)

13 years agoDEVEL15-rxkad-v5-dot-check-20080124
Jeffrey Altman [Thu, 24 Jan 2008 16:08:11 +0000]
DEVEL15-rxkad-v5-dot-check-20080124

LICENSE MIT

Export rx_SetSecurityConfiguration on Windows

(cherry picked from commit 89d93d9ad7862c5de0587a84d99c567bf5a61d14)

13 years agoDEVEL15-windows-get-volume-no-reset-flag-20080124
Jeffrey Altman [Thu, 24 Jan 2008 15:31:12 +0000]
DEVEL15-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.

(cherry picked from commit d32156e5c1fb36994650754a11379df6ccc94909)

13 years agoDEVEL15-windows-symlink-dot-dot-20080124
Jeffrey Altman [Thu, 24 Jan 2008 15:20:46 +0000]
DEVEL15-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.

(cherry picked from commit 16a90b2f8dfe875991bca0dee516c531fcc3aeee)

13 years agoDEVEL15-redhat-spec-more-arches-20080123
Derrick Brashear [Wed, 23 Jan 2008 21:38:45 +0000]
DEVEL15-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.

(cherry picked from commit ef6fc588bcab9a59e54050899937407be962b074)

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

LICENSE IPL10

doubled configure test from 2 sources.

(cherry picked from commit 9a45a546747dad7a70b24b76b1a02bf398c22762)

13 years agoDEVEL15-redhat-kmodtool-20080122
Simon Wilkinson [Wed, 23 Jan 2008 05:30:30 +0000]
DEVEL15-redhat-kmodtool-20080122

LICENSE IPL10

install simon's modified kmodtool

(cherry picked from commit 434c25fee15162dff64f2c18a971023b146d6118)

13 years agoDEVEL15-rxkad-v5-dot-check-20080122
Simon Wilkinson [Wed, 23 Jan 2008 04:18:10 +0000]
DEVEL15-rxkad-v5-dot-check-20080122

LICENSE IPL10
FIXES 75101

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

(cherry picked from commit 98a68f9b021a06d056fb3b97681b9cfc04873d55)

13 years agoDEVEL15-viced-fsync-glock-creation-20080122
Derrick Brashear [Wed, 23 Jan 2008 03:21:45 +0000]
DEVEL15-viced-fsync-glock-creation-20080122

LICENSE IPL10

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

(cherry picked from commit 0e8adf69538638b8caa56d9b1fa72beba74734bd)

13 years agoDEVEL15-redhat-packaging-keep-up-with-the-joneses-20080122
Derrick Brashear [Tue, 22 Jan 2008 21:05:30 +0000]
DEVEL15-redhat-packaging-keep-up-with-the-joneses-20080122

LICENSE IPL10

track new manpages

(cherry picked from commit 0fab6d9600769dd219fd6e968c4a6bae9ed5d497)

13 years agoDEVEL15-vos-volser-enhancements-20080121
Derrick Brashear [Tue, 22 Jan 2008 05:15:30 +0000]
DEVEL15-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)

(cherry picked from commit e1c4e77d13122c2bb66d532ffd9dfc2e75318c04)

13 years agoDEVEL15-tests-update-20080121
Mike Meffie [Mon, 21 Jan 2008 21:04:53 +0000]
DEVEL15-tests-update-20080121

LICENSE IPL10

update test scripting

(cherry picked from commit 1181ea034623541765fbc5c23df55ebaf577c083)

13 years agoDEVEL15-macos-packaging-using-afs-conf-when-possible-20080121
Evan Broder [Mon, 21 Jan 2008 20:57:23 +0000]
DEVEL15-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

13 years agoDEVEL15-make-avoid-double-slash-20080121
Derrick Brashear [Mon, 21 Jan 2008 18:38:02 +0000]
DEVEL15-make-avoid-double-slash-20080121

LICENSE IPL10

avoid having double / in make commands

(cherry picked from commit 6a7461e6f8dad79894c6d2ad11edfdba689c4c77)

13 years agoDEVEL15-solaris-vfsroot-refcount-issue-20080121
Jeffrey Hutzelman [Mon, 21 Jan 2008 17:37:30 +0000]
DEVEL15-solaris-vfsroot-refcount-issue-20080121

LICENSE IPL10

fix issue with afs root vnode refcount dropping to 0

(cherry picked from commit fc91cf4314eb768a2f83f198645e553b5fa778de)

13 years agoDEVEL15-redhat-spec-update-20080121
Simon Wilkinson [Mon, 21 Jan 2008 17:09:48 +0000]
DEVEL15-redhat-spec-update-20080121

LICENSE IPL10

update specfile to default to fedorakmod

(cherry picked from commit 75c10322ff3a3ef5e735d8821051678526e42275)

13 years agoDEVEL15-vos-restore-incrementals-no-orphans-really-20080121
Derrick Brashear [Mon, 21 Jan 2008 14:06:11 +0000]
DEVEL15-vos-restore-incrementals-no-orphans-really-20080121

LICENSE IPL10
FIXES 46937

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

(cherry picked from commit 22c059a9138be33eeeed910badcac3ebfeea24b5)

13 years agoDEVEL15-man-page-fileserver-limits-20080119
Jason Edgecombe [Sun, 20 Jan 2008 00:17:45 +0000]
DEVEL15-man-page-fileserver-limits-20080119

LICENSE BSD

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

(cherry picked from commit efba39ead059458d222f923db83c660f23c20b80)

13 years agoDEVEL15-windows-cm_ioctl_query_opts-20080115
Jeffrey Altman [Wed, 16 Jan 2008 03:19:51 +0000]
DEVEL15-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.

(cherry picked from commit 88e915d8f976898e75a6afe8bc7b6d7c33b8a121)

13 years agoDEVEL15-redhat-makesrpm-deal-with-cellservdb-20080115
Derrick Brashear [Tue, 15 Jan 2008 23:43:40 +0000]
DEVEL15-redhat-makesrpm-deal-with-cellservdb-20080115

LICENSE IPL10

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

(cherry picked from commit 64ef3f518eee22b167ff5043b01dc1f3251f10bd)

13 years agoDEVEL15-fbsd-70-updates-20080115
Matt Benjamin [Tue, 15 Jan 2008 06:09:11 +0000]
DEVEL15-fbsd-70-updates-20080115

LICENSE IPL10
FIXES 82847

updates to make us build on freebsd 7.0

(cherry picked from commit c386499fbeab36f5292e196563a4887fa06068ac)

13 years agoDEVEL15-arm-linux-20080115
Derrick Brashear [Tue, 15 Jan 2008 05:21:18 +0000]
DEVEL15-arm-linux-20080115

LICENSE IPL10

make an arm linux port.

(cherry picked from commit 08d71812fed3cc9f37d516d8f5d5b4ba9ccfb032)

13 years agoDEVEL15-man-page-cmdebug-updates-20080113
Jason Edgecombe [Mon, 14 Jan 2008 05:05:28 +0000]
DEVEL15-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.

(cherry picked from commit 110d5702ea51ce43fca6a5962d9ef8a0ec56d6eb)

13 years agoDEVEL15-cmd-nname-20080113
Jeffrey Altman [Sun, 13 Jan 2008 15:35:41 +0000]
DEVEL15-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.

(cherry picked from commit d5811091995b78d65e891b134aa0ad6955bbc30c)

13 years agoDEVEL15-windows-pioctl-parse-path-20080113
Jeffrey Altman [Sun, 13 Jan 2008 14:38:06 +0000]
DEVEL15-windows-pioctl-parse-path-20080113

LICENSE MIT

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

(cherry picked from commit 84989e6584e3808ae3f1959330b267feff2661f6)

13 years agoDEVEL15-windows-explorer-shell-symlinks-show-20080112
Jeffrey Altman [Sat, 12 Jan 2008 23:31:24 +0000]
DEVEL15-windows-explorer-shell-symlinks-show-20080112

LICENSE MIT

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

(cherry picked from commit 7a40c73476e270aac9d76663ff71e956bb630328)

13 years agoDEVEL15-cmdebug-cellservdb-20080112
Jeffrey Altman [Sat, 12 Jan 2008 15:44:40 +0000]
DEVEL15-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.

(cherry picked from commit b3fe9727b3e775348561bcbe0cf0c14cff82e597)

13 years agoDEVEL15-config-cvsignore-update-20080111
Derrick Brashear [Fri, 11 Jan 2008 22:41:50 +0000]
DEVEL15-config-cvsignore-update-20080111

LICENSE IPL10

ignore generated Makefile.SYSNAME.in

(cherry picked from commit bda66877dd88bcc78eba646b4f6a1131266e33d4)

13 years agoDEVEL15-windows-callback-getcellservdb-20080111
Jeffrey Altman [Fri, 11 Jan 2008 19:12:16 +0000]
DEVEL15-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.

(cherry picked from commit ae9dc9ad4ddd8313d24e457faf48bc15ccd2c86c)

13 years agoDEVEL15-windows-version-20080110 openafs-devel-1_5_30a
Jeffrey Altman [Thu, 10 Jan 2008 23:03:51 +0000]
DEVEL15-windows-version-20080110

LICENSE MIT

1.5.3001 = 1.5.30

13 years agoDEVEL15-windows-smb-synchronization-20080110
Jeffrey Altman [Thu, 10 Jan 2008 23:00:41 +0000]
DEVEL15-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.

(cherry picked from commit 8b82cbeef760992c6e3d27f9f6ea1f4e0bb559ab)

13 years agoDEVEL15-linux-2624-rc5-updates-20080110
Matt Benjamin [Thu, 10 Jan 2008 17:00:16 +0000]
DEVEL15-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]).

(cherry picked from commit 8569f67aee8ee0de26259397818ab3af69f18007)

13 years agoDEVEL15-redhat-make-srpm-script-20080109
Simon Wilkinson [Wed, 9 Jan 2008 19:38:40 +0000]
DEVEL15-redhat-make-srpm-script-20080109

LICENSE IPL10

srpm builder script

(cherry picked from commit 5011ea88badac8d393c4566a69e30f74c85e13ab)

13 years agoDEVEL15-windows-smb-name-deleted-20080109
Jeffrey Altman [Wed, 9 Jan 2008 15:21:22 +0000]
DEVEL15-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.

(cherry picked from commit a1b7be4ac3f073a2d64f46649e54a1ff99d2567b)

13 years agoDEVEL15-windows-version-20080109
Jeffrey Altman [Wed, 9 Jan 2008 14:50:36 +0000]
DEVEL15-windows-version-20080109

LICENSE MIT

1.5.30 == 1.5.3000.0

13 years agoDEVEL15-windows-pioctl-follow-mountpoints-registry-20080108
Jeffrey Altman [Wed, 9 Jan 2008 06:05:00 +0000]
DEVEL15-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.

(cherry picked from commit 845fb28de656d9886dd44cbf335833985ffc7d3b)

13 years agoDEVEL15-smb-even-less-chatty-20080108
Jeffrey Altman [Tue, 8 Jan 2008 22:30:00 +0000]
DEVEL15-smb-even-less-chatty-20080108

LICENSE MIT

remove the smb_RestartListeners message entirely

(cherry picked from commit f2fd97bfb02d1d2ed46304b5864d71a8759892a4)

13 years agoDEVEL15-windows-daemon-20080108
Jeffrey Altman [Tue, 8 Jan 2008 22:04:09 +0000]
DEVEL15-windows-daemon-20080108

LICENSE MIT

sleep 10 seconds between cycles.  should make this configurable.

(cherry picked from commit 110f74bcb85928d274ad2608662434304ff4ffae)

13 years agoDEVEL15-windows-callback-missing-bang-20080108
Jeffrey Altman [Tue, 8 Jan 2008 21:27:54 +0000]
DEVEL15-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.

(cherry picked from commit 69c9ab66a41236e987b44af9a3cb141adb1c2817)

13 years agoDEVEL15-windows-nim-afscred-identity-initialization-20080108
Asanka Herath [Tue, 8 Jan 2008 17:06:39 +0000]
DEVEL15-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.

(cherry picked from commit 521f139a89c2f078888b8bad37a495d23723a789)

13 years agoDEVEL15-windows-notes-20080108
Jeffrey Altman [Tue, 8 Jan 2008 16:32:31 +0000]
DEVEL15-windows-notes-20080108

LICENSE MIT

1.5.30

13 years agoDEVEL15-windows-release-notes-20080108
Jeffrey Altman [Tue, 8 Jan 2008 16:15:45 +0000]
DEVEL15-windows-release-notes-20080108

LICENSE MIT

updates for 1.5.30

13 years agoDEVEL15-windows-smb-started-synchronization-20080108
Jeffrey Altman [Tue, 8 Jan 2008 07:05:39 +0000]
DEVEL15-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.

(cherry picked from commit 5979a37e4e361bd9d2c52b6f6ef4bcce20a3124c)

13 years agoDEVEL15-windows-printf-format-string-protection-20080108
Jeffrey Altman [Tue, 8 Jan 2008 06:29:47 +0000]
DEVEL15-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.

(cherry picked from commit a05df915505ab3e77e46e39a5b232086c43fc8bf)

13 years agoDEVEL15-openafs-1-5-30-20080109 openafs-devel-1_5_30
Derrick Brashear [Wed, 9 Jan 2008 16:04:55 +0000]
DEVEL15-openafs-1-5-30-20080109

LICENSE IPL10

make 1.5.30

13 years agoDEVEL15-viced-hpr-error-handling-20080107
Derrick Brashear [Mon, 7 Jan 2008 20:23:50 +0000]
DEVEL15-viced-hpr-error-handling-20080107

LICENSE IPL10

fix ubik reinit issue reported by jhutz@cs

(cherry picked from commit be4da54fa06c0a6f43c0be09e1339d29cc4b5e5a)

13 years agoDEVEL15-sys-syscall-object-dependency-20080107
Derrick Brashear [Mon, 7 Jan 2008 20:10:39 +0000]
DEVEL15-sys-syscall-object-dependency-20080107

LICENSE IPL10

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

(cherry picked from commit 777a2840878af313e062c4885ae7002bad62bdf4)

13 years agoDEVEL15-linux-probe-warning-case-20080107
Russ Allbery [Mon, 7 Jan 2008 18:33:15 +0000]
DEVEL15-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.

(cherry picked from commit 58efc5029c832e6b1456c36b599e7e33d62cd9c6)

13 years agoDEVEL15-windows-bkg-prefetch-buf-refcount-leak-20080107
Jeffrey Altman [Mon, 7 Jan 2008 17:56:37 +0000]
DEVEL15-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.

(cherry picked from commit b19c56edfa5f0e3ff95f32b006b9403f53dd406f)

13 years agoDEVEL15-windows-ipaddr-change-server-deadlock-20080106
Jeffrey Altman [Sun, 6 Jan 2008 23:12:59 +0000]
DEVEL15-windows-ipaddr-change-server-deadlock-20080106

LICENSE MIT

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

(cherry picked from commit 049bc4a637334c6e94661a60067ff6a27e5ad481)

13 years agoDEVEL15-viced-threadquota-release-holds-20080106
Derrick Brashear [Sun, 6 Jan 2008 15:57:40 +0000]
DEVEL15-viced-threadquota-release-holds-20080106

LICENSE IPL10

release a hold when we decline to service a host

(cherry picked from commit 342595b2aa712ca7c0f2c160f9cba304dd27d574)

13 years agoDEVEL15-windows-power-mgmt-20080105
Jeffrey Altman [Sun, 6 Jan 2008 06:26:04 +0000]
DEVEL15-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.

(cherry picked from commit 6887c0e5b2b766b06c7e76a5ce28b84ed52df1d5)

13 years agoDEVEL15-windows-follow-backup-path-20080105
Jeffrey Altman [Sat, 5 Jan 2008 22:20:30 +0000]
DEVEL15-windows-follow-backup-path-20080105

LICENSE MIT

parens are required in order to get the desired behavior

(cherry picked from commit d27e82c8e2dcdf81ce8e8e6e849828881256f5fc)

13 years agoDEVEL15-windows-nim-afscred-referrals-two-20080105
Jeffrey Altman [Sat, 5 Jan 2008 18:57:12 +0000]
DEVEL15-windows-nim-afscred-referrals-two-20080105

LICENSE MIT

compatibility with Visual Studio 2005/2008

(cherry picked from commit f789f943f6967094f921b1b1b232be22925e3849)

13 years agoDEVEL15-windows-vista-network-change-20080105
Jeffrey Altman [Sat, 5 Jan 2008 17:56:29 +0000]
DEVEL15-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.

(cherry picked from commit f970985bc35ade50371a9299ad580d96ad04e979)

13 years agoDEVEL15-windows-nim-afscred-referrals-20080105
Jeffrey Altman [Sat, 5 Jan 2008 17:29:56 +0000]
DEVEL15-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.

(cherry picked from commit 53acd2042d53d947b213ba4ee58378c89555a868)

13 years agoDEVEL15-windows-aklog-referrals-20080105
Derrick Brashear [Sat, 5 Jan 2008 17:01:24 +0000]
DEVEL15-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.

(cherry picked from commit 8e3940c461f29483dcd71a5ba7cc59db89ea38e1)

13 years agoDEVEL15-aklog-referral-support-20080104
Marc Horowitz [Sat, 5 Jan 2008 04:46:52 +0000]
DEVEL15-aklog-referral-support-20080104

LICENSE IPL10

with updates and configure support from Simon Wilkinson.

make aklog able to cope with referrals.

(cherry picked from commit 2d15ac79349678e025f407b863f2911cd20e6f4e)

13 years agoDEVEL15-pag-allocation-dont-throttle-when-time-reverses-20080104
Derrick Brashear [Fri, 4 Jan 2008 18:38:34 +0000]
DEVEL15-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.

(cherry picked from commit 02dc91892c41163f24c818615d13271b074df3ca)

13 years agoDEVEL15-windows-fs-test_volstat-20080103
Jeffrey Altman [Fri, 4 Jan 2008 07:58:40 +0000]
DEVEL15-windows-fs-test_volstat-20080103

LICENSE MIT

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

(cherry picked from commit 068233cf4ab90a173e04de94605490e651d2f686)

13 years agoDEVEL15-windows-fs-path-avail-20080103
Jeffrey Altman [Fri, 4 Jan 2008 07:53:55 +0000]
DEVEL15-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.

(cherry picked from commit 23318f425ca8ccdc9b67bfc1be0a28c0f724f52a)

13 years agoDEVEL15-windows-fs-prototype-20080103
Jeffrey Altman [Fri, 4 Jan 2008 07:49:30 +0000]
DEVEL15-windows-fs-prototype-20080103

LICENSE

Fix types in prototypes to be consistent with function definitions

(cherry picked from commit d851dda5b7a84fa1acf5ccc93313df90922ce6b1)

13 years agoDEVEL15-windows-smb-20080103
Jeffrey Altman [Fri, 4 Jan 2008 07:47:31 +0000]
DEVEL15-windows-smb-20080103

LICENSE MIT

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

(cherry picked from commit 6034868e79f85e0143caa40669244cb8e442587b)

13 years agoDEVEL15-windows-volume-status-20080103
Jeffrey Altman [Fri, 4 Jan 2008 07:44:40 +0000]
DEVEL15-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.

(cherry picked from commit ae8e701952ae029672f2d7acfaf94cd44c1e4df4)

13 years agoDEVEL15-aix-lam-aklog-update-20080103
Derrick Brashear [Thu, 3 Jan 2008 18:03:45 +0000]
DEVEL15-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

(cherry picked from commit 3a541eb11d1bc7bd05b85635315214218d3b5d6f)

13 years agoDEVEL15-windows-64bit-20080102
Jeffrey Altman [Wed, 2 Jan 2008 15:55:00 +0000]
DEVEL15-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.

(cherry picked from commit 5baef6f6fe55ca81a28bc22023b06ee6c50d453d)

13 years agoDEVEL15-windows-nim-afscred-supports-krb4-20080102
Jeffrey Altman [Wed, 2 Jan 2008 15:02:29 +0000]
DEVEL15-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.

(cherry picked from commit d59d1db605280bfa9b2234f5272d61152ca7d7de)

13 years agoDEVEL15-windows-nim-afs-krb524-20080102
Jeffrey Altman [Wed, 2 Jan 2008 07:08:00 +0000]
DEVEL15-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.

(cherry picked from commit cfcaa0be3cc22fce97737ae4f6387a8200de770d)

13 years agoDEVEL15-hpux11-sys-no-syscall-object-20071230
Derrick Brashear [Mon, 31 Dec 2007 03:23:48 +0000]
DEVEL15-hpux11-sys-no-syscall-object-20071230

LICENSE IPL10

13 years agoDEVEL15-vgetvnode-debuglog-vio-20071228
Derrick Brashear [Fri, 28 Dec 2007 22:15:02 +0000]
DEVEL15-vgetvnode-debuglog-vio-20071228

LICENSE IPL10

provide a way to log otherwise unlogged VIO error cause

(cherry picked from commit 2e135307b52b04003a22aa9985807a70b407accc)

13 years agoDEVEL15-windows-notes-20071228 openafs-devel-1_5_29
Jeffrey Altman [Fri, 28 Dec 2007 20:25:41 +0000]
DEVEL15-windows-notes-20071228

LICENSE MIT

13 years agoDEVEL15-windows-version-20071228
Jeffrey Altman [Fri, 28 Dec 2007 20:19:10 +0000]
DEVEL15-windows-version-20071228

LICENSE MIT

1.5.2900.0 == 1.5.29

13 years agoDEVEL15-openafs-1-5-29-20071228
Derrick Brashear [Fri, 28 Dec 2007 20:14:49 +0000]
DEVEL15-openafs-1-5-29-20071228

LICENSE IPL10

make 1.5.29

13 years agoDEVEL15-windows-release-notes-20071228
Jeffrey Altman [Fri, 28 Dec 2007 19:47:11 +0000]
DEVEL15-windows-release-notes-20071228

LICENSE MIT

update version number to 1.5.29

13 years agoDEVEL15-windows-syncop-20071228
Jeffrey Altman [Fri, 28 Dec 2007 15:47:43 +0000]
DEVEL15-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.

(cherry picked from commit 4d2c1d532bb44320afcf4debfee9ded403647e1e)

13 years agoDEVEL15-windows-get-buffer-20071228
Jeffrey Altman [Fri, 28 Dec 2007 07:26:00 +0000]
DEVEL15-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.

(cherry picked from commit 33aeecd83f8ce670269868145648ae6e277cf3cb)

13 years agoDEVEL15-windows-cell-aliases-20071228
Jeffrey Altman [Fri, 28 Dec 2007 07:13:15 +0000]
DEVEL15-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

(cherry picked from commit d942d97ed82b9f4b86fdea8443912ec64b28dd96)

13 years agoDEVEL15-windows-bkg-daemon-threads-20071228
Jeffrey Altman [Fri, 28 Dec 2007 07:09:11 +0000]
DEVEL15-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.

(cherry picked from commit 7a1253d1d180716f2aace6e8c115f845fbfe003d)

13 years agoDEVEL15-windows-default-chunksize-20071227
Jeffrey Altman [Thu, 27 Dec 2007 21:00:41 +0000]
DEVEL15-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.

(cherry picked from commit 1e262e133d2fa0464d6419b1acc6fd2c075f9dbd)

13 years agoDEVEL15-windows-callback-restore-multi-cell-servers-20071226
Jeffrey Altman [Wed, 26 Dec 2007 16:22:19 +0000]
DEVEL15-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.

(cherry picked from commit 56a82598b19e4232b0095c2b5778d4571c8aa9b2)

13 years agoDEVEL15-windows-pthread-20071225
Jeffrey Altman [Tue, 25 Dec 2007 23:06:14 +0000]
DEVEL15-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.

(cherry picked from commit b41b3bb52eaba52bba8fda0c49083322d6959238)

13 years agoDEVEL15-rx-event-handler-20071225
Jeffrey Altman [Tue, 25 Dec 2007 22:59:46 +0000]
DEVEL15-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.

(cherry picked from commit 6b1537b246732e4f7f67661d8230d051db8f3f8d)

13 years agoDEVEL15-man-page-license-change-20071225
Jason Edgecombe [Tue, 25 Dec 2007 22:29:58 +0000]
DEVEL15-man-page-license-change-20071225

LICENSE BSD

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

(cherry picked from commit 7dc4925cd35036e7f7b448d15a291791cd025e86)

13 years agoDEVEL15-man-page-misc-updates-20071225
Jason Edgecombe [Tue, 25 Dec 2007 22:26:43 +0000]
DEVEL15-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.

(cherry picked from commit 84ef02b0f392c761211adc7d5876217ad835c6c0)

13 years agoDEVEL15-man-page-fileserver-debug-20071225
Andrew Deason [Tue, 25 Dec 2007 22:23:43 +0000]
DEVEL15-man-page-fileserver-debug-20071225

LICENSE BSD

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

(cherry picked from commit 9f97c5cf74358116a109a4982588d61164456714)

13 years agoDEVEL15-windows-callback-revoke-multi-cell-servers-20071225
Jeffrey Altman [Tue, 25 Dec 2007 22:01:44 +0000]
DEVEL15-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.

(cherry picked from commit 69d62d59689c7cd9758177f1f23d3b60df3a8a40)

13 years agoDEVEL15-windows-hold-server-mutex-for-vol-list-20071223
Jeffrey Altman [Mon, 24 Dec 2007 05:30:37 +0000]
DEVEL15-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.

(cherry picked from commit b0bae13aec9acb944d5d6a64c11df857ffc40eb3)

13 years agoDEVEL15-windows-daemon-threads-shutdown-sync-20071223
Jeffrey Altman [Mon, 24 Dec 2007 05:24:14 +0000]
DEVEL15-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.

(cherry picked from commit 8a923a199d91aae6d1fc9bb6a2f1856fe5dbcb07)

13 years agoDEVEL15-windows-update-volume-status-20071223
Jeffrey Altman [Mon, 24 Dec 2007 05:19:09 +0000]
DEVEL15-windows-update-volume-status-20071223

LICENSE MIT

Refactor cm_UpdateVolumeStatus.  Revise behavior to treat volid 0 as
update the volume status for all volumes in the volume group.

(cherry picked from commit 815cd6f19ec37330e7829506c1208c9426b3a41f)

13 years agoDEVEL15-windows-server-lock-error-20071224
Jeffrey Altman [Mon, 24 Dec 2007 05:15:42 +0000]
DEVEL15-windows-server-lock-error-20071224

LICENSE MIT

The cm_serverLock must be write locked to modify the refCount

(cherry picked from commit 1b90fc5329dc7dd2055ab9150e3709b2b2cfac06)

13 years agoDEVEL15-windows-volstat-and-vista-dfs-support-20071222
Jeffrey Altman [Sun, 23 Dec 2007 04:52:58 +0000]
DEVEL15-windows-volstat-and-vista-dfs-support-20071222

LICENSE MIT

This patch completes the implementation of smb_ReceiveTran2GetDFSReferral()
which is called by Vista even if we do not advertise the support of DFS
referrals.  It also adds DFS link mapping notifications to the volstat
interface which can be used by volstat plug-ins to redirect requests to
the dfs target path.

Other miscellaneous items:

(1) return EAS_NOT_SUPPORTED instead of EA length 0 and silently accepting
    but not storing EA data

(2) Call cm_VolStatus_Service_Started() before smb initialization instead
    of afterwards

(3) During directory enumeration and link assembly push the UNC path into
    the lower levels by storing references to the tidPath and the relative
    paths within the cm_req_t object.

(4) During directory enumeration make absolutely sure that we do not
    reference an unallocated cm_dirEntry_t object

(5) publish a prototype for cm_FollowMountPoint()

(6) return ERROR_RETRY instead of BAD_NETWORK_PATH if the server returns
    VBUSY

(7) return PATH_NOT_COVERED instead of BADSHARENAME for DfsLinks when
    a volstat plugin is in use

(cherry picked from commit 150919d690eca9ee00d3ce549554a058662c360c)

13 years agoDEVEL15-windows-freelance-scache-20071222
Jeffrey Altman [Sun, 23 Dec 2007 04:16:54 +0000]
DEVEL15-windows-freelance-scache-20071222

LICENSE MIT

(1) remove a race condition caused by holding and releasing the
    cm_Freelance_Lock while using a pointer into a private freelance
    data structure

(2) do not reference a localMountPoint object that is not allocated

(3) properly assign the DFSLINK file type

(4) update the buffer data versions when we update the contents of
    the stat cache object and its buffers to match the registry
    contents

(cherry picked from commit bb77b085ff420d8b13c1a71b3144b6b31258ad3d)

13 years agoDEVEL15-windows-pioctl-listlink-20071222
Jeffrey Altman [Sun, 23 Dec 2007 03:44:58 +0000]
DEVEL15-windows-pioctl-listlink-20071222

LICENSE MIT

In the error case (1) reference the mountPointString instead of the
output of cm_AssembleLink() which was not generated and (2) do not
free memory and objects that were not allocated nor reference counted.

(cherry picked from commit 111fb3a0a9525bb9d618dfa23cd1df3eb8eb61c5)

13 years agoDEVEL15-windows-freelance-20071222
Jeffrey Altman [Sun, 23 Dec 2007 03:39:59 +0000]
DEVEL15-windows-freelance-20071222

LICENSE MIT

remove unused next field in cm_localMountPoint_t

(cherry picked from commit 0421cb2afcc19f05e83a2e415c3e93df8516da98)