openafs.git
12 years agoDEVEL15-remove-administration-reference-20080627
Russ Allbery [Sat, 28 Jun 2008 07:38:00 +0000]
DEVEL15-remove-administration-reference-20080627

LICENSE IPL10

Purge the old AFS Administration Reference documentation.  This has now
been completely replaced by the manual pages.

(cherry picked from commit 62ffbc2a464521eeee4c244d2555c316dfae180f)

12 years agoDEVEL15-windows-smb-dead-vc-gc-20080627
Jeffrey Altman [Fri, 27 Jun 2008 20:45:11 +0000]
DEVEL15-windows-smb-dead-vc-gc-20080627

LICENSE MIT

When an SMB virtual circuit is prematurely closed due to an error
condition by one thread it is possible that there are still several
other threads still using the VC which will determine that the VC
is dead shortly.  As a result we maintain a dead vc list to ensure
that dead vcs are not destroyed while still in use.

With the addition of locking though this causes a problem because the
locks allocated to the virtual circuit are not freed until the vc is
destroyed.

This patch reworks the cleanup routine to make the freeing of resources
the responsibility of the release routine when the refcount hits 0
and the VC is marked dead.

(cherry picked from commit 49db6afe0aeb646d712a5319a7ea1a511f66f298)

12 years agoDEVEL15-man-page-afs-fixes-20080626
Jason Edgecombe [Fri, 27 Jun 2008 05:11:31 +0000]
DEVEL15-man-page-afs-fixes-20080626

FIXES 104745
LICENSE BSD

Fix several issues with the afs(1) man page.  Based on the patch by Jason,
but I also documented /vicepiv as the maximum, and /vicepiu as the
maximum recommended, partition.

(cherry picked from commit e381e1d07822639ba4ce00c96ff483034104afb5)

12 years agoDEVEL15-man-page-vldb_convert-20080626
Jason Edgecombe [Fri, 27 Jun 2008 05:05:33 +0000]
DEVEL15-man-page-vldb_convert-20080626

FIXES 104192
LICENSE BSD

New man page for vldb_convert.

(cherry picked from commit d9dc7e28fe73b1e3ac2773fb1efd44e67de5e21d)

12 years agoDEVEL15-man-page-vos-clone-20080626
Jason Edgecombe [Fri, 27 Jun 2008 05:03:54 +0000]
DEVEL15-man-page-vos-clone-20080626

FIXES 104110
LICENSE BSD

Add man page for vos clone.

(cherry picked from commit fbe10c80860ce9f456a056e0d397a10411f22369)

12 years agoDEVEL15-windows-wix-install-idn-redist-20080626
Asanka Herath [Fri, 27 Jun 2008 03:06:21 +0000]
DEVEL15-windows-wix-install-idn-redist-20080626

LICENSE MIT

Install the Microsoft IDN Redistributables which are required for
Unicode Normalization on XP and 2003.

(cherry picked from commit 0e04d01891eb2269653a84f86b066ebe10eb8a54)

12 years agoDEVEL15-windows-nsis-install-idn-redist-20080626
Asanka Herath [Fri, 27 Jun 2008 03:00:32 +0000]
DEVEL15-windows-nsis-install-idn-redist-20080626

LICENSE MIT

Install the Microsoft IDN Redistributables which are required for
Unicode Normalization on XP and 2003.

(cherry picked from commit 149fd85b205911c2393a570eac6d5a811c9ffd72)

12 years agoDEVEL15-windows-vlserver-makefile-20080626
Jeffrey Altman [Thu, 26 Jun 2008 18:05:21 +0000]
DEVEL15-windows-vlserver-makefile-20080626

LICENSE MIT

more consistency changes to get the make rules for headers right

(cherry picked from commit c051bf547636be32372d5eb01afc0b1c55f25c43)

12 years agoDEVEL15-windows-nls-includes-20080626
Jeffrey Altman [Thu, 26 Jun 2008 17:48:29 +0000]
DEVEL15-windows-nls-includes-20080626

LICENSE MIT

Add include for cm_nls.h

(cherry picked from commit bc2836058afd44d237e602c1746d1d71c95951c5)

12 years agoDEVEL15-windows-unicode-20080626
Asanka Herath [Thu, 26 Jun 2008 17:38:29 +0000]
DEVEL15-windows-unicode-20080626

LICENSE MIT

This patch is the second stage of the Unicode conversion.  In this stage
the cache manager has been converted from using 8-bit UTF8 C strings to
16-bit UTF16 C strings in the SMB, the DNLC, the B+ tree, and other
directly related modules.  The cm_cell, cm_volume, cm_scache, cm_buf,
cm_dcache, and cm_dir modules are left 8-bit because their data is all
8-bit UTF8 since they work only on file server strings.

The SMB layer accepts 16-bit UTF16, the B+ tree and DNLC use normalized
strings as the key, and everything uses UTF8.  Efforts have been made
to minimize the number of transitions from UTF8 to UTF16 and back.

For the most part strings are tagged with clientchar_t and normchar_t
and fschar_t types in order to distinguish between the various types of
strings that are in use.

other changes include addition prototyping.

(cherry picked from commit 3b41209be7a1470e186a87764621c9980ae7448a)

12 years agoDEVEL15-windows-osilog-safestring-unicode-20080624
Asanka Herath [Thu, 26 Jun 2008 17:00:53 +0000]
DEVEL15-windows-osilog-safestring-unicode-20080624

LICENSE MIT

convert to using microsoft safe string functions.

add Unicode version of osi_LogSaveStringW.  This is safe to use export
even in none Unicode builds.

Some reformatting.

