]> git.michaelhowe.org Git - packages/o/openafs.git/log
packages/o/openafs.git
21 years agoSTABLE14-vol-bless-20041202
Jeffrey Hutzelman [Tue, 7 Dec 2004 06:06:17 +0000 (06:06 +0000)]
STABLE14-vol-bless-20041202

FIXES 15928

add volume blesser

(cherry picked from commit 93bc285e69f1588b04224e65424bfb7e67b14f6d)

21 years agoSTABLE14-linux26-set-mps-correctly-200412102
Jeffrey Hutzelman [Tue, 7 Dec 2004 06:05:41 +0000 (06:05 +0000)]
STABLE14-linux26-set-mps-correctly-200412102

FIXES 15645

set MPS correctly when compiling on 2.6

(cherry picked from commit f32f9810b188878e1e79b004873f91c1c538d40e)

21 years agoSTABLE14-libafsrpc-assertion-failed-20041202
Chaskiel M Grundman [Tue, 7 Dec 2004 06:04:18 +0000 (06:04 +0000)]
STABLE14-libafsrpc-assertion-failed-20041202

FIXES 16432

need AssertionFailed in libafsrpc. ndon't need casestrcpy in libafsauthent

(cherry picked from commit d8e6630fffbbc6635c49c8c6d45a4550144e7f94)

21 years agoSTABLE14-windows-pioctl-debug-20041130
Jeffrey Altman [Tue, 7 Dec 2004 06:03:40 +0000 (06:03 +0000)]
STABLE14-windows-pioctl-debug-20041130

Output the error number and not just the text string when reporting
failures from CreateFile.

(cherry picked from commit b208926c260105159bdf03bf219966a341e76197)

21 years agoSTABLE14-windows-notes-upd-20041130
Jeffrey Altman [Tue, 7 Dec 2004 06:03:14 +0000 (06:03 +0000)]
STABLE14-windows-notes-upd-20041130

update docs

(cherry picked from commit 53f0da3fb019cbc44bc012fbf0af0c85e7341381)

21 years agoSTABLE14-windows-auto-disable-sig-verify-20041130
Jeffrey Altman [Tue, 7 Dec 2004 06:02:46 +0000 (06:02 +0000)]
STABLE14-windows-auto-disable-sig-verify-20041130

If the desired cache size is greater then 700MB auto disable the
signature verification check in order to prevent fragmentation of
memory.

(cherry picked from commit 9ba17afadb859bf9e3ef912aa1a4c120b7998eb5)

21 years agoSTABLE14-windows-maxmem-20041130
Jeffrey Altman [Tue, 7 Dec 2004 06:02:22 +0000 (06:02 +0000)]
STABLE14-windows-maxmem-20041130

There is currently a maximum cache size of 1.3GB.  The limit is imposed
by the largest contiguous block of unused memory within the 2GB process
space which can be assigned to the memory mapped file.  Unfortunately,
when the executable digital signature verification code is activated
Windows sees fit to further segment the process memory which in turn
reduces the size of the maximum cache file to less then 800MB.  If
larger cache sizes are desired, a new registry value should be set:

  HKLM\SOFTWARE\OpenAFS\Client (DWORD) "VerifyServiceSignature" = 0x0

Setting this value will disable the runtime verification of digital
signatures on afsd_service.exe and the afs dlls which it loads.  It
will not disable the the version number check on those same files.
The signature verification is not a security messure and is only meant
to enhance the ability to afsd_service.exe to detect potential
destablizing mixtures of DLLs from incompatible distributions.

(cherry picked from commit f8ce184140b2f54bd2d82d4f62b47b5387225419)

21 years agoSTABLE14-windows-digital-sigs-and-more-20041130
Jeffrey Altman [Tue, 7 Dec 2004 06:01:41 +0000 (06:01 +0000)]
STABLE14-windows-digital-sigs-and-more-20041130

Switch the Trust Provider used to verify the validity of executables
and libraries to the Software Publisher Trust Provider.

