openafs.git
17 years agowindows-bkgdaemon-retry-failed-requests-20070203
Jeffrey Altman [Sun, 4 Feb 2007 02:45:21 +0000]
windows-bkgdaemon-retry-failed-requests-20070203

background request functions such as BkgFetch and BkgStore do not
return success or failure.  the bkgDaemon thread simply executes
the request and discards it regardless of whether or not the request
was completed.  this can result in background store event failing
to be written to the file server.

modify the background request functions to return success or failure.

modify the background daemon to put failed requests back onto the queue
if the reason for failure was transient.

modify the background daemon only to process requests when the servers
for the volume are marked up.

17 years agowindows-buf-refcount-leak-fix-20070203
Jeffrey Altman [Sun, 4 Feb 2007 02:01:12 +0000]
windows-buf-refcount-leak-fix-20070203

Plug a buffer refcount leak.   This is why the client slows down over
time.  It runs out of buffers it can use.

17 years agowindows-buf-dump-fix-20070203
Jeffrey Altman [Sat, 3 Feb 2007 18:03:55 +0000]
windows-buf-dump-fix-20070203

  restore the missing format string to the Buffer Hash Table Dump routine

17 years agowindows-log-eol-20070203
Jeffrey Altman [Sat, 3 Feb 2007 17:48:07 +0000]
windows-log-eol-20070203

ensure that log files use CR-LF for end of line.   the "fs memdump"
output and the afsd_init.log initialization output were still using LF.

17 years agowindows-drive-mappings-20070202
Jeffrey Altman [Sat, 3 Feb 2007 04:47:41 +0000]
windows-drive-mappings-20070202

FIXES 45545

Correct the return types and values of the Window Procedures.
This fixes the drive mappings problems.

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

Remove "Drive " from the drive mappings.  This way the drive letters
can be selected with a single key press.

17 years agolinux-and-locks-cleanup-20070202
Chaskiel M Grundman [Sat, 3 Feb 2007 03:23:16 +0000]
linux-and-locks-cleanup-20070202

fix linux flock, remove a bogus lock assert, and fix pid tracking to avoid useless panic

17 years agowindows-afsd-volume-ref-leak-20070202
Jeffrey Altman [Fri, 2 Feb 2007 15:43:07 +0000]
windows-afsd-volume-ref-leak-20070202

When looking up a volume by ID or Name, if the volume server data requires
refreshing and the UpdateVolume operation failed, do not leak the refCount.

17 years agowindows-nsis-20070202
Jeffrey Altman [Fri, 2 Feb 2007 15:36:45 +0000]
windows-nsis-20070202

even if afsd_service.exe can be shut down the binary might still not
be able to be replaced due to the windows Protection Service.
Use the ReplaceDLL macro

17 years agovenus-include-afs-com_err-20070201
Jeffrey Altman [Thu, 1 Feb 2007 13:23:45 +0000]
venus-include-afs-com_err-20070201

FIXES 51424

include afs/com_err.h for error_message() prototype to prevent crashes
on platforms with 64-bit pointers and 32-bit int

17 years agowindows-freelance-20070131
Jeffrey Altman [Thu, 1 Feb 2007 04:28:37 +0000]
windows-freelance-20070131

FIXES 52069

If an app tries to open the freelance directory for WRITE then the
default anonymous access privileges, read/lookup, are not sufficient
and cm_HaveAccessRights will fail.  Freelance can't get access rights
from anywhere.  Therefore, cm_HaveAccessRights should special case
the Freelance directory.

17 years agowindows-delete-test-file-not-dir-20070131
Jeffrey Altman [Wed, 31 Jan 2007 17:02:02 +0000]
windows-delete-test-file-not-dir-20070131

the cm_CheckNTDelete function was testing the permissions of the
directory and not the permissions of the file being deleted.
This resulted in inconsistencies between the attributes of the
file and the ability to delete it.

this patch also adds a large amount of trace log entries as there
was none in this section of the code before.

17 years agowindows-shell-ext-reformat-20070130
Jeffrey Altman [Tue, 30 Jan 2007 12:41:19 +0000]
windows-shell-ext-reformat-20070130

reformat the source code to make it easier to read/edit

17 years agowindows-netidmgr-string-updates-20070130
Jeffrey Altman [Tue, 30 Jan 2007 12:28:29 +0000]
windows-netidmgr-string-updates-20070130