(cherry picked from commit ef58ff2ea67323e5260484597abe6bdfa63d8c72)

12 years agoDEVEL15-windows-pioctl-refactoring-20080612
Jeffrey Altman [Thu, 26 Jun 2008 15:58:05 +0000]
DEVEL15-windows-pioctl-refactoring-20080612

LICENSE MIT

Refactor the pioctl handling to provide a layer of abstraction
between the smb server and the actual pioctl data processing.
This will permit a redirector pioctl layer to be implemented
on top of the core cm_ioctl interfaces.

The general approach is that there is a new cm_ioctl_t object
which is embedded withing a higher level abstraction object.
This object maintains all of the pioctl state processing and
removes any notion of file descriptors or other communication
channel parameters.

The cm_ioctl module maintains just about all of the core
functional processing except for SetToken which needs further
abstraction.  Path processing is now performed at the higher
layer and cm_ioctl functions accept cm_user_t, cm_scache_t,
and cm_req_t objects from the higher layer.

The smb_ioctl module performs all of the path translation
using smb server knowledge and passes the necessary objects
to the cm_ioctl module for processing.

(cherry picked from commit d8c3a598184df6066c330769e49fb1e301464e52)

12 years agoDEVEL15-windows-no-more-djgpp-20080626
Jeffrey Altman [Thu, 26 Jun 2008 15:38:23 +0000]
DEVEL15-windows-no-more-djgpp-20080626

LICENSE MIT

This patch is only for the 1.5 branch and just for the afsd
directory.  Remove all references to DJGPP preprocessor
symbol in order to make application of commits from head easier.

12 years agoDEVEL15-windows-unicode-20080527
Asanka Herath [Thu, 26 Jun 2008 14:00:08 +0000]
DEVEL15-windows-unicode-20080527

LICENSE MIT

An incremental commit.  This patch adds support for normalization of Unicode
but we have concluded that the normalization rules are incorrect.  Normalized
strings should not be written to the file server or returned to the application.

(cherry picked from commit c5911d25f8772aa1bb9b28a6cd58b8b781b479c1)

12 years agoDEVEL15-windows-btree-short-name-20080604
Jeffrey Altman [Thu, 26 Jun 2008 13:31:50 +0000]
DEVEL15-windows-btree-short-name-20080604

LICENSE MIT

When constructing the shortname keyed entry in the tree, make
sure that the original long name is preserved.

(cherry picked from commit b5d888ed404840e5a25a26880daaf47ab415b282)

12 years agoDEVEL15-tubik-build-fix-20080624
Matt Benjamin [Tue, 24 Jun 2008 13:58:57 +0000]
DEVEL15-tubik-build-fix-20080624

LICENSE IPL10

add missing build dependencies

(cherry picked from commit 9d1863dae7ee6675c77c7ecf398c6c4c4cc811c1)

12 years agoDEVEL15-tubik-build-fix-20080623
Matt Benjamin [Mon, 23 Jun 2008 18:50:18 +0000]
DEVEL15-tubik-build-fix-20080623

LICENSE IPL10

add missing build dependencies

(cherry picked from commit 98b87a2ac1ce5673142b26ae5aad2ef640efe51f)

12 years agoDEVEL15-windows-release-notes-20080622
Jeffrey Altman [Mon, 23 Jun 2008 05:05:54 +0000]
DEVEL15-windows-release-notes-20080622

LICENSE MIT

1.5.39

12 years agoDEVEL15-windows-notes-20080622
Jeffrey Altman [Mon, 23 Jun 2008 04:53:55 +0000]
DEVEL15-windows-notes-20080622

LICENSE MIT

1.5.39

12 years agoDEVEL15-doc-nfs-translator-instructions-20080622
Derrick Brashear [Mon, 23 Jun 2008 04:41:16 +0000]
DEVEL15-doc-nfs-translator-instructions-20080622

LICENSE IPL10
FIXES 103459

clarify instructions for the translator

(cherry picked from commit e5f9eba38634c2b07da1d7b20fb45cfdd772a27c)

12 years agoDEVEL15-linux-2626-updates-20080612
Marc Dionne [Thu, 12 Jun 2008 21:08:33 +0000]
DEVEL15-linux-2626-updates-20080612

LICENSE IPL10
FIXES 102821

fixes which went into 1.4.x already

(cherry picked from commit 583b267eb0025bd78e7dd325775428557e3934ad)

12 years agoDEVEL15-cvsignore-updates-20080612
Marc Dionne [Thu, 12 Jun 2008 21:01:35 +0000]
DEVEL15-cvsignore-updates-20080612

LICENSE IPL10
FIXES 102819

add missing things to cvsignore files

(cherry picked from commit bb617c649cd18c30db40f7e1976eeddf0ae1545b)

12 years agoDEVEL15-dafs-updates-20080612
Tom Keiser [Thu, 12 Jun 2008 20:18:47 +0000]
DEVEL15-dafs-updates-20080612

LICENSE IPL10

pending changes from tom to avoid a deadlock issue

(cherry picked from commit a7b33b55bb34027262fb5deb686a86fba1d2f832)

12 years agoDEVEL15-ptserver-simple-corrupt-protection-20080612
Derrick Brashear [Thu, 12 Jun 2008 19:36:49 +0000]
DEVEL15-ptserver-simple-corrupt-protection-20080612

LICENSE IPL10

protects against direct loops, which we have seen in the wild, but not more (yet)

(cherry picked from commit e2ce8710efc93f7172b9d4daaf685c6f2669f7c3)

12 years agoDEVEL15-volume-limit-higher-20080612
Derrick Brashear [Thu, 12 Jun 2008 18:24:38 +0000]
DEVEL15-volume-limit-higher-20080612

