Commit Graph

5189 Commits

Author SHA1 Message Date
Jeffrey Altman
39d2ac1438 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.
2008-06-06 00:22:03 +00:00
Russ Allbery
1473a8747a man-page-readme-fileserver-20080605
LICENSE BSD

Remove the note about missing file server options.  We think we got them
all.
2008-06-05 21:19:10 +00:00
Jason Edgecombe
1fdfac7065 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.
2008-06-05 20:31:13 +00:00
Jeffrey Altman
b5d888ed40 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.
2008-06-04 09:02:21 +00:00
Derrick Brashear
79b7b4eade linux24-hlist-unhashed-configure-test-fix-20080602
LICENSE IPL10

make the hlist_unhashed test actually work
2008-06-03 03:53:54 +00:00
Jeffrey Altman
2b937b867f windows-vlserver-remove-extraneous-make-targets-20080529
LICENSE MIT

remove extraneous make targets
2008-05-29 18:19:21 +00:00
Jeffrey Altman
749ae65481 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.
2008-05-29 14:31:41 +00:00
Jeffrey Altman
11350e8024 strftime-portability-20080528
LICENSE MIT

%T is not portable to Windows.  Replace it with the equivalent %H:%M:%S
format string.
2008-05-29 05:02:36 +00:00
Jeffrey Altman
c5bce0f87d 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.
2008-05-29 04:35:19 +00:00
Jeffrey Altman
5ad08dc166 windows-vlserver-headers-20080528
LICENSE MIT

make sure the headers are copied to the correct location by providing
explicit rules
2008-05-28 19:37:09 +00:00
Jeffrey Altman
dc835c2d53 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.
2008-05-28 18:40:06 +00:00
Jeffrey Altman
5930abcbe1 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.
2008-05-28 18:33:17 +00:00
Jeffrey Altman
54c0f2f837 windows-unused-var-20080528
LICENSE MIT

remove unused var cm_CachePathLen
2008-05-28 18:27:32 +00:00
Jeffrey Altman
7b8c8a48a3 windows-btree-20080528
LICENSE MIT

add cm_btree.h to afsd.h include list
2008-05-28 18:21:33 +00:00
Asanka Herath
c5911d25f8 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.
2008-05-27 21:33:14 +00:00
Jeffrey Hutzelman
b1549f29a9 rx-client-keep-keepalives-20080523
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.
2008-05-23 15:55:29 +00:00
Simon Wilkinson
18a36a3f62 disconnected-20080523
LICENSE IPL10

add readonly disconnected support
2008-05-23 15:57:18 +00:00
Derrick Brashear
b26f133a56 darwin-rc-common-does-set-minus-u-20080522
LICENSE IPL10

we need to cope with an unset variable
2008-05-22 22:03:16 +00:00
Jeffrey Hutzelman
c34822d610 rx-client-keep-keepalives-20080522
LICENSE IPL10
FIXES 20727

not our bug, but, previous code refactoring broke rx. put back keepalives in client rx connections while they are turned around.
2008-05-22 19:28:37 +00:00
Derrick Brashear
8450a1eb1d dafs-volumestats-conflict-20080521
LICENSE IPL10

avoid symbol conflict in volume.h
2008-05-22 04:51:27 +00:00
Derrick Brashear
dcafea769a vos-sync-flag-voltype-properly-20080521
LICENSE IPL10

when adding a backup volume to a vldb entry, flag it as such.
2008-05-21 21:15:41 +00:00
Simon Wilkinson
1705bda53e tweak-regen-20080521
LICENSE IPL10

make regen quieter if you don't want man pages
2008-05-21 16:40:52 +00:00
Derrick Brashear
30f65085f7 macos-tuning-20080521
LICENSE IPL10

be more aggressive to get better performance
2008-05-21 14:51:56 +00:00
Derrick Brashear
1206e7538b pmtu-and-prefetch-20080520
LICENSE IPL10

try hard to optimize using the wire for high latency connections
2008-05-21 05:22:13 +00:00
Derrick Brashear
c761f24839 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) work around it.

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