As per the NetIdMgr model, refer to credentials instead of tokens.

Update the copyright strings

17 years agowindows-vol-fssync-debug-20070130
Jeffrey Altman [Tue, 30 Jan 2007 12:23:28 +0000]
windows-vol-fssync-debug-20070130

add a resource file for fssync-debug for when we decide to build it

17 years agowindows-vol-fix-salvager-20070130
Jeffrey Altman [Tue, 30 Jan 2007 12:14:49 +0000]
windows-vol-fix-salvager-20070130

The salvager on Windows was not being built properly.  The fssync-debug.c
main() was being used instead of the salvager.c main().  Remove
fssync-debug.obj from the library and fixup the includes and global
variable declarations.

17 years agowindows-procmgmt-20070130
Jeffrey Altman [Tue, 30 Jan 2007 12:04:22 +0000]
windows-procmgmt-20070130

Do not raise an exception if SIGQUIT is received prior to the
registration of the Shutdown handler

17 years agodocument-fs-setacl-permissions-20070129
Russ Allbery [Mon, 29 Jan 2007 19:25:40 +0000]
document-fs-setacl-permissions-20070129

Better document the current state of implicit "a" rights on directories.

17 years agovolume-dont-artificially-untimeout-vlservers-20061218
Jeffrey Hutzelman [Thu, 25 Jan 2007 11:19:19 +0000]
volume-dont-artificially-untimeout-vlservers-20061218

FIXES 48959

remove synthetic event to undo timeouts of vlservers we "haven't talked to yet"

17 years agoasetkey-includes-20060122
Jim Rees [Mon, 22 Jan 2007 22:30:15 +0000]
asetkey-includes-20060122

fix includes

17 years agomake-cleaner-20070122
Derrick Brashear [Mon, 22 Jan 2007 17:19:26 +0000]
make-cleaner-20070122

this stuff was missed

17 years agokrb5-obsd-20060122
Jim Rees [Mon, 22 Jan 2007 16:24:23 +0000]
krb5-obsd-20060122

mention KRB5CFLAGS for OpenBSD

17 years agowindows-fix-volume-refcount-leak-20070121
Jeffrey Altman [Mon, 22 Jan 2007 02:16:38 +0000]
windows-fix-volume-refcount-leak-20070121

Plug a volume refcount leak

Add volume data to the "fs memdump" output

Add memmap stat data to the afsd_init.log output at startup and shutdown

17 years agolinux-kbuild-test-fixes-20070119
Jeffrey Hutzelman [Fri, 19 Jan 2007 19:31:05 +0000]
linux-kbuild-test-fixes-20070119

fixes to build for linux when doing objdir builds

17 years agowindows-nsis-fix-rpc-20070116
Jeffrey Altman [Tue, 16 Jan 2007 17:24:30 +0000]
windows-nsis-fix-rpc-20070116

remove the rpc fix.  the original code was correct

17 years agowindows-nsis-installer-20070115
Jeffrey Altman [Mon, 15 Jan 2007 23:40:38 +0000]
windows-nsis-installer-20070115

Fix the RPC check to actually check the RPC status

Update the copyright date

Add Vista version detection

17 years agowindows-open-dir-lookup-20070115
Jeffrey Altman [Mon, 15 Jan 2007 19:50:51 +0000]
windows-open-dir-lookup-20070115

add new error code when requested InfoLevel is not supported

CIFS NTCreateX Read privilege means PRSFS_LOOKUP when the object is a
directory

17 years agoalloc-sem-is-sem-20070115
Chaskiel M Grundman [Mon, 15 Jan 2007 18:15:45 +0000]
alloc-sem-is-sem-20070115

this change didn't belong...

17 years agolinux26-large-pag-groups-20070115
Chaskiel M Grundman [Mon, 15 Jan 2007 20:41:23 +0000]
linux26-large-pag-groups-20070115

working from base provided by shadow@dementia.org

17 years agolocker-thread-tracking-20070111
Derrick Brashear [Fri, 12 Jan 2007 16:27:57 +0000]
locker-thread-tracking-20070111

track thread ids so we can properly not deadlock

17 years agonetinfo-fake-support-correction-20070112
Derrick Brashear [Fri, 12 Jan 2007 05:18:52 +0000]
netinfo-fake-support-correction-20070112