LICENSE IPL10

allow more volume lookups to be cached

(cherry picked from commit bc47951c9ec0845eafe0d1634f56b761cbf8b06f)

12 years agoDEVEL15-windows-buf-clean-access-denied-20080612
Jeffrey Altman [Thu, 12 Jun 2008 17:06:04 +0000]
DEVEL15-windows-buf-clean-access-denied-20080612

LICENSE MIT

If the attempt to write the buffer returns access denied, store that
in the cm_buf_t object so that the error can be propagated.

(cherry picked from commit 15ff831e4dfa8d2942536d002b86579f6128a5df)

12 years agoDEVEL15-windows-scache-deletion-and-lock-verification-20080612
Jeffrey Altman [Thu, 12 Jun 2008 15:22:22 +0000]
DEVEL15-windows-scache-deletion-and-lock-verification-20080612

LICENSE MIT

Add lock assertions to various functions.

Obtain a missing lock around a call to cm_RemoveSCacheFromHashTable().

Correct an abstraction layer violation.  cm_scache_t objects should
be marked deleted in cm_Unlink() and cm_RemoveDir() and not in
smb_CloseFID().  Cleanup of deleted cm_scache_t objects should be
performed in cm_ReleaseSCache() when the reference count hits zero.

Prototype cm_AdjustScacheLRU() and re-implement it using osi_QAddH().

(cherry picked from commit 52490d7968c2008912ab0887bdcde7fbba43b837)

12 years agoDEVEL15-windows-vnodeops-wrong-logfile-20080612
Jeffrey Altman [Thu, 12 Jun 2008 15:01:51 +0000]
DEVEL15-windows-vnodeops-wrong-logfile-20080612

LICENSE MIT

Use afsd_logp instead of smb_logp in osi_LogX() calls.
Do not violate layer abstraction.

(cherry picked from commit 3306c0887b62ca940808174906c2579b3b7d939a)

12 years agoDEVEL15-windows-scache-hash-tables-20080612
Jeffrey Altman [Thu, 12 Jun 2008 14:35:06 +0000]
DEVEL15-windows-scache-hash-tables-20080612

LICENSE MIT

Prevent corruption of the cm_data.scacheHashTablep lists when removing
and then re-adding entries to the hash table.  The cm_scache_t nextp
fields were not being reset to NULL which permitted loops to be created.

(cherry picked from commit ef48d6343d9ac929a4a2ae88184f7801ace1e3d1)

12 years agoDEVEL15-linux-2626-support-20080608
Marc Dionne [Mon, 9 Jun 2008 04:39:14 +0000]
DEVEL15-linux-2626-support-20080608

LICENSE IPL10
FIXES 101091

add 2.6.26 support

(cherry picked from commit bed3e31ca4da711649d6c6b9ab828515cd3418fc)

12 years agoDEVEL15-limit-mountpoint-symlink-abuse-20080608
Rainer Toebbicke [Mon, 9 Jun 2008 04:30:30 +0000]
DEVEL15-limit-mountpoint-symlink-abuse-20080608

LICENSE IPL10
FIXES 100836

official mountpoints end in a .; treat others as symlinks to avoid creating
files which can't be removed

(cherry picked from commit 0da0a9d4d2e5b2d39495e57b9840ce0acdd961e2)

12 years agoDEVEL15-windows-check-server-memleak-20080606
Jeffrey Altman [Fri, 6 Jun 2008 14:43:13 +0000]
DEVEL15-windows-check-server-memleak-20080606

LICENSE MIT

Found a memleak in the cm_CheckServers routine. Plug it.

(cherry picked from commit ad05cdf649044dcc0b1db39aed8652338fb8c945)

12 years agoDEVEL15-windows-bpluss-memleak-20080605
Jeffrey Altman [Fri, 6 Jun 2008 00:23:41 +0000]
DEVEL15-windows-bpluss-memleak-20080605

LICENSE MIT

when deleting entries from a directory for items with non-8.3 names
memory for the longname field would be leaked.  don't do that.

(cherry picked from commit 39d2ac1438c5708dc64098e5de10cd55efd6e93b)

12 years agoDEVEL15-STABLE14-man-page-readme-fileserver-20080605
Russ Allbery [Thu, 5 Jun 2008 21:41:37 +0000]
DEVEL15-STABLE14-man-page-readme-fileserver-20080605

LICENSE BSD

Remove the note about missing file server options.  We think we got them
all.

12 years agoDEVEL15-man-page-pts-updates-20080605
Jason Edgecombe [Thu, 5 Jun 2008 21:10:04 +0000]
DEVEL15-man-page-pts-updates-20080605

LICENSE BSD

Add documentation of foreign realm user registration and cross-realm PTS
groups.  Add documentation of missing ptserver flags.  Add some additional
to-do entries for the man pages.

(cherry picked from commit 1fdfac7065b85feafcfa3f9fc382cfd90680d67f)

12 years agoDEVEL15-linux24-hlist-unhashed-configure-test-fix-20080602
Derrick Brashear [Tue, 3 Jun 2008 03:54:05 +0000]
DEVEL15-linux24-hlist-unhashed-configure-test-fix-20080602

LICENSE IPL10

make the hlist_unhashed test actually work

(cherry picked from commit 79b7b4eaded831a33d85f580e9e4155528fbd35f)

12 years agoDEVEL15-windows-vlserver-remove-extraneous-make-targets-20080529
Jeffrey Altman [Thu, 29 May 2008 18:21:11 +0000]
DEVEL15-windows-vlserver-remove-extraneous-make-targets-20080529

LICENSE MIT

