openafs.git
15 years agowindows-dnlc-20080226
Jeffrey Altman [Wed, 27 Feb 2008 04:53:45 +0000]
windows-dnlc-20080226

LICENSE MIT

Remove race conditions in the statistics code by switching to
Interlocked functions.

Speed up cm_dnlcEnter() by searching first with a read lock and
then switching to a write lock if not found.

Add HKLM\SOFTWARE\OpenAFS\Client registry values "UseDNLC" and "Debug"DNLC".
I suspect with the B+tree code that the DNLC is unnecessary overhead but
leave it on by default for now.

15 years agoviced-cleanup-old-addresses-as-they-become-invalid-20080225
Jeffrey Altman [Tue, 26 Feb 2008 04:13:16 +0000]
viced-cleanup-old-addresses-as-they-become-invalid-20080225

LICENSE IPL10

otherwise we can end up with stale addresses when a client uses then leaves an
address never to return

15 years agowindows-force-anon-vldb-20080225
Jeffrey Altman [Mon, 25 Feb 2008 22:19:49 +0000]
windows-force-anon-vldb-20080225

LICENSE MIT

For organizations with krb5 aware file servers but transarc or old openafs
vldb servers, add force anonymous vldb lookup option

  HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters
DWORD "ForceAnonVLDB"  (default is 0)

15 years agothreadquota-enforcement-fixes-20080225
Jeffrey Hutzelman [Mon, 25 Feb 2008 20:38:09 +0000]
threadquota-enforcement-fixes-20080225

LICENSE IPL10
FIXES 87416

correctly set and unset HWHO_INPROGRESS as we pass through host probing package.

also, do not block on lock checking for HOSTDELETED. instead, return a null host
and VBUSY; restructure code to allow returning a null host with prejudice.

15 years agowindows-volume-logsavestring-20080225
Jeffrey Altman [Mon, 25 Feb 2008 19:34:44 +0000]
windows-volume-logsavestring-20080225

LICENSE MIT

remember to save the volume name when logging

15 years agowindows-smb-asyncstoresize-20080225
Jeffrey Altman [Mon, 25 Feb 2008 15:31:21 +0000]
windows-smb-asyncstoresize-20080225

LICENSE MIT

Further testing on the 115KB AT&T Edge connection shows that 128KB
provides reasonably robust performance with six simultaneous copies of
multi-MB files to AFS.

15 years agowindows-smb-async-store-20080224
Jeffrey Altman [Mon, 25 Feb 2008 05:33:54 +0000]
windows-smb-async-store-20080224

LICENSE MIT

Add two new configuration knobs to control the behavior of smb_WriteData.

HKLM\SOFTWARE\OpenAFS\Client
  DWORD EnableSMBAsyncStore  (default: 1)
  DWORD SMBAsyncStoreSize    (default: 32K)

Instead of tying the async store size to either the chunksize (too large)
or the buffer block size (too small) provide an intermediate value that
can be independently controlled.

In the future it would be desireable for the async store size to be
dynamically determined based upon measurable characteristics of the
network.  In the meantime, 32KB is an acceptable performance compromise
that should work well on 1Gbit networks and low-speed cellular networks.

15 years agonulluuid-check-only-valid-input-20080224
Derrick Brashear [Mon, 25 Feb 2008 04:57:47 +0000]
nulluuid-check-only-valid-input-20080224

LICENSE IPL10

as reported by jhutz@cmu.edu

15 years agowindows-scache-clean-bufs-20080224
Jeffrey Altman [Sun, 24 Feb 2008 15:33:52 +0000]
windows-scache-clean-bufs-20080224

LICENSE MIT

In MergeStatus, only remove clean buffers from the hash table.

15 years agowindows-buf-data-versions-20080224
Jeffrey Altman [Sun, 24 Feb 2008 06:31:54 +0000]
windows-buf-data-versions-20080224

LICENSE MIT

An implementation of Asanka's idea.

Avoid the need to update the data version number on each buffer associated
with a scache when MergeStatus is called after a StoreData by maintaining
a range of valid data versions as part of the cm_scache_t object.

15 years agowindows-optimize-access-20080224
Jeffrey Altman [Sun, 24 Feb 2008 06:27:38 +0000]
windows-optimize-access-20080224

LICENSE MIT

profiling shows large numbers of blocked calls in cm_HoldSCache
from cm_HaveAccess...   We can safely avoid the call so do so.