Add code (with Asanka's help) to extract the certificate details and
log them to afsd_init.log.  Ensure that if files are signed that all
of the files are signed by the same entity.

Add a number of missing prototypes

Correct conversions from time_t to long or short.

(cherry picked from commit 852a0518624c13e45a4d0f2561b171687e07b9cc)

21 years agoSTABLE14-windows-clean-20041129
Asanka Herath [Tue, 7 Dec 2004 06:00:54 +0000 (06:00 +0000)]
STABLE14-windows-clean-20041129

Cleanup clean targets to not break with cmd shell

(cherry picked from commit 0f1892f09b123d8251c99e81106aae49b42d477e)

21 years agoSTABLE14-windows-dyn-symlinks-20041129
Jeffrey Altman [Tue, 7 Dec 2004 06:00:23 +0000 (06:00 +0000)]
STABLE14-windows-dyn-symlinks-20041129

in the freelance root.afs volume, instead of creating a mountpoint when
a name is evaluated and it is a partial representation of a cellname,
create a symlink.

(cherry picked from commit 1a050671c9af89857a31cd41e13c64e95ae7a8e3)

21 years agoSTABLE14-winverifytrust-20041129
Jeffrey Altman [Tue, 7 Dec 2004 05:59:54 +0000 (05:59 +0000)]
STABLE14-winverifytrust-20041129

Add support for WinVerifyTrust().  If afsd_service.exe is a digitally
signed executable, make sure that all of the associated binaries not
only have the same file version number but are signed as well.

(cherry picked from commit a3c06afa0b7a9a94248af080bc5208291c08e08f)

21 years agoSTABLE14-windows-freelance-init-20041127
Jeffrey Altman [Tue, 7 Dec 2004 05:59:27 +0000 (05:59 +0000)]
STABLE14-windows-freelance-init-20041127

replace the registry population scheme with cm_freelanceAddMount
based on the CellRootName

(cherry picked from commit a688328e8524f7232bfc294ea02b4d87d7172656)

21 years agoSTABLE14-windows-robust-freelance-20041126
Jeffrey Altman [Tue, 7 Dec 2004 05:58:52 +0000 (05:58 +0000)]
STABLE14-windows-robust-freelance-20041126

Implement new functions: cm_freelanceMountPointExists and
cm_freelanceSymlinkExists.  Use them along with other validity checks
in cm_freelanceAddMount and cm_freelanceAddSymlink to ensure that name
collisions do not occur and that empty strings are not valid file names.

A symlink may not have a name which would resolve to a valid cell name.
Doing so would prevent access to the cell.

(cherry picked from commit 3c487ecb59c0bace3a417245f639f7e3388ae5dc)

21 years agoSTABLE14-windows-scache-locks-20041126
Jeffrey Altman [Tue, 7 Dec 2004 05:58:20 +0000 (05:58 +0000)]
STABLE14-windows-scache-locks-20041126

replace all direct manipulations of the cm_scache_t refCount field
with calls to cm_{Hold,Release}SCache[NoLock]().

add missing call to cm_HoldScacheNoLock in freelance Mount Point
re-initialization code.

experiment a bit more with "special folders".   ensure that checks
for "desktop.ini" are case insensitive.

(cherry picked from commit 976465c87e027a3721a464324cf1d83c522dd996)

21 years agoSTABLE14-windows-ini-file-mapping-20041124
Dave Tanner [Tue, 7 Dec 2004 05:57:46 +0000 (05:57 +0000)]
STABLE14-windows-ini-file-mapping-20041124

Install registry values to force a mapping from afsdsbmt.ini file updates
via the old profile API to the new HKLM\Software\OpenAFS\Client\Submounts
key.

(cherry picked from commit 081993a6274866507bfa3969a7b692a24e6491e1)

21 years agoSTABLE14-netbsd21-20041124
Love Hörnquist-Åstrand [Tue, 7 Dec 2004 05:56:50 +0000 (05:56 +0000)]
STABLE14-netbsd21-20041124

netbsd 2.99.x (aka 3.0) support
(aka 2.1?)

(cherry picked from commit 2a7cf0d2ae5094dcf2b09e5794c86fe4326b9c4f)

21 years agoSTABLE14-windows-updates-20041124
Jeffrey Altman [Tue, 7 Dec 2004 05:55:40 +0000 (05:55 +0000)]
STABLE14-windows-updates-20041124

Fix the version info data stored in the resource block to
use the same language identifier as is advertised.

(cherry picked from commit 487bf88c403cbe0ae93b92556623913962b4b871)

21 years agoSTABLE14-freelance-import-20041122
Jeffrey Altman [Tue, 7 Dec 2004 05:54:43 +0000 (05:54 +0000)]
STABLE14-freelance-import-20041122

Fix the afs_freelance.ini import code.
Check both the Client install directory and the %WINDIR% directory
for afs_freelance.ini

(cherry picked from commit 50ca88be2a8dcce74ba9386d0161c39e46e1d57c)

21 years agoSTABLE14-windows-misc-20041122
Jeffrey Altman [Tue, 7 Dec 2004 05:53:09 +0000 (05:53 +0000)]
STABLE14-windows-misc-20041122

fix a deadlock situation if an Obtain Tokens dialog is produced
by an expiration event and the user chooses to cancel instead of
obtain new credentials.

(cherry picked from commit 06edeed70c9b3c7a2b8909c2069e720c97478799)

21 years agoSTABLE14-aklog-intergration-20041119
Ken Hornstein [Tue, 7 Dec 2004 05:51:24 +0000 (05:51 +0000)]
STABLE14-aklog-intergration-20041119

Import the aklog source from the MIT AFS-Kerberos 5 migration kit.

21 years agoSTABLE14-proc-cellservdb-20041110
Derrick Brashear [Tue, 7 Dec 2004 05:50:07 +0000 (05:50 +0000)]
STABLE14-proc-cellservdb-20041110

put a cellservdb in /proc/fs/openafs

(cherry picked from commit 9b579bf0f77b6832897c5b50fa6a5f6b40940717)

21 years agoSTABLE14-update-objdir-20041110
Nathan Neulinger [Tue, 7 Dec 2004 05:49:33 +0000 (05:49 +0000)]
STABLE14-update-objdir-20041110

make objdir builds work (with fix from shadow@dementia.org in src/rxkad/...)

(cherry picked from commit fbec56963df5d556056e4da37c3b6468a1ca69c5)

21 years agoSTABLE14-mask-loopback-address-allow-loopback-interfaces-to-be-advertised-20041110
Derrick Brashear [Tue, 7 Dec 2004 05:48:55 +0000 (05:48 +0000)]
STABLE14-mask-loopback-address-allow-loopback-interfaces-to-be-advertised-20041110

some software network adapters use instances of lo but are real network adapters
. allow them to be advertised. the modified functions are called only in the pro
cess of collecting a list to advertise.

at the same time, make sure we mask 127.0.0.1.
i wonder if that's a mistake.

(cherry picked from commit aa204b0a4b586a3bfec532c16bd64a5964f092f5)

21 years agoSTABLE14-provide-fPIC-method-for-amd64-20040508 openafs-devel-1_3_74
Derrick Brashear [Tue, 9 Nov 2004 19:35:50 +0000 (19:35 +0000)]
STABLE14-provide-fPIC-method-for-amd64-20040508

FIXES 3680

allow building fPIC on amd64

21 years agoSTABLE14-openafs-1374-20041109
Derrick Brashear [Tue, 9 Nov 2004 19:31:00 +0000 (19:31 +0000)]
STABLE14-openafs-1374-20041109

make this openafs 1.3.74

21 years agoSTABLE14-aix-vol-salvage-make-malloc-not-be-cast-20041106
Horst Birthelmer [Tue, 9 Nov 2004 17:20:26 +0000 (17:20 +0000)]
STABLE14-aix-vol-salvage-make-malloc-not-be-cast-20041106

When you have a 64bit big endian machine with a 64bit off_t in the stat
the salvager won't work.

Malloc takes an "unsigned long" and a implicit cast will be almost
always zero :-).

(cherry picked from commit c0dd32748f5a64676ddbc7897d1a622e0f250cd7)

21 years agoSTABLE14-ppc-linux26-20041108
Sam Hartman [Tue, 9 Nov 2004 17:19:55 +0000 (17:19 +0000)]
STABLE14-ppc-linux26-20041108

FIXES 15770

support ppc linux 2.6