remove extraneous make targets

(cherry picked from commit 2b937b867f3420972b3f617710b44184df7bacc2)

12 years agoDEVEL15-rx-init-more-packets-20080529
Jeffrey Altman [Thu, 29 May 2008 14:33:29 +0000]
DEVEL15-rx-init-more-packets-20080529

LICENSE MIT

It is frequently the case that rx_getAllAddr() is called before
rx_Init() or rx_InitHost().  rx_getAllAddr() obtains the list of
interfaces by using rx_GetIFInfo() which in turn computes and
allocates the number of addition rx packets.  Unfortunately,
rxi_MorePackets() relies on the existence of an initialized mutex
and the mutex is not initialized (on Windows) until the rx_InitHost()
call.  Therefore, we must delay the rxi_MorePackets() call until
after rx_InitHost() if rx_getAllAddr() is called previously.

Failure to do so results in a panic.

(cherry picked from commit 749ae65481ebc70f310fdd79d2cb0139a636f27e)

12 years agoDEVEL15-strftime-portability-20080528
Jeffrey Altman [Thu, 29 May 2008 05:04:25 +0000]
DEVEL15-strftime-portability-20080528

LICENSE MIT

%T is not portable to Windows.  Replace it with the equivalent %H:%M:%S
format string.

(cherry picked from commit 11350e8024c8413dab5f91cfcd2155d26356329f)

12 years agoDEVEL15-rx-out-of-memory-20080528
Jeffrey Altman [Thu, 29 May 2008 04:38:06 +0000]
DEVEL15-rx-out-of-memory-20080528

LICENSE MIT

in rxi_MorePackets() if osi_Alloc() fails to return the requested memory
call osi_Assert() instead of permitting subsequent null pointer dereferences
to corrupt the stack.

(cherry picked from commit c5bce0f87dc11cfaf5a7fabe16fe7efd24a4d200)

12 years agoDEVEL15-windows-vlserver-headers-20080528
Jeffrey Altman [Wed, 28 May 2008 19:38:39 +0000]
DEVEL15-windows-vlserver-headers-20080528

LICENSE MIT

make sure the headers are copied to the correct location by providing
explicit rules

(cherry picked from commit 5ad08dc1662c9c7eeea10dadd39f7a1f793f761b)

12 years agoDEVEL15-windows-buf-redirector-20080528
Jeffrey Altman [Wed, 28 May 2008 18:44:24 +0000]
DEVEL15-windows-buf-redirector-20080528

LICENSE MIT

Define new flag CM_BUF_REDIR for use with the redirector.
When set, the flag indicates that the buffer is being held by the redirector
and it should be left untouched by the cache manager.

(cherry picked from commit dc835c2d5397cc2b310dea374b043032b779ee3a)

12 years agoDEVEL15-windows-cpluscplus-compat-20080528
Jeffrey Altman [Wed, 28 May 2008 18:34:52 +0000]
DEVEL15-windows-cpluscplus-compat-20080528

LICENSE MIT

Do not use reserved keywords 'new' and 'delete'.  Permit headers to
be included by files compiled in cplusplus mode.

(cherry picked from commit 5930abcbe169db3a8e676ebe558249af9ccdfa0f)

12 years agoDEVEL15-windows-unused-var-20080528
Jeffrey Altman [Wed, 28 May 2008 18:29:28 +0000]
DEVEL15-windows-unused-var-20080528

LICENSE MIT

remove unused var cm_CachePathLen

(cherry picked from commit 54c0f2f8370c129a01b99233c98a758ba0eb2f17)

12 years agoDEVEL15-windows-btree-20080528
Jeffrey Altman [Wed, 28 May 2008 18:23:21 +0000]
DEVEL15-windows-btree-20080528

LICENSE MIT

add cm_btree.h to afsd.h include list

(cherry picked from commit 7b8c8a48a354a45ec34ed672aef1ea0255e4b4f1)

12 years agoDEVEL15-disconnected-20080523
Simon Wilkinson [Fri, 23 May 2008 15:57:31 +0000]
DEVEL15-disconnected-20080523

LICENSE IPL10

add readonly disconnected support

(cherry picked from commit 18a36a3f624755fbcaee776102177f47e26711b7)

12 years agoDEVEL15-rx-client-keep-keepalives-20080522
Jeffrey Hutzelman [Fri, 23 May 2008 15:55:47 +0000]
DEVEL15-rx-client-keep-keepalives-20080522

LICENSE IPL10
FIXES 20727

not our bug, but, previous code refactoring broke rx. put back keepalives in cli
ent rx connections while they are turned around.

(cherry picked from commit c34822d6105cef7f68423e4ebbf485b2d11b9635)

12 years agoDEVEL15-darwin-rc-common-does-set-minus-u-20080522
Derrick Brashear [Thu, 22 May 2008 22:03:50 +0000]
DEVEL15-darwin-rc-common-does-set-minus-u-20080522

LICENSE IPL10

we need to cope with an unset variable

(cherry picked from commit b26f133a56911c4a20e848cf85d40640aa37253a)

12 years agoDEVEL15-dafs-volumestats-conflict-20080521
Derrick Brashear [Thu, 22 May 2008 04:51:46 +0000]
DEVEL15-dafs-volumestats-conflict-20080521

LICENSE IPL10

avoid symbol conflict in volume.h

(cherry picked from commit 8450a1eb1da3e2b77f9ae86b5adee4aaa7136e14)

12 years agoDEVEL15-vos-sync-flag-voltype-properly-20080521
Derrick Brashear [Wed, 21 May 2008 21:16:20 +0000]
DEVEL15-vos-sync-flag-voltype-properly-20080521