15 years agowindows-checkntopen-20080223
Asanka Herath [Sat, 23 Feb 2008 21:35:56 +0000]
windows-checkntopen-20080223

LICENSE MIT

do not forget to call cm_SyncOpDone if cm_SyncOp succeeded

15 years agowindows-buf-createlock-20080223
Jeffrey Altman [Sat, 23 Feb 2008 21:12:54 +0000]
windows-buf-createlock-20080223

LICENSE MIT

Do not leak a read lock on the bufCreateLock

Add logging to cm_CheckNTOpen[Done]

15 years agowindows-buf-scache-interlock-20080222
Jeffrey Altman [Sat, 23 Feb 2008 07:27:17 +0000]
windows-buf-scache-interlock-20080222

LICENSE MIT

Improve parallelism by using InterlockedIncrement and InterlockedDecrement
to adjust the refCount fields of cm_buf_t and cm_scache_t objects.  This
permits read locks to be used for increments and decrements but requires
a write-lock to perform any actions based upon the refCount hitting zero.

Inline cm_FidCmp to further improve performance.

Remove unused variables.

15 years agowindows-afsd-20080222
Jeffrey Altman [Sat, 23 Feb 2008 00:15:22 +0000]
windows-afsd-20080222

LICENSE MIT

1. Change RxEnableHotThread default to 'on'

2. Add a 'hash' value to the cm_fid_t structure in order to speed up cm_FidCmp().
   Add cm_SetFid() for use in constructing a fid complete with the hash.

3. Redefine the BUF_HASH and BUF_FILEHASH in terms of the cm_fid_t hash which
   has a better distribution

4. Modify cm_ConsiderPrefetch to evaluate the amount of data in the most recent
   read request instead of the next chunkSize.  cm_chunkSize can be dozens or
   hundreds of buffers.  As a result too much time is spent performing the
   evaluation.

5. Fix the usage of cm_scache_t bufCreateLock.  The purpose of this lock is
   to prevent the creation of new buffers while a truncation is being performed.
   All references to bufCreateLock have been removed except in two places:
   i.  a write-lock surrounding the function that calls buf_Truncate()
   ii. a read-lock within buf_GetNewLocked() that actually allocates new
       buffers

6. Modify the CM_CONFIG_DATA_MAGIC value to include a CM_CONFIG_DATA_VERSION
   number which value be used to force the replacement of the cache file
   contents when incompatible changes are made between releases.

7. CM_SCACHESYNC_ASYNCSTORE should not be ordered by cm_SyncOpCheckContinue

8. Avoid calls to multi_Rx if nconns == 0

9. Modify smb_WriteData to perform background writes based upon the crossing
   of buf_blockSize boundaries instead of cm_chunkSize boundaries.  This will
   slow down writes from the SMB interface but will avoid the risk of
   the CIFS client disconnecting from the AFS client SMB server.

15 years agodebian-packaging-update-20080220
Derrick Brashear [Wed, 20 Feb 2008 21:31:02 +0000]
debian-packaging-update-20080220

LICENSE IPL10

Russ' metadata, repacked into our tree

15 years agovos-addsite-pod-error-20080220
Derrick Brashear [Wed, 20 Feb 2008 20:18:03 +0000]
vos-addsite-pod-error-20080220

LICENSE IPL10
Item is not item

15 years agourecovery-invalidate-without-truncate-20080220
Derrick Brashear [Wed, 20 Feb 2008 20:07:51 +0000]
urecovery-invalidate-without-truncate-20080220

LICENSE IPL10

critical to label the database invalid when we don't truncate so recovery finishes.

issue in 84609 remains.

15 years agowindows-smb-locking-20080220
Jeffrey Altman [Wed, 20 Feb 2008 17:35:45 +0000]
windows-smb-locking-20080220

LICENSE MIT

minor improvements to smb_rctLock usage.

15 years agowindows-rx_enable_hot_thread-20080220
Jeffrey Altman [Wed, 20 Feb 2008 17:32:53 +0000]
windows-rx_enable_hot_thread-20080220

LICENSE MIT

Add RxEnableHotThread registry option to permit rx_enable_hot_thread
to be set.  The default is off for the moment but turning it on does
provide significant performance benefits.

15 years agorx-osi_socket-20080220
Jeffrey Altman [Wed, 20 Feb 2008 17:17:21 +0000]
rx-osi_socket-20080220

LICENSE MIT

The portable type to be used for sockets is osi_socket not int.