(cherry picked from commit 565126d68eed60e5787be6202fb38619baeab3e5)

21 years agoSTABLE14-readdir-report-correct-inums-20041108
Jeffrey Hutzelman [Tue, 9 Nov 2004 17:19:16 +0000 (17:19 +0000)]
STABLE14-readdir-report-correct-inums-20041108

FIXES 15962

We currently try fairly hard to make stat() on a volume root return the
same vnode number as is listed for the mount point by readdir(). This
behaviour is desirable; in fact, getcwd would not work otherwise.

However, we are _not_ careful about making readdir list correct inode
numbers for "." in a volume root or ".." in a directory whose parent is
a volume root. This means that applications which examine these entries
will still see inconsistent inode numbers. Clearly, it would be more
desirable to report consistent inode numbers in all cases, instead of
only in some cases.

The attached patch, written while I was tracking down some NFS
translator problems (which ultimately proved to be unrelated), makes
readdir return consistent inode numbers for volume roots. We are
running this on a few machines and have seen no problems, but it has not
been extensively tested.

(cherry picked from commit c3d9ed3cb553747b9b317fc4794755ba98afc24b)

21 years agoSTABLE14-vfsck-sol9-breadwrite-args-20041108
Douglas Engert [Tue, 9 Nov 2004 17:18:48 +0000 (17:18 +0000)]
STABLE14-vfsck-sol9-breadwrite-args-20041108

FIXES 15927

fix arg types for bread/bwrite for solaris 9

(cherry picked from commit 40c1d00508b3ad9e4384ad7cc3f39f7a206c4014)

21 years agoSTABLE14-nfs3-no-readdirplus-20041108
Jeffrey Hutzelman [Tue, 9 Nov 2004 17:18:18 +0000 (17:18 +0000)]
STABLE14-nfs3-no-readdirplus-20041108

FIXES 15961

don't support readdirplus in nfsv3

(cherry picked from commit 31dd436712c7119a0bcb0ad534b7e9e6304dd298)

21 years agoSTABLE14-callback-rxcon-use-safely-20041108
Chaskiel M Grundman [Tue, 9 Nov 2004 17:17:49 +0000 (17:17 +0000)]
STABLE14-callback-rxcon-use-safely-20041108

FIXES 15973

add get/put refs to all callback rxconn usages to preclude any possibility of race

(cherry picked from commit 08af3229f3c4d961e5d662e049476229fbb11767)

21 years agoSTABLE14-nfs-root-mtime-20041108
Jeffrey Hutzelman [Tue, 9 Nov 2004 17:17:25 +0000 (17:17 +0000)]
STABLE14-nfs-root-mtime-20041108

FIXES 15960

don't reset root mtime, solaris 9 wants it to be the same across multiple calls

(cherry picked from commit 884335d78318aca00293245c9d481fd285ceba59)

21 years agoSTABLE14-any-way-damnit-20041107
Derrick Brashear [Tue, 9 Nov 2004 17:16:40 +0000 (17:16 +0000)]
STABLE14-any-way-damnit-20041107

no comment.

(cherry picked from commit ee23c5f90a7069bd8203fbf44575da361a63d7b8)

21 years agoSTABLE14-mask-loopback-address-allow-loopback-interfaces-to-be-advertised-20041106
Derrick Brashear [Tue, 9 Nov 2004 17:16:12 +0000 (17:16 +0000)]
STABLE14-mask-loopback-address-allow-loopback-interfaces-to-be-advertised-20041106

some software network adapters use instances of lo but are real network adapters
. allow them to be advertised. the modified functions are called only in the pro
cess of collecting a list to advertise.

at the same time, make sure we mask 127.0.0.1.
i wonder if that's a mistake.

(cherry picked from commit 27fbf495163784c7d9a88001441b671f446ce547)

21 years agoSTABLE14-client-dir-package-interface-update-20041106
Chaskiel M Grundman [Tue, 9 Nov 2004 17:14:57 +0000 (17:14 +0000)]
STABLE14-client-dir-package-interface-update-20041106

FIXES 15726

cleanup from dread-do-validation; change to using dcache and not just fcache

(cherry picked from commit 10c1abfa31273ebf99c5eaf401cb8c5b9e8df0dd)

21 years agoSTABLE14-vos-timestamp-handling-20041106
Kris Van Hees [Tue, 9 Nov 2004 17:13:45 +0000 (17:13 +0000)]
STABLE14-vos-timestamp-handling-20041106

FIXES 15708

fix timestamp handling on create; display "never" for copy time

(cherry picked from commit 756488a8395b5c45ceb383ca0106164e24bcb66c)

21 years agoSTABLE14-irix-largefile-update-20041104
Chas Williams [Tue, 9 Nov 2004 17:13:17 +0000 (17:13 +0000)]
STABLE14-irix-largefile-update-20041104

from peter tripician via chas. update so largefile support stands a chance of working

(cherry picked from commit 6dce8ba4e23c6482856aaf35cb5dc5168ef054cc)

21 years agoSTABLE14-openbsd36-20041104
Jim Rees [Tue, 9 Nov 2004 17:12:27 +0000 (17:12 +0000)]
STABLE14-openbsd36-20041104

auto-detect OpenBSD 3.6.

(cherry picked from commit df99b514f619cde44b223a0e1f22ba856e548842)

21 years agoSTABLE14-fbsd53-20041027
Jim Rees [Tue, 9 Nov 2004 17:11:34 +0000 (17:11 +0000)]
STABLE14-fbsd53-20041027

support for FreeBSD 5.3
builds and runs as well as it did on 5.2

(cherry picked from commit e751ec6a3683a175e1cdad910dd1311d61f632e1)

21 years agoSTABLE14-acinclude-fbsd-20041027
Jim Rees [Tue, 9 Nov 2004 17:10:59 +0000 (17:10 +0000)]
STABLE14-acinclude-fbsd-20041027

auto-detect FreeBSD 5.3

(cherry picked from commit 5bacdac16c2efda7a22125ce89cc617d6ba2c285)

21 years agoSTABLE14-irix-cleanup-20041019
Derrick Brashear [Tue, 9 Nov 2004 17:09:39 +0000 (17:09 +0000)]
STABLE14-irix-cleanup-20041019