LICENSE IPL10

when adding a backup volume to a vldb entry, flag it as such.

(cherry picked from commit dcafea769a1cb70c7b1f8763ae4f7b7744b2a436)

12 years agoDEVEL15-tweak-regen-20080521
Simon Wilkinson [Wed, 21 May 2008 16:41:07 +0000]
DEVEL15-tweak-regen-20080521

LICENSE IPL10

make regen quieter if you don't want man pages

(cherry picked from commit 1705bda53e4ca198cf78d70ff424fc7af69b1879)

12 years agoDEVEL15-macos-tuning-20080521
Derrick Brashear [Wed, 21 May 2008 14:52:11 +0000]
DEVEL15-macos-tuning-20080521

LICENSE IPL10

be more aggressive to get better performance

(cherry picked from commit 30f65085f7a53ae073e2c4649a462a3a555ebb61)

12 years agoDEVEL15-pmtu-and-prefetch-20080520
Derrick Brashear [Wed, 21 May 2008 05:22:27 +0000]
DEVEL15-pmtu-and-prefetch-20080520

LICENSE IPL10

try hard to optimize using the wire for high latency connections

(cherry picked from commit 1206e7538be86f073b21cd289266286b60a95d0a)

12 years agoDEVEL15-linux-hlist-unhashed-opencoding-20080520
Derrick Brashear [Tue, 20 May 2008 22:03:20 +0000]
DEVEL15-linux-hlist-unhashed-opencoding-20080520

LICENSE IPL10
FIXES 93871

if we can't use hlist_unhashed (which is dumb) or we don't have it (less dumb) w
ork around it.

(cherry picked from commit c761f248397334400f8b4bb71cc4d01d3e4fc6ff)

12 years agoDEVEL15-rx-connection-clones-20080520
Matt Benjamin [Tue, 20 May 2008 21:24:38 +0000]
DEVEL15-rx-connection-clones-20080520

LICENSE IPL10
FIXES 89557

add connection clones to allow more than maxcalls per "connection"

(cherry picked from commit f00df529b79d9df64b77dd7b054eb362a92c279e)

12 years agoDEVEL15-aix-unpin-after-free-20080520
Derrick Brashear [Tue, 20 May 2008 20:50:41 +0000]
DEVEL15-aix-unpin-after-free-20080520

LICENSE IPL10
FIXES 99456

in order that cleanup be safe we need to do it this way

(cherry picked from commit 3edb97360b7d971750e54471037584d7a9a74993)

12 years agoDEVEL15-windows-smb-parse-string-20080513
Jeffrey Altman [Wed, 14 May 2008 05:16:51 +0000]
DEVEL15-windows-smb-parse-string-20080513

LICENSE MIT

if the input length is 0, smb_ParseString should return the NUL string
not NULL.

Do not permit unprotected DebugBreak() calls.

(cherry picked from commit 090b2eebfa9fb48deea94bf7b511e693a251e041)

12 years agoDEVEL15-windows-unicode-normalize-btree-20080511
Jeffrey Altman [Mon, 12 May 2008 04:03:57 +0000]
DEVEL15-windows-unicode-normalize-btree-20080511

LICENSE MIT

Attempt to normalize afs directory strings before inserting them into
the B+tree.

(cherry picked from commit 53cffb32ab7cc5a650d0bbaa66686a44ea206888)

12 years agoDEVEL15-windows-unicode-support-normalize-20080511
Asanka Herath [Mon, 12 May 2008 02:37:56 +0000]
DEVEL15-windows-unicode-support-normalize-20080511

LICENSE MIT

Actually normalize when normaliz.dll is present.

(cherry picked from commit 9e67c4f766892f7c0b79a2d6a1d8b96a7e4b7100)

12 years agoDEVEL15-windows-unicode-support-20080511
Jeffrey Altman [Sun, 11 May 2008 14:17:17 +0000]
DEVEL15-windows-unicode-support-20080511

LICENSE MIT

In NTCreateX a zero length name is permitted.  This can occur when
opening the root directory of a share.

Change cm_NameEntries() to accept a size_t* instead of long* since
that permits better type safety.

(cherry picked from commit 9d28d95151418189e8004734eca0edd498edd46b)

12 years agoDEVEL15-udebug-display-lastyeshost-order-20080510
Jeffrey Altman [Sat, 10 May 2008 16:21:19 +0000]
DEVEL15-udebug-display-lastyeshost-order-20080510

LICENSE MIT

lastYesHost is already in network byte order.  do not reorder it again
when displaying it.

(cherry picked from commit b5dc1903a4bca5bae099beec0b95840df7282250)

12 years agoDEVEL15-server-meltdown-avoidance-20080509
Derrick Brashear [Fri, 9 May 2008 19:50:56 +0000]
DEVEL15-server-meltdown-avoidance-20080509

LICENSE IPL10

if the server is melting down or otherwise unable to reply with data, it will
cut itself off.

(cherry picked from commit c26dc0e6aaefedc55ed5c35a5744b5c01ba39ea1)

12 years agoDEVEL15-windows-unicode-support-20080509
Asanka Herath [Fri, 9 May 2008 16:10:06 +0000]
DEVEL15-windows-unicode-support-20080509

LICENSE MIT

This delta provides a fairly complete implementation of Unicode character
set support for the Windows Cache Manager and supporting tools including
fs.exe, symlink.exe, the pioctl library, and the explorer shell extension.

New Build requirements:

In order to build the Microsoft IDN Mitigation APIs SDK 1.1 is now required.
This SDK provides the normalization.h header and the redistribution
install packages required to install normaliz.dll.   The AFSDEV_INCLUDE
path must be modified to point to the directory containing normalization.h.
There are no lib files for this package.