On 64-bit Windows this caused failures when hot threads were enabled.

15 years agoman-page-updates-20080219
Jason Edgecombe [Tue, 19 Feb 2008 15:25:17 +0000]
man-page-updates-20080219

LICENSE IPL10
FIXES 86677

note 2tb limit, add fs minidump document

15 years agos390x-not-s390-20080219
Mike Meffie [Tue, 19 Feb 2008 15:07:24 +0000]
s390x-not-s390-20080219

LICENSE IPL10

don't try to link multiple things to asm

15 years agoviced-rmdir-fid-leak-20080219
Rainer Toebbicke [Tue, 19 Feb 2008 14:29:42 +0000]
viced-rmdir-fid-leak-20080219

LICENSE IPL10
FIXES 86786

15 years agowindows-name-entries-20080218
Derrick Brashear [Tue, 19 Feb 2008 04:10:44 +0000]
windows-name-entries-20080218

LICENSE IPL10

restore the original behavior.  Fixes smb_ReceiveTran2SearchDir().

15 years agoarm-linux26-syscall-missing-20080218
Derrick Brashear [Tue, 19 Feb 2008 03:39:06 +0000]
arm-linux26-syscall-missing-20080218

LICENSE IPL10

there's nothing non-political about this. whatever.

15 years agoviced-qsort-cba-before-multibreakcallback-to-avoid-lockup-20080218
Derrick Brashear [Mon, 18 Feb 2008 19:19:12 +0000]
viced-qsort-cba-before-multibreakcallback-to-avoid-lockup-20080218

LICENSE IPL10

my code, though, this is a result of a problem reported by Chaskiel Grundman and analysis by him, Jeff Altman and myself.

I'm just checking in my implementation. In any case, the issue this addresses
is one where we can end up in makecall_waiting in rx on multiple connections
when we multibreakcallback because the lists are sorted differently and each has "pending" calls on a different connection. by sorting by index we will not
block on another caller while also holding what they're after

15 years agowindows-do-not-discard-badtickets-20080218
Jeffrey Altman [Mon, 18 Feb 2008 17:33:45 +0000]
windows-do-not-discard-badtickets-20080218

LICENSE MIT

The RXKADBADTICKET error is returned when a krb5 derived token is sent
to a server that does not support them.  In a mixed cell it is possible
that some servers were not updated.  Discarding the token does not make
it possible to perform the request successfully and adversely affects
the user experience because those servers that do support the token
can no longer be accessed in an authenticated manner.  Users can't
determine what the cause is, all they see are their tokens disappearing
and there is nothing they can do about it anyway.

From now on return STATUS_NO_KERB_KEY and do not retry.

15 years agorx-stats-optimization-20080218
Jeffrey Altman [Mon, 18 Feb 2008 17:27:48 +0000]
rx-stats-optimization-20080218

LICENSE IPL10

Do not grab the peer mutex or the rpc stats mutex if we are not
intending to collect stats.  Doing so is a bottleneck.

15 years agowindows-afskfw-20080218
Jeffrey Altman [Mon, 18 Feb 2008 14:13:59 +0000]
windows-afskfw-20080218

LICENSE MIT

if we are going to insert the full ccache name then we must search by
it as well.

15 years agowindows-share-parse-20080217
Jeffrey Altman [Mon, 18 Feb 2008 05:52:34 +0000]
windows-share-parse-20080217

LICENSE MIT

add srvsvc and wkssvc to reserved names in smb_ShareParse.

include slash in ipc$ reference in dfs referrals check.

15 years agowindows-netidmgr-extension-sample-20080217
Asanka Herath [Sun, 17 Feb 2008 14:33:26 +0000]
windows-netidmgr-extension-sample-20080217

LICENSE MIT

A sample template for constructing Network Identity Manager OpenAFS
Provider Extensions for obtaining and identifying new token types.

15 years agowindows-invalidate-file-locks-vnovnode-20080217
Jeffrey Altman [Sun, 17 Feb 2008 05:58:13 +0000]
windows-invalidate-file-locks-vnovnode-20080217

LICENSE MIT

Upon receiving a VNOVNODE error from a file server, be sure to
invalidate any file locks.  This prevents on-going attempts to
extend the locks and will cause subsequent attempts to access
the file to receive a invalid handle error.

15 years agowindows-buf-consistency-20080217
Jeffrey Altman [Sun, 17 Feb 2008 05:26:51 +0000]
windows-buf-consistency-20080217