clean up my messes.

(cherry picked from commit 37e865b235ad6e7d85c4cc47f842d60c60965b4a)

21 years agoSTABLE14-windows-version-bump-20041109
Jeffrey Altman [Tue, 9 Nov 2004 17:09:08 +0000 (17:09 +0000)]
STABLE14-windows-version-bump-20041109

1.3.7400

(cherry picked from commit 248aa3980eb4cf35d153119ed88b94a129ea9198)

21 years agoSTABLE14-configure-linux-header-path-help-20041018
Derrick Brashear [Tue, 9 Nov 2004 17:05:33 +0000 (17:05 +0000)]
STABLE14-configure-linux-header-path-help-20041018

thanks to Kris Van Hees for pointing this out

(cherry picked from commit efee9917cbb3130dfd73b5f064c4ff266c284333)

21 years agoSTABLE14-windows-pullup-20041105
Jeffrey Altman [Fri, 5 Nov 2004 19:21:32 +0000 (19:21 +0000)]
STABLE14-windows-pullup-20041105

Pullup of all changes since the 1.3.72/73 release

21 years agoSTABLE14-inlinebulk-put-ref-on-error-20041028
Derrick Brashear [Thu, 28 Oct 2004 21:47:23 +0000 (21:47 +0000)]
STABLE14-inlinebulk-put-ref-on-error-20041028

if we got an error during InlineBulk, put back the reference

(cherry picked from commit a3da9532a930720e4e9fba5f6520c3c9e1d67bc4)

21 years agoSTABLE14-drop-h-lock-around-putconn-20041027
Derrick Brashear [Thu, 28 Oct 2004 19:09:04 +0000 (19:09 +0000)]
STABLE14-drop-h-lock-around-putconn-20041027

the problem with rx_PutConnection is h_FreeConnection uses the host global lock

====================
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.
====================

the problem with rx_PutConnection is h_FreeConnection uses the host global lock
but it shouldn't matter (callback conn should be a client not server conn and
thus not h_FreeConnection on cleanup)

further, we should free the conns we GetConnection'd not the ones still in
the host struct at the end.

(cherry picked from commit 2fbfef7f9157aad571307564faae1ce7aae4e3be)

21 years agoSTABLE14-windows-version-update-20041018
Jeffrey Altman [Mon, 18 Oct 2004 21:26:51 +0000 (21:26 +0000)]
STABLE14-windows-version-update-20041018

1.3.3700

(cherry picked from commit 78736ba21b90199de364f235aa7d03cd3ec6666d)

21 years agoSTABLE14-resync-20041018 openafs-devel-1_3_73
Derrick Brashear [Mon, 18 Oct 2004 18:43:44 +0000 (18:43 +0000)]
STABLE14-resync-20041018

cheat. pull in all the 1.3.72->head changes in one delta

21 years agoSTABLE14-resync-20041018 openafs-devel-1_3_72
Derrick Brashear [Mon, 18 Oct 2004 08:11:37 +0000 (08:11 +0000)]
STABLE14-resync-20041018

cheat. pull in all the 1.3.71->head changes in one delta

21 years agoSTABLE14-windows-version-20041017
Jeffrey Altman [Mon, 18 Oct 2004 05:21:25 +0000 (05:21 +0000)]
STABLE14-windows-version-20041017

Update version to 1.3.7200

(cherry picked from commit 8e335f4079d2c62d7cfe932eb46b59b8ceb695c1)

21 years agoSTABLE14-winnotes-cummulative-20041017
Jeffrey Altman [Mon, 18 Oct 2004 05:11:49 +0000 (05:11 +0000)]
STABLE14-winnotes-cummulative-20041017

Changes for 1.3.72

21 years agoSTABLE14-windows-cumulative-20041017
Jeffrey Altman [Mon, 18 Oct 2004 05:09:25 +0000 (05:09 +0000)]
STABLE14-windows-cumulative-20041017

Cummulative update of changes including:

  * Add code to block the issuance of AFS tokens by aklog.exe or
    afscreds.exe when the Kerberos 5 principal name contains a dot.

  * Modify the IsAdmin() function to always treat the local SYSTEM
    account as an AFS client administrator.  Affects fs.exe and
    afs_config.exe.

  * Modify the internal handling of Quota Exceeded errors

  * Upgrade all reference count fields in the Windows cache manager
    and the osi library to use unsigned long instead of signed short.
    A similar fix has been applied to the afs rpc (rx) library.

  * fix the Windows cache manager to prevent it from replacing the
    rx_connection object associated with the cm_conn_t object on each
    and every operation if "fs crypt" was set.  This explains the
    dramatic performance difference when crypt is used vs clear.
    The problem: 'cryptall', a boolean flag indicating whether or not
    "fs crypt" is set, was being compared to the rx_connection
    cryptlevel which is either rxkad_clear:0 or rxkad_crypt:2.
    1 != 2 and therefore the rx_connection was always destroyed
    and replaced on each and every operation.

    Lock the cm_conn_t object around every call to RXAFS_xxxx functions.
    It is not safe for the cm_conn_t object to not be locked because
    rx_DestroyConnection might be called from another thread if:
        - the user's tokens have changed or expired
        - the crypt mode has changed

    This fix appears to have also taken care of the problems associated
    with Overlapped Writes resulting in Delayed Write errors.

  * fix NSIS installer's AdminGroup.exe to properly create and
    remove groups when given -create or -remove.  The string comparison
    test was wrong.

  * fs sysname now accepts a list of sysname values

  * added a new registry value HKLM\SOFTWARE\OpenAFS\Client "IoctlDebug"
    DWORD which when set to a non-zero value will cause error message
    text to be output to stderr from the pioctl() routine.  Useful in
    debugging failures of fs.exe, tokens.exe, etc.

  * added a test to the power management code to only perform a
    flush operation if there is at least one network adapter which
    is not a loopback adapter.

  * Fix bug in loading of registry value HKLM\SOFTWARE\OpenAFS\Client
    "EnableKFW".  This value will not be read if the key
    HKCU\SOFTWARE\OpenAFS\Client exists; even if the "EnableKFW"
    value under that key does not.

  * provide mechanisms to force the use of krb524d for Kerberos 5
    ticket to AFS token conversion.  For afslogon.dll and afscreds.exe
    there is a new registry value "Use524" and for aklog.exe a new
    command line parameter "-m".

  * Fix the pattern matching algorithm to properly match patterns
    ending with a '*'.

  * smb_ReceiveCoreRename() was factored to produce smb_Rename()
    which is used by both the original function and the new
    smb_ReceiveNTRename().  smb_ReceiveNTRename() supports the
    creation of HardLinks in addition to Renaming.  smb_Link()
    is a new function which creates HardLinks via cm_Link().
    cm_Link() is a new vnodeops function which creates links
    using RXAFS_Link().

    smb_ReceiveNTRename() does not support the File Copy and
    Move Cluster Information operations described in its interface.
    ReceiveNTRename is under documented in CIFS-TR-1p00_FINAL.pdf.

  * When opening files via symlinks, we should follow the symlinks
    until we reach the actual file stat cache entry.  The stat cache
    entry of the file should then be stored in the FID instead of
    stat scache entry of the symlink.

  * return bad operation errors for all unimplemented functions
    even if we do not know the functions exist.

  * Log bad packets and unknown operation packets to the trace log

  * Map CM_ERROR_BADOP to STATUS_NOT_SUPPORTED instead of
    0xC09820FF

  * Update list of known CIFS operations to include all those listed
    in CIFS-TR-1p00_FINAL.pdf.

  * Modify the handling of HKLM\SOFTWARE\OpenAFS\Client\Submounts
    to support the REG_EXPAND_SZ type.