fix NetInfo "f" line fake IP address support to work when either
1) NetRestrict file is in place or
2) existing sysid file does not list fake address

17 years agorx-deal-with-afs34-jumbograms-again-20070111
Tom Keiser [Fri, 12 Jan 2007 03:48:29 +0000]
rx-deal-with-afs34-jumbograms-again-20070111

FIXES 51116

try again at dealing with old jumbograms

17 years agoclient-handle-vicetokendead-with-reconnect-20070109
Jeffrey Altman [Tue, 9 Jan 2007 15:26:56 +0000]
client-handle-vicetokendead-with-reconnect-20070109

client-handle-vicetokendead-with-reconnect-20070104 failed
to alter the behavior of the RXKADEXPIRED and other cases.

17 years agotsfpq-macro-naming-20070105
Derrick Brashear [Sat, 6 Jan 2007 01:18:46 +0000]
tsfpq-macro-naming-20070105

rename the queue-splicing versions of the checkin/checkout macros

17 years agobuildpkg-dmg-path-20070105
Derrick Brashear [Fri, 5 Jan 2007 23:30:10 +0000]
buildpkg-dmg-path-20070105

reported by marcus watts

17 years agorx-deal-with-afs34-jumbograms-again-20070105
Derrick Brashear [Fri, 5 Jan 2007 23:14:21 +0000]
rx-deal-with-afs34-jumbograms-again-20070105

try again at dealing with old jumbograms

17 years agomultiple-local-realms-20070105
Derrick Brashear [Fri, 5 Jan 2007 23:05:13 +0000]
multiple-local-realms-20070105

FIXES 51104

do the correct check

17 years agopts-rename-fix-20070105
Kevin Hildebrand [Fri, 5 Jan 2007 18:20:08 +0000]
pts-rename-fix-20070105

FIXES 51066

fix pts rename to do the right thing

17 years agowindows-unix-mode-bit-enforcement-20070105
Jeffrey Altman [Fri, 5 Jan 2007 17:13:11 +0000]
windows-unix-mode-bit-enforcement-20070105

modify the write-lock permission test so that the UnixMode bits do not
subtract PRSFS_WRITE from the rights when testing PRSFS_WRITE | PRSFS_LOCK.

PRSFS_WRITE implies PRSFS_LOCK so add it

Add new registry value "DeleteReadOnly" to permit deletion of read-only
files.  The default is 0.  Set to non-zero value to activate.

17 years agobucoord-protoize-20070104
Sean O'Malley [Fri, 5 Jan 2007 06:07:37 +0000]
bucoord-protoize-20070104

FIXES 50870

protoize bucoord

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

undo redundant include

====================
FIXES 50870

protoize bucoord

====================
FIXES 50870

protoize bucoord

17 years agopr-changeentry-arg-types-20070105
Derrick Brashear [Fri, 5 Jan 2007 06:02:28 +0000]
pr-changeentry-arg-types-20070105

oops. put it back

17 years agosolaris-but-seriously-20070105
Derrick Brashear [Fri, 5 Jan 2007 05:02:39 +0000]
solaris-but-seriously-20070105

guess chas had the right idea

17 years agofree-packet-avoid-issue-with-34-jumbograms-20070104
Derrick Brashear [Fri, 5 Jan 2007 04:56:09 +0000]
free-packet-avoid-issue-with-34-jumbograms-20070104

try to deal with rainer toebbicke's ongoing issue

17 years agosolaris-mypid-track-threads-20070104
Derrick Brashear [Fri, 5 Jan 2007 04:48:32 +0000]
solaris-mypid-track-threads-20070104

based on suggestion by tkeiser

17 years agounroll-namei-delay-fsync-20070104
Derrick Brashear [Fri, 5 Jan 2007 03:39:16 +0000]
unroll-namei-delay-fsync-20070104

has been shown to cause problems with releases per haba@pdc.kth.se testing, unroll until we figure out why

17 years agoasetkey-with-heimdal-20070104
Marcus Watts [Fri, 5 Jan 2007 03:21:34 +0000]
asetkey-with-heimdal-20070104

FIXES 50973

just make asetkey build with heimdal

17 years agodarwin-fake-more-free-20070104
Derrick Brashear [Thu, 4 Jan 2007 22:08:26 +0000]
darwin-fake-more-free-20070104

fake more free disk space for dumb apps