LICENSE MIT

All calls to buf_Get() must be protected by a read lock on the
cm_scache_t bufCreateLock

When a MergeStatus results in the invalidation of buffers, do
not remove buffers from the hash tables that have active references.

15 years agowindows-check-offline-volumes-20080214
Jeffrey Altman [Fri, 15 Feb 2008 03:31:04 +0000]
windows-check-offline-volumes-20080214

LICENSE MIT

when checking offline volumes, update the cell vlserver info
if required and don't perform a check if there are no servers
in the list.

15 years agowindows-afsd-rx-extrapackets-20080214
Jeffrey Altman [Fri, 15 Feb 2008 03:24:52 +0000]
windows-afsd-rx-extrapackets-20080214

LICENSE MIT

Add support for specifying rx_extraPackets in the Windows client

15 years agomockbuild-20080214
Simon Wilkinson [Thu, 14 Feb 2008 19:26:39 +0000]
mockbuild-20080214

LICENSE BSD

driver script for mock massbuilds

15 years agowindows-volstat-vl-unknown-20080214
Jeffrey Altman [Fri, 15 Feb 2008 03:23:44 +0000]
windows-volstat-vl-unknown-20080214

LICENSE MIT

Add volumes in the vl_unknown state to the list of objects to be
checked as offline or retried when an allbusy error is received
in cm_Analyze.

15 years agowindows-vnovol-20080214
Jeffrey Altman [Thu, 14 Feb 2008 19:19:38 +0000]
windows-vnovol-20080214

LICENSE MIT

avoid a crash when logging VNOVOL errors returned from cm_CheckOfflineVolume

15 years agowindows-osilog-savestring-20080214
Jeffrey Altman [Fri, 15 Feb 2008 03:18:42 +0000]
windows-osilog-savestring-20080214

LICENSE MIT

When osi_Log is disabled, osi_LogSaveString will no longer copy the
provided string into the circular log buffer.  This saves a huge amount
of time.

15 years agowindows-smb-special-share-names-20080212
Jeffrey Altman [Wed, 13 Feb 2008 05:57:27 +0000]
windows-smb-special-share-names-20080212

LICENSE MIT

Treat srvsvc, wkssvc and ipc$ as pseudo files.  Permit them to be opened
and closed without actually existing.  For now we treat them as equivalent
to ioctls but this should eventually change.

Fix RAP processing to not reject names that exist in the root.afs volume
for GetInfo queries.

15 years agowindows-dfs-referrals-20080212
Jeffrey Altman [Wed, 13 Feb 2008 05:43:16 +0000]
windows-dfs-referrals-20080212

LICENSE MIT

Add "ipc$" to the list of names that must not be automatically added
as a share name.

If the sharename is a partial match and therefore will not be added
automatically to the share list, make sure that we return an error
to the requestor.

15 years agoredhat-openafs-kmodtool-20080213
Derrick Brashear [Wed, 13 Feb 2008 05:27:15 +0000]
redhat-openafs-kmodtool-20080213

LICENSE IPL10

rename to be specific to us.

15 years agowindows-no-wx-20080212
Jeffrey Altman [Tue, 12 Feb 2008 14:00:41 +0000]
windows-no-wx-20080212

LICENSE MIT

Warnings as errors are nice, but when different compiler versions
stop building simply because a parameter is not being referenced
in a meaningful way its time for the option to be turned off

15 years agowindows-no-more-rpcns4-dll-20080212
Jeffrey Altman [Tue, 12 Feb 2008 13:29:36 +0000]
windows-no-more-rpcns4-dll-20080212

LICENSE MIT

Remove all references to rpcns4.lib and its included functions RpcNsXXX.
These APIs are no longer supported on Vista.  Except for TaAfsAdmSvr
they had been commented out for a long time but we still continued to
link to the library.  Loading the library generates a no longer supported
error on Vista.  So lets get rid of it.

15 years agowindows-afscreds-username-20080212
Jeffrey Altman [Tue, 12 Feb 2008 13:16:20 +0000]
windows-afscreds-username-20080212

LICENSE MIT

Use GetUserNameEx to obtain the username instead of searching the registry.
Try UserPrincipalName first and fallback to SamCompatible.

15 years agowindows-afscreds-vista-uac-20080211
Jeffrey Altman [Mon, 11 Feb 2008 16:42:45 +0000]
windows-afscreds-vista-uac-20080211

LICENSE MIT
FIXES 82701