21 years agoSTABLE14-windows-combined-20041010
Jeffrey Altman [Mon, 11 Oct 2004 00:52:04 +0000 (00:52 +0000)]
STABLE14-windows-combined-20041010

  * fix the Windows cache manager to prevent it from replacing the
    rx_connection object associated with the cm_conn_t object on each
    and every operation if "fs crypt" was set.  This explains the
    dramatic performance difference when crypt is used vs clear.
    The problem: 'cryptall', a boolean flag indicating whether or not
    "fs crypt" is set, was being compared to the rx_connection
    cryptlevel which is either rxkad_clear:0 or rxkad_crypt:2.
    1 != 2 and therefore the rx_connection was always destroyed
    and replaced on each and every operation.

    Lock the cm_conn_t object around every call to RXAFS_xxxx functions.
    It is not safe for the cm_conn_t object to not be locked because
    rx_DestroyConnection might be called from another thread if:
        - the user's tokens have changed or expired
        - the crypt mode has changed

  * Modify cm_Lookup to evaluate a list of possible values for @sys
    instead of just a single entry.  Re-write cm_ExpandSysname and
    add cm_LookupInternal.

  * Reformat affected files

  * Add cache file name to cache creation errors

(cherry picked from commit d8453a3f467e6350da304dbc0f494591737662cd)

21 years agoSTABLE14-fix-missing-config-quote-20040826
Jim Rees [Sat, 9 Oct 2004 06:05:06 +0000 (06:05 +0000)]
STABLE14-fix-missing-config-quote-20040826

fix missing quote and CPPFLAGS from last commit

(cherry picked from commit 33460d3571b0faf4ca394aa6f7f4980b20942895)

21 years agoSTABLE14-admin-group-nsis-20041004
Jeffrey Altman [Mon, 4 Oct 2004 08:35:38 +0000 (08:35 +0000)]
STABLE14-admin-group-nsis-20041004

correct the test for -create and -remove so that the proper
action is taken for each

(cherry picked from commit 04ec8ea29d1440beca6e8be9bac12a64650c900b)

21 years agoSTABLE14-pioctl-debug-20041003
Jeffrey Altman [Sun, 3 Oct 2004 15:07:34 +0000 (15:07 +0000)]
STABLE14-pioctl-debug-20041003

Add a new registry value HKLM/SOFTWARE/OpenAFS/Client "IoctlDebug" DWORD
which when set to a non-zero value will output error messages to stderr.
This is to assist in debugging ioctl failures when fs.exe, tokens.exe,
etc. fail because of an inability to open the ioctl file name.

(cherry picked from commit e845efc4428fa5764eb5e450b7f5ec8a805eb4f7)

21 years agoSTABLE14-windows-symlink-access-20041003
Jeffrey Altman [Sun, 3 Oct 2004 14:52:12 +0000 (14:52 +0000)]
STABLE14-windows-symlink-access-20041003

FIXES 15250

One more fix for the symlink problem.  Access control checks cannot be
performed until after we have walked all of the symlinks.  Otherwise,
we are checking access to the symlink itself and not to the file.

(cherry picked from commit fdaf6f793398fb7dd61bdb7030447918dbe30b38)

21 years agoSTABLE14-win-power-mgmt-flush-test-20041003
Jeffrey Altman [Sun, 3 Oct 2004 14:35:15 +0000 (14:35 +0000)]
STABLE14-win-power-mgmt-flush-test-20041003

The windows power management code responds to a request to suspend or
hibernate by performing a "fs flushvol" as the logged in user on each
of the SMB/CIFS mounted shares.  This can be very time consuming if
the cell servers cannot be reached.

This patch adds a test to ensure that there is at least one network
adapter in the machine which is not a loopback adapter.

While developing this patch other areas of concern have been raised.
The power management code waits a fixed period of time based upon
the hard dead timeout before allowing the suspend/hibernate to continue.
This allows the machine to shutdown even if there are active flush
operations being performed.  This defeats the benefit of performing
the flush at all.

A better mechanism could be developed if the functions called via
cm_IoctlFlushVolume returned and checked error codes.  Then it might
be possible to abandon the flush operation if a Server Not Reachable
state was obtained.

The power management flush operations will also not work on Terminal
Server.  This would be important in the case where a terminal server
is shutting down due to a switch over to a UPS.  The reason it does
not work on Terminal Server is that there is that it is not possible
for afsd_service.exe to enumerate the SMB/CIFS shares and impersonate
the individual logged in users.

It would be preferred for there to be a new cm_FlushAll() function
implemented which was not dependent on the use of the ioctl mechanism
for the purpose of identifying a volume ID or a user ID.

(cherry picked from commit 2469663d0d4b2df8100ec8e09954163ddf1aa042)