17 years agoclient-handle-vicetokendead-with-reconnect-20070104
Derrick Brashear [Thu, 4 Jan 2007 21:55:21 +0000]
client-handle-vicetokendead-with-reconnect-20070104

basically, if the issue is really expired tokens then we force the server to tell us that instead of that our older connection is still using the old tokens for some reason, by letting a new connection happen first

17 years agomacos-installer-fix-20070104
Derrick Brashear [Thu, 4 Jan 2007 21:48:28 +0000]
macos-installer-fix-20070104

this time for sure

17 years agolinux-workqueue-prereq-20070104
Derrick Brashear [Thu, 4 Jan 2007 21:42:24 +0000]
linux-workqueue-prereq-20070104

FIXES 49890

make the workqueue configure test actually work on 2.4

17 years agofreezer-h-existance-20070104
Marc Dionne [Thu, 4 Jan 2007 21:15:16 +0000]
freezer-h-existance-20070104

FIXES 50941

only include freezer.h if it exists

17 years agolinux-kbuild-configure-20070104
Marcus Watts [Thu, 4 Jan 2007 20:05:20 +0000]
linux-kbuild-configure-20070104

FIXES 40604

Test whether Linux kernel builds work at all before going into specific
builds so that we can fail earlier with a better error message.  Try to
put more errors from the kernel build into config.log.

17 years agomd5-inode-even-odd-hack-20070104
Derrick Brashear [Thu, 4 Jan 2007 15:59:35 +0000]
md5-inode-even-odd-hack-20070104

the even-odd hack didn't work with the new md5 inode numbers. fix it. suggested by Bennett Todd.

17 years agowindows-unix-mode-bit-enforcement-20070102
Jeffrey Altman [Wed, 3 Jan 2007 00:44:27 +0000]
windows-unix-mode-bit-enforcement-20070102

When the Unix mode bits do not include the write bit (0200), then the
file is reported to Windows as read-only.  This also prevents the
acquisition of write-locks.  It should also prevent deletion but the
code in cm_HaveAccessRights() did not remove the PRSFS_DELETE privilege
from the reported rights.

17 years agotaking-rx-back-into-the-20th-century-20061228
Derrick Brashear [Tue, 2 Jan 2007 17:17:49 +0000]
taking-rx-back-into-the-20th-century-20061228

ken's patch is now on the ipv6 branch

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

restore deleted taddr declaration.

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

ken's patch is now on the ipv6 branch

17 years agostrl-20070102
Jim Rees [Tue, 2 Jan 2007 16:48:33 +0000]
strl-20070102

str->strl

17 years agofix-linux-2-6-20-configure-test-20070102
Marc Dionne [Tue, 2 Jan 2007 15:59:13 +0000]
fix-linux-2-6-20-configure-test-20070102

FIXES 50594

make the cc flags modification not break things

17 years agoifdef-nfs-translator-20070102
Marc Dionne [Tue, 2 Jan 2007 15:40:35 +0000]
ifdef-nfs-translator-20070102

FIXES 50602

appropriately wrap nfs translator code in ifdefs

17 years agosolaris10-suser-replace-20070102
Dale Ghent [Tue, 2 Jan 2007 07:33:23 +0000]
solaris10-suser-replace-20070102

FIXES 50246

suser is dead, long live suser

17 years agowindows-readme-20061230
Jeffrey Altman [Sat, 30 Dec 2006 17:49:29 +0000]
windows-readme-20061230

updates for VS2005, Vista, etc.

17 years agowindows-no-version-20061230
Jeffrey Altman [Sat, 30 Dec 2006 17:09:48 +0000]
windows-no-version-20061230

set the version numbers on the head to 0.0.0.0 so there is no confusion
that this code is not ready for prime time

17 years agokaserver-deprecation-warning-20061230
Jeffrey Altman [Sat, 30 Dec 2006 17:00:51 +0000]
kaserver-deprecation-warning-20061230

The following message is now logged to both the BosLog and the AuthLog
at startup.

  WARNING: kaserver is deprecated due to its weak security properties.
  Migrating to a Kerberos 5 KDC is advised.
  http://www.openafs.org/no-more-des.html

17 years agoafsdb-resolver-reinit-20061230
Jeffrey Altman [Sat, 30 Dec 2006 16:55:02 +0000]
afsdb-resolver-reinit-20061230

FIXES 50576