Modifying the registry and the startup shortcuts is not permitted under
Vista UAC.  Generate an error dialog and notify the end user.

15 years agowindows-freelance-20080211
Jeffrey Altman [Mon, 11 Feb 2008 14:45:43 +0000]
windows-freelance-20080211

LICENSE MIT

Do not return BAD_NETWORK_ERROR in response to attempts to create directories
or files in the Freelance root.afs volume.  Instead return ACCESS_DENIED.

BAD_NETWORK_ERROR was being sent because the Freelance cell has no
vldb servers.  Short circuit the error by testing for freelance
in CreateFile and MakeDir

15 years agomagic-vnodes-20080210
Derrick Brashear [Mon, 11 Feb 2008 03:58:49 +0000]
magic-vnodes-20080210

LICENSE IPL10

add magic vnodes like the magic mounts we already have. you can now
cons up any afs vnode if you know the cell and fid.

15 years agovos-syncv-dryrun-20080210
Derrick Brashear [Mon, 11 Feb 2008 03:42:40 +0000]
vos-syncv-dryrun-20080210

LICENSE IPL10

add a dryrun mode to vos syncvldb and syncserv

15 years agodafs-vol-updates-20080210
Tom Keiser [Mon, 11 Feb 2008 03:35:43 +0000]
dafs-vol-updates-20080210

LICENSE IPL10

make sure status is consistent in vol package when doing dafs

15 years agowindows-windows-pipes-20080210
Jeffrey Altman [Mon, 11 Feb 2008 00:13:50 +0000]
windows-windows-pipes-20080210

LICENSE MIT

do not search for cellnames that match srvsvc or wkssvc pipes

15 years agowindows-wow64-registry-20080208
Jeffrey Altman [Sat, 9 Feb 2008 02:30:17 +0000]
windows-wow64-registry-20080208

LICENSE MIT

Enable the 32-bit tools that are distributed for use in the WOW64 environment
to access the 64-bit registry keys instead of the 32-bit versions.  This
will remove the need to support both 64-bit and 32-bit versions of the
values.

15 years agowindows-vnodeops-20080208
Jeffrey Altman [Sat, 9 Feb 2008 02:26:28 +0000]
windows-vnodeops-20080208

LICENSE MIT

Add support for returning RANGE_NOT_LOCKED errors

Do not attempt to add a mount point for share names of the form
<cell><mount-type><volume>.  Its just a big waste of time.  DNS
queries and CellServDB file searches are expensive.

15 years agorx-kill-void-stupidity-20080208
Derrick Brashear [Fri, 8 Feb 2008 21:19:02 +0000]
rx-kill-void-stupidity-20080208

LICENSE IPL10

remove VOID since it conflicts with this. and we shouldn't need it anymore anyway

15 years agowindows-scache-locks-20080207
Jeffrey Altman [Fri, 8 Feb 2008 01:20:01 +0000]
windows-scache-locks-20080207

LICENSE MIT

add lock assertions to ensure we are holding write locks when
manipulating scache refcounts

15 years agowindows-fs-utils-20080207
Jeffrey Altman [Thu, 7 Feb 2008 21:40:08 +0000]
windows-fs-utils-20080207

LICENSE MIT

Use ismeta() correctly when parsing integer strings.

15 years agowindows-scache-refcount-race-20080207
Jeffrey Altman [Thu, 7 Feb 2008 21:20:02 +0000]
windows-scache-refcount-race-20080207

LICENSE MIT

if we are going to call a NoLock function better be holding the lock

15 years agowindows-multi-check-servers-20080207
Jeffrey Altman [Thu, 7 Feb 2008 20:27:47 +0000]
windows-multi-check-servers-20080207

LICENSE MIT

for multi must compute the host string from the ip address for each server

15 years agowindows-volstat-20080207
Jeffrey Altman [Thu, 7 Feb 2008 14:47:25 +0000]
windows-volstat-20080207

LICENSE MIT

When updating the volume status do not introduce a deadlock by holding
cm_serverLock

15 years agowindows-volstat-20080206
Jeffrey Altman [Thu, 7 Feb 2008 06:13:11 +0000]
windows-volstat-20080206

LICENSE MIT

Ensure that the volume status is always updated after a server_ref
status change.

15 years agowindows-multi-check-servers-20080206
Jeffrey Altman [Wed, 6 Feb 2008 19:29:44 +0000]
windows-multi-check-servers-20080206

LICENSE MIT