21 years agoSTABLE14-kfw-hklm-registry-fix-20040922
Jeffrey Altman [Wed, 22 Sep 2004 16:07:40 +0000 (16:07 +0000)]
STABLE14-kfw-hklm-registry-fix-20040922

Fix the registry query in afskfw.lib to read the HKLM machine value
even if the HKCU key is present.

Update text in the install notes to better describe the krb524
issues

(cherry picked from commit d69e6641e5fc423b41fcfc9345a6f917ec958f37)

21 years agoSTABLE14-windows-force-krb524-20030921
Jeffrey Altman [Wed, 22 Sep 2004 07:03:19 +0000 (07:03 +0000)]
STABLE14-windows-force-krb524-20030921

Provide mechanisms to force the use of krb524 via afscreds, afslogon,
and aklog.  afslogon and afscreds rely on a new "Use524" registry value
(see registry.txt) and aklog has a new "-m" command line option.

(cherry picked from commit b40090233989aad1b96fdd9fd9d8d0478c2abd6e)

21 years agoSTABLE14-cifs-pattern-match-20040921
Jeffrey Altman [Tue, 21 Sep 2004 21:07:58 +0000 (21:07 +0000)]
STABLE14-cifs-pattern-match-20040921

FIXES 15365

The pattern matching algorithm was failing to match strings when the
pattern terminated in a '*'.  The logic was also too complex because
it failed to simply the patterns prior to processing.  Any combination
of '*' and '?' == '*' according to the Windows file name pattern
matching rules.

(cherry picked from commit a135e0d30c077e19c3f10f7a6ccc46fa3fb6c234)

21 years agoSTABLE14-windows-links-20040921
Jeffrey Altman [Tue, 21 Sep 2004 15:07:12 +0000 (15:07 +0000)]
STABLE14-windows-links-20040921

FIXES 915
FIXES 15250

  * smb_ReceiveCoreRename() was factored to produce smb_Rename()
    which is used by both the original function and the new
    smb_ReceiveNTRename().  smb_ReceiveNTRename() supports the
    creation of HardLinks in addition to Renaming.  smb_Link()
    is a new function which creates HardLinks via cm_Link().
    cm_Link() is a new vnodeops function which creates links
    using RXAFS_Link().

    smb_ReceiveNTRename() does not support the File Copy and
    Move Cluster Information operations described in its interface.
    ReceiveNTRename is under documented in CIFS-TR-1p00_FINAL.pdf.

  * When opening files via symlinks, we should follow the symlinks
    until we reach the actual file stat cache entry.  The stat cache
    entry of the file should then be stored in the FID instead of
    stat scache entry of the symlink.

  * return bad operation errors for all unimplemented functions
    even if we do not know the functions exist.

  * Log bad packets and unknown operation packets to the trace log

  * Map CM_ERROR_BADOP to STATUS_NOT_SUPPORTED instead of
    0xC09820FF

  * Update list of known CIFS operations to include all those listed
    in CIFS-TR-1p00_FINAL.pdf.

(cherry picked from commit e07406e551cc5c67e83c9985dbbfe5952ada6518)

21 years agoSTABLE14-nsis-1400-compiler-20040908
Jeffrey Altman [Thu, 9 Sep 2004 21:19:51 +0000 (21:19 +0000)]
STABLE14-nsis-1400-compiler-20040908

Add support for MS VS 2005

(cherry picked from commit 8c887b207210e0b7b01d2c8621149e8a92d0224c)

21 years agoSTABLE14-windows-misc-20040907
Jeffrey Altman [Wed, 8 Sep 2004 06:59:01 +0000 (06:59 +0000)]
STABLE14-windows-misc-20040907

replace QWORD with DWORD

====================
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.
====================

add expanded registry string support to Submounts

====================

Correct a 64-bit time_t error

(cherry picked from commit f31658317a77346759f165ff13b5dcf77a8b3683)

21 years agoSTABLE14-placate-netbsd-cc-20040826
Nickolai Zeldovich [Sun, 29 Aug 2004 02:18:56 +0000 (02:18 +0000)]
STABLE14-placate-netbsd-cc-20040826

netbsd's cc doesn't like multiple semicolons in variable declarations,
so move OSI_VC_CONVERT down to the last statement

(cherry picked from commit 4d906fec23916230936763ef36d6bc7a79c8eebf)

21 years agoSTABLE14-linux-5-arg-sock-create-20040825
Sven Menke [Wed, 25 Aug 2004 21:40:13 +0000 (21:40 +0000)]
STABLE14-linux-5-arg-sock-create-20040825

update for sock_create 5 arg with a better configure test

(cherry picked from commit cb1b41b159b98881f66319d7f65d941ba9fab911)

21 years agoSTABLE14-revert-linux26-selinux-20040621 openafs-devel-1_3_71
Derrick Brashear [Wed, 25 Aug 2004 08:41:00 +0000 (08:41 +0000)]
STABLE14-revert-linux26-selinux-20040621

well, i'm not sure what the right way to deal is, seeing as this change weas reverted later in the kernel

(cherry picked from commit 1d6cf7729ca06c95eb4dd8b2f72d61bda6010304)

21 years agoSTABLE14-netbsd20-config-20040810
Love Hörnquist-Åstrand [Wed, 25 Aug 2004 08:39:30 +0000 (08:39 +0000)]
STABLE14-netbsd20-config-20040810

cleanup config files for NetBSD 2.0

(cherry picked from commit cf8a163c20179d76075653af243305446604bc92)

21 years agoSTABLE14-no-interleave-on-solaris-9-20040825
Derrick Brashear [Wed, 25 Aug 2004 08:22:22 +0000 (08:22 +0000)]
STABLE14-no-interleave-on-solaris-9-20040825

a patch does away with it and it doesn't look like we need to care

(cherry picked from commit 5e1c6d613544574e61aedbf456fbd6f36c04383f)

21 years agoSTABLE14-get-ready-for-71-20040825
Derrick Brashear [Wed, 25 Aug 2004 08:20:25 +0000 (08:20 +0000)]
STABLE14-get-ready-for-71-20040825

work around aix problem
update configure scripts