replace 'try' with 'try_init' and declare 'try_init'.
'try' is a reserved word on some compilers.  not sure how this code
was compiling on MacOS X and Windows as 'try' was not declared.

17 years agowindows-optimize-smb-dir-search-if-no-wildcard-20061229
Jeffrey Altman [Sat, 30 Dec 2006 02:44:39 +0000]
windows-optimize-smb-dir-search-if-no-wildcard-20061229

do not follow mountpoints when calling cm_Lookup as part of the
optimization.  otherwise the shortname is computed incorrectly.

17 years agoproc-unixusers-cleanup-on-linux-20061228
Derrick Brashear [Thu, 28 Dec 2006 22:32:52 +0000]
proc-unixusers-cleanup-on-linux-20061228

FIXES 49978

maybe?

17 years agonull-terminate-solaris-ops-20061228
Dale Ghent [Thu, 28 Dec 2006 22:25:41 +0000]
null-terminate-solaris-ops-20061228

FIXES 50340

vfsops and vnodeops need a NULL at the end of the structs

17 years agoadd-solaris-11-support-v2-20061228
Dale Ghent [Thu, 28 Dec 2006 21:57:24 +0000]
add-solaris-11-support-v2-20061228

FIXES 50343

initial 5.11 support

17 years agosolaris10-suser-replace-20061228
Dale Ghent [Thu, 28 Dec 2006 21:48:25 +0000]
solaris10-suser-replace-20061228

FIXES 50246

suser is dead, long live suser

17 years agolinux-install-correct-modules-20061228
Marc Dionne [Thu, 28 Dec 2006 21:35:17 +0000]
linux-install-correct-modules-20061228

FIXES 49787

actually install the correct MP/EP/BM et al modules

17 years agolinux-2620-rc1-update-20061228
Marc Dionne [Thu, 28 Dec 2006 21:28:31 +0000]
linux-2620-rc1-update-20061228

FIXES 49890

updates for linux 2.6.20-rc1

17 years agoafsdb-resolver-reinit-20061228
Derrick Brashear [Thu, 28 Dec 2006 20:36:26 +0000]
afsdb-resolver-reinit-20061228

as reported by Adam Megacz, but my own version of the fix

17 years agomacos-installer-fix-20061227
Derrick Brashear [Wed, 27 Dec 2006 15:46:26 +0000]
macos-installer-fix-20061227

make the installer build correctly again

17 years agowindows-server-config-20061226
Jeffrey Altman [Tue, 26 Dec 2006 20:21:16 +0000]
windows-server-config-20061226

Reformat the entire directory.

Add Freelance mode awareness.

Map the root.afs volume starting from Z: and work down.

17 years agowindows-optimize-smb-dir-search-if-no-wildcard-20061226
Jeffrey Altman [Tue, 26 Dec 2006 20:17:25 +0000]
windows-optimize-smb-dir-search-if-no-wildcard-20061226

fix the computation of the ShortName.  Take into account the network
byte order of the cm_dirFid_t fields.

send error packets from within the function as needed.  do not return
the error to the caller.

17 years agobosserver-avoid-bosconfig-truncation-20061221
Derrick Brashear [Fri, 22 Dec 2006 06:45:40 +0000]
bosserver-avoid-bosconfig-truncation-20061221

why the heck would it be a good idea to rewrite the BosConfig while we are starting, exactly?

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

why the heck would it be a good idea to rewrite the BosConfig while we are start
ing, exactly?

17 years agosplit-cache-update-20061220
Derrick Brashear [Wed, 20 Dec 2006 21:17:12 +0000]
split-cache-update-20061220

move closer to 1.4 implementation esp when split cache is turned off

17 years agosolaris10-avoid-direct-cred-access-20061220
Dale Ghent [Wed, 20 Dec 2006 20:07:02 +0000]
solaris10-avoid-direct-cred-access-20061220

avoid a panic after we muck with groups by being less evil

17 years agostrl-20061220
Jim Rees [Wed, 20 Dec 2006 17:03:59 +0000]
strl-20061220

convert sys_errlist -> strerror, strcat ->strlcat, strcpy -> strlcpy

17 years agowindows-afslogon-20061219
Jeffrey Altman [Tue, 19 Dec 2006 17:55:44 +0000]
windows-afslogon-20061219

Initialize Winsock from within afslogon.c so that ka_UserAuth will
work again.