do not leak references

remove signed vs unsigned warnings

retry all RXGEN_OPCODE responses regardless of whether or not the entry
had to be moved to consolidate the list.

15 years agowindows-shell-add-symlink-20080206
Jeffrey Altman [Wed, 6 Feb 2008 17:53:12 +0000]
windows-shell-add-symlink-20080206

LICENSE MIT

No longer attempt to validate the target of the symlink.
There is no method of doing so reliably.

15 years agowindows-vnovol-20080206
Jeffrey Altman [Wed, 6 Feb 2008 16:45:29 +0000]
windows-vnovol-20080206

LICENSE MIT

VNOVOL means the volume could not be attached which from the client
perspective is the same as being offline.  The VLDB should not be
queried in response to this error.

15 years agohpux-dafs-inline-functions-20080206
Derrick Brashear [Wed, 6 Feb 2008 12:20:07 +0000]
hpux-dafs-inline-functions-20080206

LICENSE IPL10

fix this for hpux

15 years agowindows-cleanup-head-20080205
Jeffrey Altman [Wed, 6 Feb 2008 02:08:32 +0000]
windows-cleanup-head-20080205

LICENSE MIT

cleanup junk that does not belong

15 years agolinux-rx-kernel-listener-kill-task-directly-20080205
Derrick Brashear [Wed, 6 Feb 2008 01:23:50 +0000]
linux-rx-kernel-listener-kill-task-directly-20080205

LICENSE IPL10

as reported by cg2v@andrew.cmu.edu

15 years agowindow-wix-dependencies-two-20080205
Jeffrey Altman [Wed, 6 Feb 2008 01:13:47 +0000]
window-wix-dependencies-two-20080205

LICENSE MIT

afsvosadmin.dll is required by translate_et.exe

15 years agowindows-pioctl-path-charset-translation-20080205
Jeffrey Altman [Tue, 5 Feb 2008 20:48:30 +0000]
windows-pioctl-path-charset-translation-20080205

LICENSE MIT
FIXES 84279

Do not translate the character set of the pioctl path data.
These paths were not provided by the file system but by the end user.
Therefore, they were not converted to the OEM character set.

With this change the AFS shell context menu will be displayed for
non-ASCII file names when ANSI file names are being used as well
as the fs commands will work.

15 years agowindows-multi-checkservers-20080205
Jeffrey Altman [Tue, 5 Feb 2008 17:37:21 +0000]
windows-multi-checkservers-20080205

LICENSE MIT

Instead of probing servers one at a time, use multi_rx versions of
RXAFS_GetCapabilities, RXAFS_GetTime and VL_ProbeServer to permit
simultaneous probing of servers in constant time regardless of the
number of servers.

15 years agomulti-rx-calls-20080205
Jeffrey Altman [Tue, 5 Feb 2008 17:24:15 +0000]
multi-rx-calls-20080205

LICENSE MIT

Add multi versions of RXAFS_GetCapabilities, RXAFS_GiveUpAllCallBacks,
and VL_ProbeServer.

15 years agorxgen-multi-prototypes-20080205
Jeffrey Altman [Tue, 5 Feb 2008 17:17:44 +0000]
rxgen-multi-prototypes-20080205

LICENSE MIT

When 'multi' is applied to an RPC definition, rxgen produced split prototypes,
Start and End, but failed to produce the prototype for the normal RPC call.

15 years agowindows-down-time-20080205
Jeffrey Altman [Tue, 5 Feb 2008 17:10:34 +0000]
windows-down-time-20080205

LICENSE MIT

use clock time instead of osi_Time() for server down time tracking
for proper comparison with expiration times.

15 years agowindows-check-offline-volumes-20080205
Jeffrey Altman [Tue, 5 Feb 2008 17:07:13 +0000]
windows-check-offline-volumes-20080205

LICENSE MIT

Do not hold the cm_volume_t mutex across the RPC

15 years agowindows-wix-translate_et-20080205
Jeffrey Altman [Tue, 5 Feb 2008 16:56:49 +0000]
windows-wix-translate_et-20080205

LICENSE MIT

Install the dll dependencies for translate_et as part of the client
component.

15 years agodafs-windows-vnode-locking-20080204
Jeffrey Altman [Mon, 4 Feb 2008 22:41:28 +0000]
dafs-windows-vnode-locking-20080204

LICENSE MIT

allow Windows to build with dafs-vnode-locking-20080204