21 years agoSTABLE14-kdb-enhancement-20040820
Alf Wachsmann [Wed, 25 Aug 2004 08:18:06 +0000 (08:18 +0000)]
STABLE14-kdb-enhancement-20040820

FIXES 6355

- It resolves all IP addresses to names unless the "-numeric"
  parameter is used.
  This is the same behavior as "fs listcells [-numeric]"

- If the "-numeric" parameter is used, IP address will be printed
  in dotted decimal form instead of a 8 digit hex string.

- A new parameter "-long" allows to print all information for all
  entries in the log.
  This is the same info you get for entry XYZ when called with
  "-key XYZ" only you get this for _all_ keys.
  The output is slow if not also called together with "-numeric

(cherry picked from commit e82bc5223192fc2a7270aec53aed951ba4a24cae)

21 years agoSTABLE14-aix-config-guess-20040819
Steve Roseman [Wed, 25 Aug 2004 08:17:32 +0000 (08:17 +0000)]
STABLE14-aix-config-guess-20040819

FIXES 6352

detect aix 5

(cherry picked from commit 59cc46ef7e41d21288034df0a850b1c2ca7b4e5c)

21 years agoSTABLE14-fix-indent-bug-with-lock-macros-part-four-20040819
Nickolai Zeldovich [Wed, 25 Aug 2004 08:17:01 +0000 (08:17 +0000)]
STABLE14-fix-indent-bug-with-lock-macros-part-four-20040819

Thanks to jaltman for pointing out some files I missed
(basically those in two-level deep directories).

(cherry picked from commit b0f773c41c68fd7833a669693d30b27a12f3ba8e)

21 years agoSTABLE14-aix-5-updates-20040819
Hartmut Reuter [Wed, 25 Aug 2004 08:16:11 +0000 (08:16 +0000)]
STABLE14-aix-5-updates-20040819

updates to aix 5 code since last patches

(cherry picked from commit 481b170d88e1821bd4d498e3c75e514facbff0a5)

21 years agoSTABLE14-aix52-updates-20040819
Horst Birthelmer [Wed, 25 Aug 2004 08:15:34 +0000 (08:15 +0000)]
STABLE14-aix52-updates-20040819

make des crypt module be built without optimization.
make aix 5.2 be "supported"
make ukernel work on aix 5

(cherry picked from commit c18d67d9a0d653b6557824d3583c827f076e29d3)

21 years agoSTABLE14-fix-indent-bug-with-lock-macros-part-two-20040818
Nickolai Zeldovich [Wed, 25 Aug 2004 08:14:19 +0000 (08:14 +0000)]
STABLE14-fix-indent-bug-with-lock-macros-part-two-20040818

Add trailing semicolons to _LOCK and _UNLOCK macros and re-indent.
This should've been in fix-indent-bug-with-lock-macros-20030729
but somehow it slipped by and I've only found it now.

(cherry picked from commit 788ca86bdc139ee42aeecceb4b453c87bfd2426f)

21 years agoSTABLE14-aix-make-install-install-everything-20040818
Derrick Brashear [Wed, 25 Aug 2004 08:13:48 +0000 (08:13 +0000)]
STABLE14-aix-make-install-install-everything-20040818

install the other stuff when you make install

(cherry picked from commit 0ed8f55d597a247980412f004852446d8f138324)

21 years agoSTABLE14-attachserverproc-dont-dequeue-if-not-in-queue-take-two-20040818
Derrick Brashear [Wed, 25 Aug 2004 08:13:09 +0000 (08:13 +0000)]
STABLE14-attachserverproc-dont-dequeue-if-not-in-queue-take-two-20040818

nWaiting ended up negative, because the dequeuer (GetCall) decremented.

(cherry picked from commit 399785acf166dac15123889c28974ff06d6d2de0)

21 years agoSTABLE14-butc-xbsa-cleanup-20040818
Derrick Brashear [Wed, 25 Aug 2004 08:12:37 +0000 (08:12 +0000)]
STABLE14-butc-xbsa-cleanup-20040818

make things compile when xbas is defined.

(cherry picked from commit 4d44764c157b1310de81e010975ae5867028fa5b)

21 years agoSTABLE14-banish-fstrace-trydcachechildren-entirely-20040818
Derrick Brashear [Wed, 25 Aug 2004 08:12:10 +0000 (08:12 +0000)]
STABLE14-banish-fstrace-trydcachechildren-entirely-20040818

we really don't need this...

(cherry picked from commit 5ca50c575abed691bf2e726f84f35241fcef8242)

21 years agoSTABLE14-aix-install-cfgafs-20040818
Derrick Brashear [Wed, 25 Aug 2004 08:11:34 +0000 (08:11 +0000)]
STABLE14-aix-install-cfgafs-20040818

based on feedback from tdamato@odu.edu

(cherry picked from commit 9a39ae21fea305029f1bcdc6a864170ff6503793)

21 years agoSTABLE14-ubik-multihome-byte-order-problem-20040818
Hartmut Reuter [Wed, 25 Aug 2004 08:11:03 +0000 (08:11 +0000)]
STABLE14-ubik-multihome-byte-order-problem-20040818

"Playing around with multi-address database servers on little-endian machines
I found out that there is one conversion of the ip-address too much"

(cherry picked from commit 6f1cd5a43e1240ecc7a964b8236e25e1d0e46fca)

21 years agoSTABLE14-linux-kernel-header-tests-20040818
Derrick Brashear [Wed, 25 Aug 2004 08:10:36 +0000 (08:10 +0000)]
STABLE14-linux-kernel-header-tests-20040818

check for existance of some headers (in_systm.h, mm_inline.h) to decide on inclusion

(cherry picked from commit fc441042fcfe619cc8fac528886782caed12ab48)

21 years agoSTABLE14-fix-indent-bug-with-lock-macros-part-three-20040818
Nickolai Zeldovich [Wed, 25 Aug 2004 08:09:32 +0000 (08:09 +0000)]
STABLE14-fix-indent-bug-with-lock-macros-part-three-20040818

Add trailing semicolons to more macros and re-indent.

(cherry picked from commit 06478aeaae1e7812230f31c63e9cae8b7cc1b643)