17 years agovolser-dumpstuff-20061218
Hartmut Reuter [Tue, 19 Dec 2006 04:50:16 +0000]
volser-dumpstuff-20061218

FIXES 46937

"vos release" per default does an incremental dump.
volser-dump-validate-input-20060417 ends up with keeping dead vnodes and
data in the remote RO-volume.  This patch corrects the behavior for
RO-volumes.

See ticket for extensive discussion.

17 years agorx-mtu-fixes-20061218
Chas Williams [Tue, 19 Dec 2006 04:35:29 +0000]
rx-mtu-fixes-20061218

http://www.openafs.org/pipermail/openafs-devel/2006-November/014487.html

17 years agokernel-endianness-test-fix-20061218
Derrick Brashear [Tue, 19 Dec 2006 04:29:13 +0000]
kernel-endianness-test-fix-20061218

FIXES 47893

ok, so, when we're in the kernel, do something

17 years agoopenafs-kernel-src-fix-20061218
Derrick Brashear [Tue, 19 Dec 2006 04:18:48 +0000]
openafs-kernel-src-fix-20061218

FIXES 44573

ok, so, we need to emit Makefile.version when we build openafs-kernel

17 years agovolser-undo-cleanup-20061218
Jeffrey Altman [Tue, 19 Dec 2006 03:37:34 +0000]
volser-undo-cleanup-20061218

uncommit an inappropriate commit

  DELTA volser-cleanup-xx-20061128

17 years agorx-globals-avoid-INIT-reuse-20061218
Derrick Brashear [Tue, 19 Dec 2006 03:17:57 +0000]
rx-globals-avoid-INIT-reuse-20061218

FIXES 45515

avoid calling our macro INIT

17 years agovolume-dont-artificially-untimeout-vlservers-20061218
Jeffrey Hutzelman [Tue, 19 Dec 2006 02:32:55 +0000]
volume-dont-artificially-untimeout-vlservers-20061218

FIXES 48959

remove synthetic event to undo timeouts of vlservers we "haven't talked to yet"

17 years agolinux-osi-cred-pool-byebye-20061218
Chas Williams [Tue, 19 Dec 2006 02:28:19 +0000]
linux-osi-cred-pool-byebye-20061218

ok, unneeded abstraction removed.

17 years agowindows-afslogon-20061218
Jeffrey Altman [Mon, 18 Dec 2006 23:56:19 +0000]
windows-afslogon-20061218

test for the existence of the mutex and not the bInit flag
during the DLL attach

17 years agowindows-install-wix-20061218
Asanka Herath [Mon, 18 Dec 2006 22:33:15 +0000]
windows-install-wix-20061218

remove the AFS Server wizard shortcut

add AFS Server dependencies (tcpip and PNP_TDI)

17 years agowindows-nsis-20061218
Jeffrey Altman [Mon, 18 Dec 2006 21:44:11 +0000]
windows-nsis-20061218

remove the autorun for the AFS Server Wizard

remove the shortcut to the AFS Server Wizard

update the service dependencies for the bosctlsvc (tcpip and PNP_TDI)

17 years agowindows-optimize-smb-dir-search-if-no-wildcard-20061217
Asanka Herath [Sun, 17 Dec 2006 21:05:28 +0000]
windows-optimize-smb-dir-search-if-no-wildcard-20061217

When performing a SMB FindFirst/FindNext/FindClose operation if there
are no wildcards involved, we can optimize the case and turn it from
O(n) to O(1) where 'n' is the number of entries in the directory.
This can be done by performing a cm_Lookup() and if it succeeds,
constructing the appropriate response instead of parsing the contents
of each buffer associated with the directory looking for matches.

Without this optimization, FindFirst operations on directories containing
thousands of entries can take a large number of seconds to complete.

17 years agorx-fix-lock-init-20061216
Jeffrey Altman [Sun, 17 Dec 2006 01:21:52 +0000]
rx-fix-lock-init-20061216

When rxBind was added it made an assumption that rx_GetIFInfo could be
called before rx_InitXYZ.  This is true on non-Windows platforms, but
on Windows rxGetIFInfo relies on an initialized mutex.  This patch adds
a DllMain for Windows in order to initialize the mutex object upon DLL
load.

17 years agovldb-repair-tool-20061216
Derrick Brashear [Sat, 16 Dec 2006 06:25:24 +0000]
vldb-repair-tool-20061216