15 years agopts-localauth-20080204
Simon Wilkinson [Mon, 4 Feb 2008 19:41:49 +0000]
pts-localauth-20080204

LICENSE IPL10

distilled from changes by mdw@umich.edu

15 years agodafs-vnode-locking-20080204
Tom Keiser [Mon, 4 Feb 2008 18:50:54 +0000]
dafs-vnode-locking-20080204

LICENSE IPL10
FIXES 84778

* Vnode package concurrency model was overhauled. Unlike the old model,
where concurrency was controlled via reader/writer locks, the new model
uses a per-vnode finite state automata.
* add several new volume states to deal with volume vnode list operations
* a new FSSYNC command code was added to allow volume utilities to close
out a volume operation without causing the fileserver to mount the volume
* a new FSSYNC command code was added to allow volume utilities to
transition a volume into a hard error state
* the salvageserver has been modified to keep volume group partition
path data coherent with the fileserver (like many other parts of the
volume package, this code assumes all members of the group are stored on
the same vice partition)
* make salvageserver correctly handle volume state when a child worker
process terminates abnormally
* update volume pre-attachment code to deal with move volumes across
partitions on the same server
* add volume state sanity checks to more volume package interfaces
* original vos online patch introduced a race condition; rearchitect vos
online/offline to eliminate race condition, and reduce i/o load caused
by operation
* unify duplicate code in volserver related to servicing vos examine and
vos listvol requests
* add doxygen formatted comment blocks to numerous volume package elements
* various updates to fssync-debug to allow dumping vnode state, and
updates to deal with added volume and vnode states
* several 1.5-specific fixes related to fssync and salvsync

15 years agorx-xdr_rec-type-error-20080203
Jeffrey Altman [Mon, 4 Feb 2008 04:05:00 +0000]
rx-xdr_rec-type-error-20080203

LICENSE MIT

x_inline second parameter is unsigned

15 years agokauth-windows-handle-leak-20080203
Jeffrey Altman [Mon, 4 Feb 2008 03:56:13 +0000]
kauth-windows-handle-leak-20080203

LICENSE MIT

close() does not close sockets on Windows

15 years agorxmaxmtu-printf-format-error-20080203
Jeffrey Altman [Mon, 4 Feb 2008 03:50:05 +0000]
rxmaxmtu-printf-format-error-20080203

LICENSE MIT

correct improper format string

15 years agowindows-vista-resume-smb-binding-20080202
Jeffrey Altman [Sat, 2 Feb 2008 22:25:40 +0000]
windows-vista-resume-smb-binding-20080202

LICENSE MIT

another plane trip, more tweaks to the logic for handling re-binding
of the netbios name after a power management resume event.

15 years agowindows-dfs-referrals-symlinks-20082002
Jeffrey Altman [Sat, 2 Feb 2008 22:22:20 +0000]
windows-dfs-referrals-symlinks-20082002

LICENSE MIT

another small tweak to ensure that we don't create a symlink for "fo" when
a mountpoint or symlink for "foo" exists

15 years agowindows-cellservdb-location-20080202
Jeffrey Altman [Sat, 2 Feb 2008 13:38:50 +0000]
windows-cellservdb-location-20080202

LICENSE MIT

Modify the search order for determining the location of CellServDB
and other client configuration files.

1. AFSCONF environment variable
2. registry setting
3. NEW - use All Users\AppData\OpenAFS\Client only if CellServDB exists
4. use Program Files\OpenAFS\Client

15 years agowindows-more-cellservdb-consolidation-20080201
Jeffrey Altman [Sat, 2 Feb 2008 02:46:16 +0000]
windows-more-cellservdb-consolidation-20080201

LICENSE MIT

Merge cellconfig.c and the afsreg library.
Redefine the location of the client cellservdb directory in dirpath
in terms of the cellservdb direction and not the install directory.
(although they point at the same thing now by default.)

Future changes to the location of the cellservdb directory should
be made in afsreg.

15 years agowindows-client-config-cellservdb-20080201
Jeffrey Altman [Sat, 2 Feb 2008 00:23:44 +0000]
windows-client-config-cellservdb-20080201

LICENSE MIT

modify cellservdb.c to use cm_GetCellServDB() from libafsconf.dll.
This results in both libadmin and the afs client control panel using
the same CellServDB as the rest of the system.

15 years agowindows-build-system-20080201
Jeffrey Altman [Sat, 2 Feb 2008 00:18:27 +0000]
windows-build-system-20080201