if we can't use hlist_unhashed (which is dumb) or we don't have it (less dumb) w
ork around it.
2008-05-20 22:02:49 +00:00
Matt Benjamin
f00df529b7 rx-connection-clones-20080520
LICENSE IPL10
FIXES 89557

add connection clones to allow more than maxcalls per "connection"
2008-05-20 21:24:16 +00:00
Derrick Brashear
3edb97360b aix-unpin-after-free-20080520
LICENSE IPL10
FIXES 99456

in order that cleanup be safe we need to do it this way
2008-05-20 20:48:34 +00:00
Jeffrey Altman
090b2eebfa 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.
2008-05-14 05:14:57 +00:00
Jeffrey Altman
53cffb32ab windows-unicode-normalize-btree-20080511
LICENSE MIT

Attempt to normalize afs directory strings before inserting them into
the B+tree.
2008-05-12 04:02:28 +00:00
Asanka Herath
9e67c4f766 windows-unicode-support-normalize-20080511
LICENSE MIT

Actually normalize when normaliz.dll is present.
2008-05-12 02:36:36 +00:00
Jeffrey Altman
9d28d95151 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.
2008-05-11 14:15:51 +00:00
Jeffrey Altman
b5dc1903a4 udebug-display-lastyeshost-order-20080510
LICENSE MIT

lastYesHost is already in network byte order.  do not reorder it again
when displaying it.
2008-05-10 16:19:35 +00:00
Derrick Brashear
c26dc0e6aa server-meltdown-avoidance-20080509
LICENSE IPL10

if the server is melting down or otherwise unable to reply with data, it will
cut itself off.
2008-05-09 19:50:39 +00:00
Asanka Herath
a36ec90cff 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.
2008-05-09 15:49:36 +00:00
Jeffrey Altman
048ae7c7e6 windows-have-snprintf-20080509
LICENSE MIT

Visual Studio provides [v]snprintf.  No need to define and export it.
2008-05-09 04:53:08 +00:00
Derrick Brashear
3feee9278b 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.
2008-05-08 22:24:52 +00:00
Jeffrey Altman
e6c818f070 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.
2008-05-08 22:17:49 +00:00
Jeffrey Altman
ef619db804 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.
2008-05-08 06:25:42 +00:00
Derrick Brashear
c847fb4964 viced-large-more-threads-20080506
LICENSE IPL10

fileserver -L should imply -p 128, not -p 12
2008-05-06 16:01:05 +00:00
Jeffrey Altman
98e658b782 windows-server-retry-20080502
LICENSE MIT

do not retry if there is no server available for the current attempt
2008-05-02 20:29:43 +00:00
Derrick Brashear
abff169b58 butc-xbsa-lwp-protoize-damage-20080501
LICENSE IPL10

make xbsa variant work again
2008-05-02 01:59:27 +00:00
Derrick Brashear
7915302f28 uuid-corrected-duplicate-check-20080501
LICENSE IPL10

apply check to chain, not input
2008-05-01 20:00:00 +00:00
Derrick Brashear
0a2c144307 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.
2008-04-30 20:07:43 +00:00
Derrick Brashear
888bc28b18 ubik-recovery-swap-in-new-fd-20080428
LICENSE IPL10

when recovery is done, forcibly invalidate the old fd
2008-04-28 22:48:00 +00:00
Hans-Werner Paulsen
668cd5331e 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.
2008-04-28 17:14:55 +00:00
Jeffrey Altman
25d9dbb6be 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.
2008-04-28 16:18:52 +00:00
Jeffrey Altman
2f2d5fd8a7 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.
2008-04-28 16:04:38 +00:00
Chaskiel M Grundman
7a6751c088 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
2008-04-28 04:45:03 +00:00
Derrick Brashear
c8f4d9f007 redhat-cellservdb-update-20080423
LICENSE IPL10

take update from upstream
2008-04-27 04:59:51 +00:00
Derrick Brashear
2aa615fed2 zero-uio-len-when-trimming-20080426
LICENSE IPL10

make it match ufsread case. should change this later.
2008-04-27 04:53:59 +00:00