make vldb_check able to repair at least some kinds of damage

run it on a vldb which does not have a server operating live on it
verify the result with vldb_check before using.

17 years agoubik-better-debug-logging-in-remote-20061215
Derrick Brashear [Fri, 15 Dec 2006 16:37:03 +0000]
ubik-better-debug-logging-in-remote-20061215

log when we get errors doing remote sync what it was, rather than covering it up

17 years agowindows-custom-control-subclassing-bis-20061212
Jeffrey Altman [Wed, 13 Dec 2006 00:25:23 +0000]
windows-custom-control-subclassing-bis-20061212

Do not link to both talocale.lib and taafsapplib.lib.

If you do, then there are duplicate functions in both the .EXE and
the TaAfsAppLib.DLL.

17 years agowindows-custom-control-subclassing-20061212
Jeffrey Altman [Tue, 12 Dec 2006 20:37:44 +0000]
windows-custom-control-subclassing-20061212

While investigating the reasons behind the Drive Mapping listbox
failing to permit entries 2 or above to be edited or removed and
the text string being truncated to two characters (on some systems)
I discovered that the subclasses were being recompiled into each
application instead of linking against the DLL that contains the
controls.

The custom controls have been renamed to address name space issues.

The "Drive X:" label changed to "X:" to permit single character item
selection within the listbox.

Still have no idea what is really going on.  Spy++ shows the Windows
messages being sent to the correct Windows.  However, the getcount
message never obtains a value other than 0 or 1.  This is probably
why the selection code is broken.  Still working on it.

17 years agowindows-sleep-when-out-of-buffers-20061212
Jeffrey Altman [Tue, 12 Dec 2006 17:02:37 +0000]
windows-sleep-when-out-of-buffers-20061212

When there are no free buffers, don't loop continuously.
Sleep so that the other threads that are holding the buffers
can grab the global buffer lock and release them.

17 years agowindows-afsd-20061211
Jeffrey Altman [Tue, 12 Dec 2006 04:00:40 +0000]
windows-afsd-20061211

(1) Power Management improvements.  Maintain a global flag that
    specifies whether or not the service is in a suspend state.
    Do not panic if Netbios() returns NRC_BRIDGE meaning that the
    lana is no longer valid.  Instead, stop the listener threads
    and if all listener threads are stopped, reset the lana_list.
    Allow the cm_Daemon() thread to periodically check the state
    of the smb listeners.  If they are all stopped and the service
    is not suspended, attempt to restart them.  If there are no valid
    lanas, return to the stopped state.

(2) CreateX and NTCreateX use cm_CheckNTOpen() to test whether or not
    the user is permitted to obtain read or write locks.  This function
    would obtain the lock and then drop it returning whether or not
    the lock could be obtained.  If the lock was in fact required,
    CreateX/NTCreateX would then obtain it with cm_Lock().  The problem
    of course being that this pattern results in three RPCs to the
    file server (lock, unlock, lock).  This is reduced to one RPC by
    implementing cm_CheckNTOpenDone() which frees the allocated byte
    range lock from cm_CheckNTOpen() after the cm_Lock() call is
    performed.

(3) Remove unused code.

(4) Add debugging to SMB Directory Search functions.

(5) Increase the SMB Ioctl MaxData size

17 years agokaserver-log-tgtreq-20061206
Russ Allbery [Wed, 6 Dec 2006 20:00:48 +0000]
kaserver-log-tgtreq-20061206

Separately log TGT requests in addition to logging the authentication so
that one can distinguish in the logs between Kerberos v4 clients and uses
of klog.

17 years agorx-preparesendpacket-avoid-double-free-20061205
Derrick Brashear [Tue, 5 Dec 2006 19:38:44 +0000]
rx-preparesendpacket-avoid-double-free-20061205

wow, this is special

existed forever but only when we stopped leaking packets did it become a problem

anyway, don't free packets and forget to reduce the number of packets in play

17 years agodocbook-quickguide-cleanup-20061201
Russ Allbery [Sat, 2 Dec 2006 03:56:17 +0000]
docbook-quickguide-cleanup-20061201

Remove generated files from CVS.

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

Some initial obvious cleanup.  Removed all the sections on Digital UNIX,
changed IBM AFS to OpenAFS throughout, and reformatted and cleaned up the
front matter and some of the first few pages.