LICENSE MIT

re-order the building of directories so that libafsconf.dll is built
before other directories that might want to use it.

15 years agowindows-refactor-cm_config-20080201
Jeffrey Altman [Fri, 1 Feb 2008 21:42:17 +0000]
windows-refactor-cm_config-20080201

LICENSE MIT

cm_config.c was a nightmare.  there were several functions that each
computed the location of the OpenAFS Client configuration directory
in a slightly different way.  Now there is a single exported function
that determines the directory, and another that determines the name
of the CellServDB file.  All of the other functons in cm_config.c and
throughout the src/WINNT/afsd directory now use those two functions.

The new rule for determining the location of the OpenAFS Client
configuration directory and hence the CellServDB file location is:

1. check the AFSCONF environment variable
2. check the HKLM\SOFTWARE\OpenAFS\Client   CellServDBDir registry value
3. use AFSDIR_CLIENT_ETC_DIRPATH which currently refers to
   \Program Files\OpenAFS\Client

15 years agoh-enumerate-less-heavyhanded-check-20080201
Derrick Brashear [Fri, 1 Feb 2008 21:31:32 +0000]
h-enumerate-less-heavyhanded-check-20080201

LICENSE IPL10

if hostCount is too small this is fine or at least not fatal

15 years agowindows-netidmgr-20080201
Jeffrey Altman [Fri, 1 Feb 2008 21:14:40 +0000]
windows-netidmgr-20080201

LICENSE MIT

afs/stds.h before all others

15 years agopoll-drop-fsync-lock-20080201
Simon Wilkinson [Fri, 1 Feb 2008 15:25:52 +0000]
poll-drop-fsync-lock-20080201

LICENSE IPL10

update to drop fsync lock if we're using poll

15 years agosolaris10-cleanup-friendliness-20080130
Derrick Brashear [Thu, 31 Jan 2008 20:17:45 +0000]
solaris10-cleanup-friendliness-20080130

LICENSE IPL10

based on patch from mib@unimelb.edu.au

clean up taskq after ourselves and don't leave ourself marked system processes

15 years agowindows-noprobe-20080131
Jeffrey Altman [Thu, 31 Jan 2008 16:09:56 +0000]
windows-noprobe-20080131

LICENSE MIT

do not mark servers down if they are not probed.

15 years agowindows-edquot-20080131
Jeffrey Altman [Thu, 31 Jan 2008 07:26:26 +0000]
windows-edquot-20080131

LICENSE MIT

For Windows, EDQUOT == WSAEDQUOT.   Define it in the right places
so that in the end STATUS_OUT_OF_QUOTA can be returned to the application.

15 years agowindows-fs-newcell-20080130
Jeffrey Altman [Thu, 31 Jan 2008 05:47:34 +0000]
windows-fs-newcell-20080130

LICENSE MIT

prevent the afs client service from crashing when fs newcell is executed

15 years agowindows-nsis-installer-20080130
Jeffrey Altman [Thu, 31 Jan 2008 03:01:46 +0000]
windows-nsis-installer-20080130

LICENSE MIT

move afslogon.dll, afscpcc.exe and afs_cpa.cpl to
\Program Files\OpenAFS\Client\Program in order to get them out
of the %windir% tree

15 years agorx-edquot-20080130
Jeffrey Altman [Thu, 31 Jan 2008 00:25:59 +0000]
rx-edquot-20080130

LICENSE MIT

Conditionalize error translation on the existence of EDQUOT not
on platform macros

15 years agolinux-keytype-exports-20080130
Simon Wilkinson [Wed, 30 Jan 2008 17:30:23 +0000]
linux-keytype-exports-20080130

LICENSE IPL10

try to work even if key_type_keyring isn't exported

15 years agolinux-rx-kernel-listener-kill-task-directly-20080130
Simon Wilkinson [Wed, 30 Jan 2008 17:25:42 +0000]
linux-rx-kernel-listener-kill-task-directly-20080130

LICENSE IPL10

based on work from shadow@dementia.org

since the tasklist lock and rcu stuff can/will be de-exported, and we don't
need it anyway...

15 years agowindows-ipaddr-change-server-deadlock-20080130
Jeffrey Altman [Wed, 30 Jan 2008 14:53:44 +0000]
windows-ipaddr-change-server-deadlock-20080130

LICENSE MIT

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

(missed a case in DELTA windows-ipaddr-change-server-deadlock-20080106)