Cache Manager:

The CM SMB server has been modified to negotiate the use of UNICODE.
By default it is on.  The "fs smbunicode" command can be used to disable
UNICODE at runtime.

cm_utils now contains UNICODE normalization and conversion routines built
on top of the IDN Mitigation APIs.

All input strings are normalized with UNICODE Normalization Form C.

The pioctl interface now supports UTF8 strings in addition to ANSI.
UTF8 strings are prefixed with <ESC> % 8 as per the ISO 2022 extension.

Pioctl Library:

New apps should use the pioctl_utf8() function instead of pioctl().
pioctl() is for ANSI strings and provides backward compatibility
with third party apps.

fs.exe and symlink.exe:

Converted to Unicode applications.  All strings are now communicated
using UTF-8.

Explorer Shell Extension:

Converted to a Unicode DLL.  All strings are now communicated using
UTF-8.  Fonts on U.S. Windows distributions are not fully populated.
As a result not all of the characters can be displayed in all of the
dialog boxes.

Still to do:

1. Add Unicode normalization to AFS directory entries and mountpoint
   and symlink target strings.

2. Use the Unicode version of GetCurrentDirectory in fs_utils.c

3. Update the installers to install the IDN Mitigation APIs on XP
   and 2003.  Vista already has them and they are not supported on
   pre XP SP2 releases.

(cherry picked from commit a36ec90cff608c3805f524070eb21aacc118f9e2)

12 years agoDEVEL15-windows-have-snprintf-20080509
Jeffrey Altman [Fri, 9 May 2008 04:57:23 +0000]
DEVEL15-windows-have-snprintf-20080509

LICENSE MIT

Visual Studio provides [v]snprintf.  No need to define and export it.

(cherry picked from commit 048ae7c7e63e03af16925613aeec8243b45ffe70)

12 years agoDEVEL15-windows-version-20080508
Jeffrey Altman [Fri, 9 May 2008 00:25:35 +0000]
DEVEL15-windows-version-20080508

LICENSE MIT

1.5.35

12 years agoDEVEL15-windows-release-notes-20080508
Jeffrey Altman [Fri, 9 May 2008 00:25:00 +0000]
DEVEL15-windows-release-notes-20080508

LICENSE MIT

1.5.35

12 years agoDEVEL15-windows-notes-20080508
Jeffrey Altman [Fri, 9 May 2008 00:01:30 +0000]
DEVEL15-windows-notes-20080508

LICENSE MIT

1.5.36

12 years agoDEVEL15-openafs-1-5-36-20080508 BP-openafs-devel-1_5_3x openafs-devel-1_5_36
Derrick Brashear [Fri, 9 May 2008 02:06:27 +0000]
DEVEL15-openafs-1-5-36-20080508

LICENSE IPL10

make 1.5.36

12 years agoDEVEL15-rx-retain-windowing-per-peer-20080508
Derrick Brashear [Thu, 8 May 2008 22:25:58 +0000]
DEVEL15-rx-retain-windowing-per-peer-20080508

LICENSE IPL10

we learned about the peer in a previous connection... retain the information
and keep using it. widen the available window.

makes rx perform better over high latency wans. needs to be present in both
sides for maximal effect.

(cherry picked from commit 3feee9278bc8d0a22630508f3aca10835bf52866)

12 years agoDEVEL15-viced-avoid-infinite-loop-with-altaddr-unset-20080508
Jeffrey Altman [Thu, 8 May 2008 22:18:56 +0000]
DEVEL15-viced-avoid-infinite-loop-with-altaddr-unset-20080508

LICENSE IPL10

if we return leaving a non HOSTDELETED host while it does not have ALTADDR set,
a loop can happen. avoid it by simply setting ALTADDR again when we're done,
if we believe some addresses are still good this is fine.

(cherry picked from commit e6c818f070022529c362e42dfed340f54b2fd26e)

12 years agoDEVEL15-windows-buf-invalidate-on-vnovnode-20080507
Jeffrey Altman [Thu, 8 May 2008 06:27:14 +0000]
DEVEL15-windows-buf-invalidate-on-vnovnode-20080507

LICENSE MIT

Once we know that an attempt to stablize a buffer has failed due to
VNOVNODE, stop trying to Stablize future buffers and just invalidate
all of them belonging to the same FID.

(cherry picked from commit ef619db804d471fda3bf3f77d55e8cd4e4699b29)

12 years agoDEVEL15-viced-large-more-threads-20080506
Derrick Brashear [Tue, 6 May 2008 16:03:07 +0000]
DEVEL15-viced-large-more-threads-20080506

LICENSE IPL10

fileserver -L should imply -p 128, not -p 12

(cherry picked from commit c847fb4964c0ec24c404cf1fb353b08af81b5eac)

12 years agoDEVEL15-windows-server-retry-20080502
Jeffrey Altman [Fri, 2 May 2008 20:28:18 +0000]
DEVEL15-windows-server-retry-20080502

LICENSE MIT

do not retry if there is no server available for the current attempt

(cherry picked from commit 98e658b7821f5020c67c05503f9e2c61c945554a)

12 years agoDEVEL15-butc-xbsa-lwp-protoize-damage-20080501
Derrick Brashear [Fri, 2 May 2008 01:59:38 +0000]
DEVEL15-butc-xbsa-lwp-protoize-damage-20080501

LICENSE IPL10

make xbsa variant work again

(cherry picked from commit abff169b58764380650e6e162707be68d3aa9bf1)