21 years agoSTABLE14-fix-too-many-close-parens-20040818
Nickolai Zeldovich [Wed, 25 Aug 2004 08:07:53 +0000 (08:07 +0000)]
STABLE14-fix-too-many-close-parens-20040818

Noone seems to be using this code anyway, as it's been non-compilable
for 2 years now.  But indent noticed that we have too many close-parens
in there, so might as well fix it...

(cherry picked from commit 3fa71885aecae85a3ddadc04dd1fcbfaa2a7e8b0)

21 years agoSTABLE14-initialize-i-security-20040816
Kris Van Hees [Wed, 25 Aug 2004 08:04:05 +0000 (08:04 +0000)]
STABLE14-initialize-i-security-20040816

modern 2.6 kernels with i_security need this such that if the i_security field got garbage-collected out from under us we don't deref a null pointer.

(cherry picked from commit e6c7148abed9f88d6dd83ce8dba77a434cce231a)

21 years agoSTABLE14-s390x-20040811
Sven Oehme [Wed, 25 Aug 2004 08:03:32 +0000 (08:03 +0000)]
STABLE14-s390x-20040811

zLinux on S390x (64 bit S390)

(cherry picked from commit 8651d7a69315735db866e7bf6a9539e10a6b1f9f)

21 years agoSTABLE14-netbsd-lwp-no-param-h-20040810
Love Hörnquist-Åstrand [Wed, 25 Aug 2004 08:00:41 +0000 (08:00 +0000)]
STABLE14-netbsd-lwp-no-param-h-20040810

fix NetBSD process.o build

(cherry picked from commit 46b847e3678f01b5f1bd2ef4db54cb66a55d057e)

21 years agoSTABLE14-libafsauthent-mapfile-update-20040823
Derrick Brashear [Wed, 25 Aug 2004 07:59:31 +0000 (07:59 +0000)]
STABLE14-libafsauthent-mapfile-update-20040823

export a few more symbols

(cherry picked from commit f1ff3887a269a541eb42b13c7e743ad0394e0bef)

21 years agoSTABLE14-version-update-20040823
Jeffrey Altman [Tue, 24 Aug 2004 08:10:19 +0000 (08:10 +0000)]
STABLE14-version-update-20040823

1.3.71

(cherry picked from commit 854d15634a149777070a08ebe8ce59029e88f2e2)

21 years agoSTABLE14-expand-drive-mappings-20040823
Jeffrey Altman [Mon, 23 Aug 2004 20:38:36 +0000 (20:38 +0000)]
STABLE14-expand-drive-mappings-20040823

Drive mappings are now per user and stored in the registry.  Allow
them to continue to use environment variables in the paths.

(cherry picked from commit bca5ba20e678ffc7b5dbbd3d9e2760b16b1ff1a9)

21 years agoSTABLE14-windows-admin-group-20040823
Jeffrey Altman [Mon, 23 Aug 2004 16:55:02 +0000 (16:55 +0000)]
STABLE14-windows-admin-group-20040823

Update text files for 1.3.71 and describe the new Windows Authorization
Group "AFS Client Admins"

====================
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.
====================

Add support for "AFS Client Admins" windows authortization group

(cherry picked from commit 40d2f5f7c02e28cf471d284e5be9fb97c91d145a)

21 years agoSTABLE14-afslogon-20040820
Rolandas Naujikas [Fri, 20 Aug 2004 21:17:00 +0000 (21:17 +0000)]
STABLE14-afslogon-20040820

Modifications to support local machine profiles redirected to AFS

(cherry picked from commit 97031c31689312a783630e1c270372a063949e46)

21 years agoSTABLE14-wix-admin-20040820
Asanka Herath [Fri, 20 Aug 2004 21:15:19 +0000 (21:15 +0000)]
STABLE14-wix-admin-20040820

- Move product code into NTMakefile.i386_nt40

====================
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.
====================

- Support administrative installations ( 'msiexec /a openafs-en_US.msi')

- Register services as interactive

- Move product code into NTMakefile.i386_nt40

(cherry picked from commit 65884b7d946f045f0f3c6ee15f0d808181e6e756)

21 years agoSTABLE14-callback-deadlock-20040819
Jeffrey Altman [Thu, 19 Aug 2004 20:51:23 +0000 (20:51 +0000)]
STABLE14-callback-deadlock-20040819

cm_CallbackNotifyChange(scp); must not be called with scp locked

(cherry picked from commit 7c01e673176e9de75620a9765aacc25324ce36a4)

21 years agoSTABLE14-non-ad-afs-profile-20040819
Rolandas Naujikas [Thu, 19 Aug 2004 20:50:58 +0000 (20:50 +0000)]
STABLE14-non-ad-afs-profile-20040819

NetUserGetProfilePath function provided by Rolandas Naujikas

(cherry picked from commit f2b18e7af85093f88b8afb8d7a344fd15fc90164)

21 years agoSTABLE14-time_t-20040818
Jeffrey Altman [Wed, 18 Aug 2004 18:52:30 +0000 (18:52 +0000)]
STABLE14-time_t-20040818

Make sure the response of time() is stored in a time_t

(cherry picked from commit 3de51188f75dd1503c300d87cc00c30b0ba4a0b0)

21 years agoSTABLE14-time_t-200408018
Jeffrey Altman [Wed, 18 Aug 2004 18:11:22 +0000 (18:11 +0000)]
STABLE14-time_t-200408018

time values in the cache manager and smb engine which are passed to
the run time library must be of type time_t and not long or int or
unsigned long or unsigned int or ...

(cherry picked from commit f21740a0acc44ae5493bbe1f53b94acc14af0ac8)

21 years agoSTABLE14-cellservdb-20040817
Jeffrey Altman [Tue, 17 Aug 2004 21:17:16 +0000 (21:17 +0000)]
STABLE14-cellservdb-20040817

update to current gco

(cherry picked from commit ddaba14e372c96f572b0762f1f0de824aac06d5a)

21 years agoSTABLE14-osilog-messages-20040817
Jeffrey Altman [Tue, 17 Aug 2004 18:16:02 +0000 (18:16 +0000)]
STABLE14-osilog-messages-20040817

move the cm_GetCell_gen debug messages to the trace log

(cherry picked from commit 202a27f07329527f2a488d8d949b572879846aab)