12 years agoDEVEL15-uuid-corrected-duplicate-check-20080501
Derrick Brashear [Thu, 1 May 2008 20:00:10 +0000]
DEVEL15-uuid-corrected-duplicate-check-20080501

LICENSE IPL10

apply check to chain, not input

(cherry picked from commit 7915302f28091dd0a6547f0f58fa5ceb581cc21a)

12 years agoDEVEL15-client-idledeadtime-support-20080430
Derrick Brashear [Wed, 30 Apr 2008 20:08:04 +0000]
DEVEL15-client-idledeadtime-support-20080430

LICENSE IPL10

in the event a server is "melting down" and not responding with data to RPCs
this adds the ability to time out the calls rather than letting keepalives
effectively hang the client forever.  does not mark the server down since...
it's not down.

Side effect: adds similar tracking for authentication errors so tokens need
not be discarded if one server's clock has drifted.

(cherry picked from commit 0a2c144307d2471450c0660e141906a1f7b1ea36)

12 years agoDEVEL15-ubik-recovery-swap-in-new-fd-20080428
Derrick Brashear [Mon, 28 Apr 2008 22:48:11 +0000]
DEVEL15-ubik-recovery-swap-in-new-fd-20080428

LICENSE IPL10

when recovery is done, forcibly invalidate the old fd

(cherry picked from commit 888bc28b1886e994d430ddc61657e60a910208a6)

12 years agoDEVEL15-tbutc-wrong-lp-getrwindex-20080428
Hans-Werner Paulsen [Mon, 28 Apr 2008 17:15:06 +0000]
DEVEL15-tbutc-wrong-lp-getrwindex-20080428

LICENSE IPL10
FIXES 96575

The pthread butc crashes with SIGSEGV, when I restore to a volume
which already exists. This does happen with OpenAFS 1.4.7pre4 on
i386_linux26.
Looking into the code I think butc is using the wrong function
Lp_GetRwIndex (at volser/vsprocs.c:4394). It uses the one in the
library lib/libvosadmin.a, but should use the function defined
in volser/lockprocs.c.

(cherry picked from commit 668cd5331e4857a73ba1d849446e0dfcae97eadf)

12 years agoDEVEL15-udebug-64bit-time_t-vs-printf-20080428
Jeffrey Altman [Mon, 28 Apr 2008 16:20:41 +0000]
DEVEL15-udebug-64bit-time_t-vs-printf-20080428

LICENSE MIT

64-bit time_t values cannot be passed to printf() for evaluation
by a %d variable.  To avoid the problem we cast the value to int.

(cherry picked from commit 25d9dbb6be970d54c4711890b2085c153eda15fa)

12 years agoDEVEL15-windows-rx-idle-timeout-20080428
Jeffrey Altman [Mon, 28 Apr 2008 16:06:14 +0000]
DEVEL15-windows-rx-idle-timeout-20080428

LICENSE MIT

Add "IdleDeadTimeout" registry value and call rx_SetConnIdleDeadTime()
with it when creating new rx connections.   This forces the Rx stack
to return RX_CALL_TIMEOUT if the file server has returned VBUSY for
longer than the IdleDeadTimeout.

When RX_CALL_TIMEOUT is received, the cache manager will now attempt to
find another server for the object that might be less busy.

(cherry picked from commit 2f2d5fd8a7e80802fead9ee944e33c1a0c818abd)

12 years agoDEVEL15-kdump-install-fixups-20080427
Chaskiel M Grundman [Mon, 28 Apr 2008 04:45:15 +0000]
DEVEL15-kdump-install-fixups-20080427

LICENSE IPL10
FIXES 96465

The install rule:
- installs the empty 'kdump-build' file instead of the binary on all
platforms except irix
- overwrites the selection script with the binary on linux and hpux
- doesn't have an alpha_linux branch
- installs the wrapper script as kdump32 and the binary as kdump on
solaris (instead of vice-versa)

The dest rule:
- overwrites the selection script with the binary on alpha_linux and hpux

(cherry picked from commit 7a6751c08800da5d49bf3def9175174499f6337e)

12 years agoDEVEL15-redhat-cellservdb-update-20080423
Derrick Brashear [Sun, 27 Apr 2008 05:00:22 +0000]
DEVEL15-redhat-cellservdb-update-20080423

LICENSE IPL10

take update from upstream

(cherry picked from commit c8f4d9f0079b7eeacf831061a0c39310aafaa045)

12 years agoDEVEL15-zero-uio-len-when-trimming-20080426
Derrick Brashear [Sun, 27 Apr 2008 04:54:14 +0000]
DEVEL15-zero-uio-len-when-trimming-20080426

LICENSE IPL10

make it match ufsread case. should change this later.

(cherry picked from commit 2aa615fed2b801a7ed3abf7da5aaa293a4f783bf)

12 years agoDEVEL15-vos-move-avoid-spurious-unlock-20080424
Derrick Brashear [Thu, 24 Apr 2008 23:45:47 +0000]
DEVEL15-vos-move-avoid-spurious-unlock-20080424

LICENSE IPL10

lightly modified from what Bren Mills submitted; the second unlock call after mfail may be entirely useless.

(cherry picked from commit b87935a4c5f26357e29f1db46eff8b1cf9185f3b)

12 years agoDEVEL15-windows-buf-refcount-20080424
Jeffrey Altman [Thu, 24 Apr 2008 17:22:44 +0000]
DEVEL15-windows-buf-refcount-20080424

LICENSE MIT

Implement DEBUG_REFCOUNT refcount tracking code to debug refcount issues
in the cm_buf module.

Fix a refcount leak caused by buf_IncrSyncer() incorrectly removing cm_buf_t
objects from the dirty list.

Fix the dumping of the dirty list to actually dump the dirty list.

(cherry picked from commit 088eb9158bf553d5b3dcea8f37d3bec439419d44)

12 years agoDEVEL15-windows-cellservdb-20080423
Jeffrey Hutzelman [Thu, 24 Apr 2008 04:08:31 +0000]
DEVEL15-windows-cellservdb-20080423

LICENSE IPL

latest greatest CellServDB

(cherry picked from commit 6143f2eb5c85f5c428578b60b3b8892321f7fbe1)

12 years agoDEVEL15-vol-setaside-one-fd-per-thread-20080423
Dan Hyde [Wed, 23 Apr 2008 19:57:13 +0000]
DEVEL15-vol-setaside-one-fd-per-thread-20080423

LICENSE IPL10
FIXES 87977

kids these days share badly. give each one their own fd otherwise they fight.

(cherry picked from commit 6809ba29fadbd0d84ff6a9bf2ccd909b2f54b186)

12 years agoDEVEL15-linux-fedora9-packaging-updates-20080422
Simon Wilkinson [Tue, 22 Apr 2008 13:50:38 +0000]
DEVEL15-linux-fedora9-packaging-updates-20080422

LICENSE IPL10

make build system able to cope with fedora 9

(cherry picked from commit d18f5104f57152dfb6d1125a2d3a8bf17a266f44)

12 years agoDEVEL15-openafs-1-5-35-20080421 openafs-devel-1_5_35
Derrick Brashear [Mon, 21 Apr 2008 20:48:41 +0000]
DEVEL15-openafs-1-5-35-20080421

LICENSE IPL10

make 1.5.35

12 years agoDEVEL15-libadmin-vos-irix-fixes-20080421
Derrick Brashear [Mon, 21 Apr 2008 20:40:01 +0000]
DEVEL15-libadmin-vos-irix-fixes-20080421

LICENSE IPL10

irix is cranky about missing prototypes

(cherry picked from commit 8bf142ae2a979447b259b0945187379812883bee)

12 years agoDEVEL15-ppc64-linux-26-thread-info-20080418
Derrick Brashear [Mon, 21 Apr 2008 19:59:34 +0000]
DEVEL15-ppc64-linux-26-thread-info-20080418

LICENSE IPL10

thread_info is dead

(cherry picked from commit 2a0f8bfda8b00de429cb15481e3e20d5d140a81c)

12 years agoDEVEL15-dafs-irix-prec99-20080421
Derrick Brashear [Mon, 21 Apr 2008 19:55:48 +0000]
DEVEL15-dafs-irix-prec99-20080421

LICENSE IPL10

unless/until we build c99, irix needs this

(cherry picked from commit 92b5087b42653d5358433c06d60f3adc67a11015)

12 years agoDEVEL15-windows-readme-20080421
Jeffrey Altman [Mon, 21 Apr 2008 17:03:50 +0000]
DEVEL15-windows-readme-20080421

LICENSE MIT

update the build instructions

12 years agoDEVEL15-windows-notes-20080421
Jeffrey Altman [Mon, 21 Apr 2008 16:51:28 +0000]
DEVEL15-windows-notes-20080421

LICENSE MIT

1.5.35

12 years agoDEVEL15-windows-release-notes-20080421
Jeffrey Altman [Mon, 21 Apr 2008 16:44:06 +0000]
DEVEL15-windows-release-notes-20080421

LICENSE MIT

no changes.  just version number increase to 1.5.35

12 years agoDEVEL15-windows-cache-version-20080421
Jeffrey Altman [Mon, 21 Apr 2008 16:36:49 +0000]
DEVEL15-windows-cache-version-20080421

LICENSE MIT

increase the cache version because the cm_volume_t data structure was modified.

(cherry picked from commit a6ef7fed731628a5e5b8af62f7e986d6f7ccf444)

12 years agoDEVEL15-windows-version-20080421
Jeffrey Altman [Mon, 21 Apr 2008 16:27:55 +0000]
DEVEL15-windows-version-20080421

LICENSE MIT

1.5.3500.0 == 1.5.35

12 years agoDEVEL15-linux-fc9-20080419
Simon Wilkinson [Sat, 19 Apr 2008 22:55:44 +0000]
DEVEL15-linux-fc9-20080419

LICENSE IPL10

add in needed changes for fc9 kernels

(cherry picked from commit 0caa578a05150451c706c2ec6c3d095c671a7043)

12 years agoDEVEL15-klog-deal-with-aix-stupidity-20080418
Derrick Brashear [Fri, 18 Apr 2008 21:49:58 +0000]
DEVEL15-klog-deal-with-aix-stupidity-20080418

LICENSE IPL10

aix krb5 is broken. deal.

(cherry picked from commit 194067be89293d2f3ee4e791515c3ac020d3a551)

12 years agoDEVEL15-windows-volume-status-20080418
Jeffrey Altman [Fri, 18 Apr 2008 17:46:07 +0000]
DEVEL15-windows-volume-status-20080418

LICENSE MIT

A problem was discovered with cm_Analyze when serverRef instances are
marked offline.  cm_CheckOfflineVolume() was not resetting the serverRef
state.  cm_Analyze was also waiting in sleep calls when it was it is
clear that waiting would not result in a change of state.

cm_CheckOfflineVolume() was updated to always reset the serverRef state
and indicate that the volume should be considered online for the purpose
of retrying when the serverRef state is reset to srv_not_busy.

The problems identified in the MIT dev.mit.edu stress test environment
are resolved by these changes.

(cherry picked from commit c3eb805fc0309efca059a26b946eb4350417867e)