openafs.git
16 years agoredhat-make-srpm-script-20080109
Simon Wilkinson [Wed, 9 Jan 2008 19:36:59 +0000]
redhat-make-srpm-script-20080109

LICENSE IPL10

srpm builder script

16 years agowindows-smb-name-deleted-20080109
Jeffrey Altman [Wed, 9 Jan 2008 15:25:07 +0000]
windows-smb-name-deleted-20080109

LICENSE MIT

if the smb_Listener receives NRC_NAMERR (name deleted) it must be because
an smb shutdown has occurred.  do not panic.

16 years agowindows-pioctl-follow-mountpoints-registry-20080108
Jeffrey Altman [Wed, 9 Jan 2008 06:03:10 +0000]
windows-pioctl-follow-mountpoints-registry-20080108

LICENSE MIT

Add a registry value "PioctlFollowMountPoint" to permit the use of the
old pioctl path evaluation behavior that always followed mountpoints
and symlinks.

16 years agosmb-even-less-chatty-20080108
Jeffrey Altman [Tue, 8 Jan 2008 22:28:39 +0000]
smb-even-less-chatty-20080108

LICENSE MIT

remove the smb_RestartListeners message entirely

16 years agowindows-daemon-20080108
Jeffrey Altman [Tue, 8 Jan 2008 22:03:12 +0000]
windows-daemon-20080108

LICENSE MIT

sleep 10 seconds between cycles.  should make this configurable.

16 years agowindows-smb-logging-20080108
Jeffrey Altman [Tue, 8 Jan 2008 21:59:28 +0000]
windows-smb-logging-20080108

LICENSE MIT

Be less chatty

16 years agowindows-callback-missing-bang-20080108
Jeffrey Altman [Tue, 8 Jan 2008 21:26:46 +0000]
windows-callback-missing-bang-20080108

LICENSE MIT

Insert a missing bang that results in a null pointer dereference
when processing a callback from an unrecognized server.

16 years agoobsd-more-stack-20080108
Jim Rees [Tue, 8 Jan 2008 17:18:57 +0000]
obsd-more-stack-20080108

make stack bigger in volserver and fileserver
eliminates overflow in k5 library

16 years agoobsd-lock-no-interlock-20080108
Jim Rees [Tue, 8 Jan 2008 17:04:30 +0000]
obsd-lock-no-interlock-20080108

restore lock vnode op, but without vnode interlock for obsd 4.2

16 years agowindows-nim-afscred-identity-initialization-20080108
Asanka Herath [Tue, 8 Jan 2008 17:04:19 +0000]
windows-nim-afscred-identity-initialization-20080108

LICENSE MIT

One of the challenges to deploying NIM has been the configuration of
AFS token acquisition.  This patch adds a new registry key hierarchy

  HKLM\SOFTWARE\OpenAFS\Client\Realms

which is used to configure the AFS Provider for a new identity based
upon the realm of the identity.  The Realms key contains subkeys for
each realm for which configuration data is being provided

  HKLM\SOFTWARE\OpenAFS\Client\Realms\"RealmName"

"RealmName" contains one optional value, "AFSEnabled", and subkeys for
each Cell that is to be added to the configuration.  "AFSEnabled" defaults
to 0x01.

   HKLM\SOFTWARE\OpenAFS\Client\Realms\"RealmName"\"CellName"

In "CellName", there are two optional values, "Realm" and "MethodName".
If the values are not specified, the automatic realm and method determination
algorithms are used.

These values can be added to an MSI transform or deployed via Group Policy.

16 years agowindows-smb-started-synchronization-20080108
Jeffrey Altman [Tue, 8 Jan 2008 07:04:51 +0000]
windows-smb-started-synchronization-20080108

LICENSE MIT

Add a new mutex "smb_StartedMutex" which is used to protect the
transitions between the various smb_ListenerState values.

16 years agowindows-printf-format-string-protection-20080108
Jeffrey Altman [Tue, 8 Jan 2008 06:27:36 +0000]
windows-printf-format-string-protection-20080108

LICENSE MIT

Do not pass strings generated from incoming network data to ??printf
as the format string.  Instead use a format string of "%s".  This protects
against %? expansions being inserted in the string.

16 years agoviced-hpr-error-handling-20080107
Derrick Brashear [Mon, 7 Jan 2008 20:22:10 +0000]
viced-hpr-error-handling-20080107

LICENSE IPL10

fix ubik reinit issue reported by jhutz@cs

16 years agosys-syscall-object-dependency-20080107
Derrick Brashear [Mon, 7 Jan 2008 20:10:27 +0000]
sys-syscall-object-dependency-20080107

LICENSE IPL10

make syscall.o always be created, some makes don't deal with the implicit requirement

16 years agolinux-probe-warning-case-20080107
Russ Allbery [Mon, 7 Jan 2008 18:14:54 +0000]
linux-probe-warning-case-20080107

LICENSE MIT

Some older Linux kernels prefix warnings with "Warning:" rather than
"WARNING:", so do the grep case-insensitively when finding missing symbols.

16 years agowindows-bkg-prefetch-buf-refcount-leak-20080107
Jeffrey Altman [Mon, 7 Jan 2008 17:54:06 +0000]
windows-bkg-prefetch-buf-refcount-leak-20080107

LICENSE MIT

Close a refcount leak in bkg prefetch.

Do not stop prefetching simply because a buffer we want is already being
fetched.  Instead skip the buffer and try to fetch the next one we require.

16 years agowindows-ipaddr-change-server-deadlock-20080106
Jeffrey Altman [Sun, 6 Jan 2008 23:11:01 +0000]
windows-ipaddr-change-server-deadlock-20080106

LICENSE MIT

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

16 years agoviced-threadquota-release-holds-20080106
Derrick Brashear [Sun, 6 Jan 2008 15:57:05 +0000]
viced-threadquota-release-holds-20080106

LICENSE IPL10

release a hold when we decline to service a host

16 years agowindows-power-mgmt-20080105
Jeffrey Altman [Sun, 6 Jan 2008 06:25:08 +0000]
windows-power-mgmt-20080105

LICENSE MIT

Log more power mgmt events.

Do not permit a smb reinitialization when in a suspended state

Periodically check to see if the LAN adapter is -1.  If so, try to
reinitialize the smb stack.

16 years agowindows-follow-backup-path-20080105
Jeffrey Altman [Sat, 5 Jan 2008 22:19:12 +0000]
windows-follow-backup-path-20080105

LICENSE MIT

parens are required in order to get the desired behavior

16 years agowindows-nim-afscred-referrals-two-20080105
Jeffrey Altman [Sat, 5 Jan 2008 18:55:55 +0000]
windows-nim-afscred-referrals-two-20080105

LICENSE MIT

compatibility with Visual Studio 2005/2008

16 years agowindows-vista-network-change-20080105
Jeffrey Altman [Sat, 5 Jan 2008 17:55:20 +0000]
windows-vista-network-change-20080105

LICENSE MIT

After a network change, test to see if the desired LAN adapter to bind
the Netbios Name to has changed.  If so, stop the Netbios Network and
restart with the new LAN adapter.

This can happen on Vista after a suspend if the service wakes up before
the Loopback adapter re-initializes.

16 years agowindows-nim-afscred-referrals-20080105
Jeffrey Altman [Sat, 5 Jan 2008 17:28:59 +0000]
windows-nim-afscred-referrals-20080105

LICENSE MIT

If the requestd realm name is the empty string, copy the realm from the
resulting ticket for use in pts registration.

16 years agowindows-aklog-referrals-20080105
Derrick Brashear [Sat, 5 Jan 2008 16:59:56 +0000]
windows-aklog-referrals-20080105

LICENSE IPL10

If the realm name of the requested ticket is the empty string, decode
the actual service ticket to determine the actual realm.  Obtaining the
actual realm prevents unnecessary pts registration failures.

16 years agoaklog-referral-support-20080104
Marc Horowitz [Sat, 5 Jan 2008 04:43:09 +0000]
aklog-referral-support-20080104

LICENSE IPL10

with updates and configure support from Simon Wilkinson.

make aklog able to cope with referrals.

16 years agopag-allocation-dont-throttle-when-time-reverses-20080104
Derrick Brashear [Fri, 4 Jan 2008 18:37:28 +0000]
pag-allocation-dont-throttle-when-time-reverses-20080104

LICENSE IPL10
avoid pag allocation throttling when time is set back by e.g. ntpd to avoid starving everyone.

16 years agoxbsd-include-systmh-20080104
Jim Rees [Fri, 4 Jan 2008 18:07:35 +0000]
xbsd-include-systmh-20080104

include systm.h for xbsd

16 years agoobsd-resid-type-20080104
Jim Rees [Fri, 4 Jan 2008 17:56:11 +0000]
obsd-resid-type-20080104

use correct type for resid when calling vn_rdwr()

16 years agosetuuid-return-20080104
Jim Rees [Fri, 4 Jan 2008 17:39:05 +0000]
setuuid-return-20080104

return success (0) from setuuid()

16 years agoobsd-time-20080104
Jim Rees [Fri, 4 Jan 2008 17:27:23 +0000]
obsd-time-20080104

update kernel time functions for OpenBSD 4.2

16 years agowindows-fs-test_volstat-20080103
Jeffrey Altman [Fri, 4 Jan 2008 07:56:45 +0000]
windows-fs-test_volstat-20080103

LICENSE MIT

Add a hidden command that can be used to test volume status handlers.
fs test_volstat.

16 years agowindows-fs-path-avail-20080103
Jeffrey Altman [Fri, 4 Jan 2008 07:51:31 +0000]
windows-fs-path-avail-20080103

LICENSE MIT

fix the reporting of volume status as a result of the VIOC_PATH_AVAIL
pioctl call. Switch on errno instead of the pioctl return value.

16 years agowindows-fs-prototype-20080103
Jeffrey Altman [Fri, 4 Jan 2008 07:48:37 +0000]
windows-fs-prototype-20080103

LICENSE

Fix types in prototypes to be consistent with function definitions

16 years agowindows-smb-20080103
Jeffrey Altman [Fri, 4 Jan 2008 07:46:29 +0000]
windows-smb-20080103

LICENSE MIT

ensure type consistency between 32-bit and 64-bit processes by replacing
'long' with 'afs_uint32'

16 years agowindows-volume-status-20080103
Jeffrey Altman [Fri, 4 Jan 2008 07:44:10 +0000]
windows-volume-status-20080103

LICENSE MIT

when performing offline volume status checks handle CM_ERROR_NOACCESS
conditions by restoring the volume status to vl_unknown.

16 years agoaix-lam-aklog-update-20080103
Derrick Brashear [Thu, 3 Jan 2008 18:02:30 +0000]
aix-lam-aklog-update-20080103

LICENSE IPL10

make the aklog lam plugin work correctly in e.g. the CDE screenlocker, which is
part of the long-running and not-run-by-user dtsession; this means we do wackiness to
1) not pag ourselves in that case
2) setuid to the user to set uid tokens if we got a username and are root
3) do not use pr_mumble get the the AFS ID to put in the tokens, as multiple
   initializations of Rx in the process space of dtsession crashes it

16 years agoobsd-buf-fixes-20080103
Jim Rees [Thu, 3 Jan 2008 17:46:08 +0000]
obsd-buf-fixes-20080103

use new b_data field in struct buf

16 years agoobsd-lock-vnops-20080103
Jim Rees [Thu, 3 Jan 2008 17:12:21 +0000]
obsd-lock-vnops-20080103

use generic vnops for lock/unlock (for obsd 4.2)

16 years agoobsd-uvm-1-20080103
Jim Rees [Thu, 3 Jan 2008 17:11:22 +0000]
obsd-uvm-1-20080103

long overdue fixes for uvm on openbsd

16 years agouse-k5-klog-20080102
Jim Rees [Thu, 3 Jan 2008 02:28:29 +0000]
use-k5-klog-20080102

use k5 klog for OpenBSD

16 years agowindows-64bit-20080102
Jeffrey Altman [Wed, 2 Jan 2008 15:53:46 +0000]
windows-64bit-20080102

LICENSE MIT

do not disable the signature verification of binaries when using
large cache sizes on 64-bit systems

cm_config_data values are unsigned and some are 64-bit.  when logging
them use the correct data format types.

16 years agoredhat-spec-cvsignore-20080101
Derrick Brashear [Wed, 2 Jan 2008 15:10:08 +0000]
redhat-spec-cvsignore-20080101

LICENSE IPL10

as reported by mdw@umich.edu

16 years agowindows-nim-afscred-supports-krb4-20080102
Jeffrey Altman [Wed, 2 Jan 2008 14:58:35 +0000]
windows-nim-afscred-supports-krb4-20080102

LICENSE MIT

Do not trust the registry to determine whether or not krb4 support
is available.  In a roaming profile the user data can say 'yes' even
if the plug-in or the kerberos library does not exist.

16 years agowindows-nim-afs-krb524-20080102
Jeffrey Altman [Wed, 2 Jan 2008 07:06:58 +0000]
windows-nim-afs-krb524-20080102

LICENSE MIT

Don't call krb524_convert_creds_kdc if it doesn't exist.
64-bit KFW doesn't support krb4 and the function isn't present.

16 years agovgetvnode-debuglog-vio-20071228
Derrick Brashear [Fri, 28 Dec 2007 22:13:42 +0000]
vgetvnode-debuglog-vio-20071228

LICENSE IPL10

provide a way to log otherwise unlogged VIO error cause

16 years agowindows-syncop-20071228
Jeffrey Altman [Fri, 28 Dec 2007 15:46:05 +0000]
windows-syncop-20071228

LICENSE MIT

avoid a race condition between cm_SyncOpCheckContinue and cm_SyncOpDone
that can leave a request on an scp stuck in the waiting state even though
there are no other requests to wake it up.

16 years agowindows-get-buffer-20071228
Jeffrey Altman [Fri, 28 Dec 2007 07:24:48 +0000]
windows-get-buffer-20071228

LICENSE MIT

cm_BkgPrefetch() contained two errors.  First, the loop at the top of the
function that ensures that a cm_buf_t is allocated for each of the offset
positions failed to actually obtain the buffer for the specified offset.
Instead, it repeatedly obtained the buffer for the starting base address.

Second, cm_GetBuffer() would reserve all of the buffers associated with
the cm_scache_t even in the case where we already have a callback and the
existing buffer has the proper data version number.  In that situation
reserving the buffers simply wastes valuable time.

16 years agowindows-cell-aliases-20071228
Jeffrey Altman [Fri, 28 Dec 2007 07:11:59 +0000]
windows-cell-aliases-20071228

LICENSE MIT

Fix the lookup of cell aliases to:

1. avoid re-reading CellServDB each time a cell alias is specified
2. avoid reconstructing the vlserver list for the cell each time an
   alias is specified
3. permit aliases to be used when AFSDB records were used previously
   with the full cell name

16 years agowindows-bkg-daemon-threads-20071228
Jeffrey Altman [Fri, 28 Dec 2007 07:07:53 +0000]
windows-bkg-daemon-threads-20071228

LICENSE MIT

Reduce the default number of background daemon threads used for prefetch and
store operations to one.  Given the current implementation when more than
one thread is allocated they step on each other's toe while fighting over
locks.

A better model might be to divide up threads based upon cells or volumes
as a means of preventing contention.

16 years agowindows-default-chunksize-20071227
Jeffrey Altman [Thu, 27 Dec 2007 20:58:49 +0000]
windows-default-chunksize-20071227

LICENSE MIT

Drop the default chunksize to 18 (256KB) from 20 (1MB) due to the increased
propensity to timeout reads on slow network connections.

16 years agowindows-callback-restore-multi-cell-servers-20071226
Jeffrey Altman [Wed, 26 Dec 2007 16:18:37 +0000]
windows-callback-restore-multi-cell-servers-20071226

LICENSE MIT

The case of openafs.org and grand.central.org is a hideous abuse of
the AFS cell name space.  There are many negatives associated with
trying to support two different cell names pointing at overlapping
vlserver lists:

(1) The CM can store duplicate entries for all of the data simply because
    the cell name that was used is different

(2) If the CM attempts to optimize the data storage by aliasing or otherwise
    combining the cell names as part of one cm_cell_t object, then future
    attempts to separate the two cell names will require the destruction
    of the cache.

(3) If the CM does not associate a callback revoke with a particular cell,
    then the status data associated with any entry that matches the revoked
    AFSFid will be discarded.  For volume callbacks this can have a serious
    impact because volume IDs are not unique across cells and discarding
    status data for readonly volumes that are in use can result in a
    significant number of FetchStatus requests being sent to the associated
    file server.

There are other issues as well involving authentication.

The case of openafs.org advertising the vlserver addresses of
grand.central.org should be considered a hack; a hack that the Windows
client will no longer ensure will work.

Additional debugging messages have been added to assist individuals attempting
to debug why callback revokes do not appear to take affect when two cell
names share the same vlserver data.

16 years agowindows-pthread-20071225
Jeffrey Altman [Tue, 25 Dec 2007 23:05:17 +0000]
windows-pthread-20071225

LICENSE MIT

The pthread_cond_timedwait/wait implementations were broken.  Not only
did they return the wrong error values but more importantly, they did not
always return with the mutex locked.

16 years agorx-event-handler-20071225
Jeffrey Altman [Tue, 25 Dec 2007 22:59:06 +0000]
rx-event-handler-20071225

LICENSE MIT

Update event_handler() for Windows.  The return code of
pthread_cond_timedwait() is not limited to 0 and -1 because 'errno'
cannot be set.  Instead of setting 'errno' the error code is returned
directly by the function as the return code.

This patch is only for debugging purposes to track the number of
success, timeout, and other errors experienced by the routine.

16 years agoman-page-license-change-20071225
Jason Edgecombe [Tue, 25 Dec 2007 22:22:22 +0000]
man-page-license-change-20071225

LICENSE BSD

Update man pages submitted by Jason Edgecombe to the BSD license.

16 years agoman-page-misc-updates-20071225
Jason Edgecombe [Tue, 25 Dec 2007 22:15:07 +0000]
man-page-misc-updates-20071225

LICENSE BSD

Add some additional cross-references, add some missing man pages, fix a
few references to the OpenAFS manuals, document the -live flag to vos
move, and add an example for rxdebug.

16 years agoman-page-fileserver-debug-20071225
Andrew Deason [Tue, 25 Dec 2007 22:02:19 +0000]
man-page-fileserver-debug-20071225

LICENSE BSD

The file server debug flag is -d, not -debug.

16 years agowindows-callback-revoke-multi-cell-servers-20071225
Jeffrey Altman [Tue, 25 Dec 2007 21:58:51 +0000]
windows-callback-revoke-multi-cell-servers-20071225

LICENSE MIT

Remove the callback revoke optimization that prevents a (vol,vn,uniq)
tupple from invalidating entries from multiple cells.  We cannot reliably
determine the cell from the server because the server might be identified
as belonging to more than one cell.  For example, openafs.org and
grand.central.org.

16 years agowindows-hold-server-mutex-for-vol-list-20071223
Jeffrey Altman [Mon, 24 Dec 2007 05:29:15 +0000]
windows-hold-server-mutex-for-vol-list-20071223

LICENSE MIT

When walking or modifying the cm_server_vols_t associated with a given
cm_server_t the mutex must be held.  Otherwise, races can occur.

16 years agowindows-daemon-threads-shutdown-sync-20071223
Jeffrey Altman [Mon, 24 Dec 2007 05:23:28 +0000]
windows-daemon-threads-shutdown-sync-20071223

LICENSE MIT

Windows Error Reporting received crashes caused by a failure to synchronize
the shutdown of the AFS client service with the background daemon threads.
The daemon threads (cm_Daemon, cm_BkgDaemon+, cm_IPAddrDaemon) could be
accessing data structures as they were being freed or unmapped.

Add synchronization mechanisms to signal the termination of the threads
with the shutdown of the service.

16 years agowindows-update-volume-status-20071223
Jeffrey Altman [Mon, 24 Dec 2007 05:17:50 +0000]
windows-update-volume-status-20071223

LICENSE MIT

Refactor cm_UpdateVolumeStatus.  Revise behavior to treat volid 0 as
update the volume status for all volumes in the volume group.

16 years agowindows-server-lock-error-20071224
Jeffrey Altman [Mon, 24 Dec 2007 05:14:11 +0000]
windows-server-lock-error-20071224

LICENSE MIT

The cm_serverLock must be write locked to modify the refCount

16 years agowindows-volstat-and-vista-dfs-support-20071222
Jeffrey Altman [Sun, 23 Dec 2007 04:51:59 +0000]
windows-volstat-and-vista-dfs-support-20071222

LICENSE MIT

This patch completes the implementation of smb_ReceiveTran2GetDFSReferral()
which is called by Vista even if we do not advertise the support of DFS
referrals.  It also adds DFS link mapping notifications to the volstat
interface which can be used by volstat plug-ins to redirect requests to
the dfs target path.

Other miscellaneous items:

(1) return EAS_NOT_SUPPORTED instead of EA length 0 and silently accepting
    but not storing EA data

(2) Call cm_VolStatus_Service_Started() before smb initialization instead
    of afterwards

(3) During directory enumeration and link assembly push the UNC path into
    the lower levels by storing references to the tidPath and the relative
    paths within the cm_req_t object.

(4) During directory enumeration make absolutely sure that we do not
    reference an unallocated cm_dirEntry_t object

(5) publish a prototype for cm_FollowMountPoint()

(6) return ERROR_RETRY instead of BAD_NETWORK_PATH if the server returns
    VBUSY

(7) return PATH_NOT_COVERED instead of BADSHARENAME for DfsLinks when
    a volstat plugin is in use

16 years agowindows-freelance-scache-20071222
Jeffrey Altman [Sun, 23 Dec 2007 04:15:33 +0000]
windows-freelance-scache-20071222

LICENSE MIT

(1) remove a race condition caused by holding and releasing the
    cm_Freelance_Lock while using a pointer into a private freelance
    data structure

(2) do not reference a localMountPoint object that is not allocated

(3) properly assign the DFSLINK file type

(4) update the buffer data versions when we update the contents of
    the stat cache object and its buffers to match the registry
    contents

16 years agowindows-pioctl-listlink-20071222
Jeffrey Altman [Sun, 23 Dec 2007 03:43:49 +0000]
windows-pioctl-listlink-20071222

LICENSE MIT

In the error case (1) reference the mountPointString instead of the
output of cm_AssembleLink() which was not generated and (2) do not
free memory and objects that were not allocated nor reference counted.

16 years agowindows-freelance-20071222
Jeffrey Altman [Sun, 23 Dec 2007 03:38:45 +0000]
windows-freelance-20071222

LICENSE MIT

remove unused next field in cm_localMountPoint_t

16 years agowindows-fix-cb-expiration-20071222
Jeffrey Altman [Sun, 23 Dec 2007 03:25:56 +0000]
windows-fix-cb-expiration-20071222

LICENSE MIT

corrects cb expiration that was broken by the osi_Time() -> time() change
in delta windows-readonly-volume-callbacks-20071109

16 years agodarwin-dont-assert-on-lock-state-in-remove-20071219
Derrick Brashear [Wed, 19 Dec 2007 20:56:23 +0000]
darwin-dont-assert-on-lock-state-in-remove-20071219

LICENSE IPL10

remove panic due to lock being grabbedin another thread can't be accurately
covered with this test on darwin, as e.g. proc_selfthread() is not in the KPI

16 years agofix-verbose-vos-dump-20071217
Derrick Brashear [Tue, 18 Dec 2007 15:16:20 +0000]
fix-verbose-vos-dump-20071217

LICENSE IPL10

fix verbose vos dump to not put garbage in the stream when dumping to stdout

16 years agoshlibafsrpc-export-more-20071217
Chaskiel M Grundman [Mon, 17 Dec 2007 21:12:45 +0000]
shlibafsrpc-export-more-20071217

LICENSE IPL10

shlibafsauthent uses these, export them

16 years agoput-relnotes-on-head-20071217
Derrick Brashear [Mon, 17 Dec 2007 18:02:58 +0000]
put-relnotes-on-head-20071217

LICENSE IPL10

add 1.4.6 relnotes, put reast on head

16 years agojava-admin-interface-updates-20071214
Adam Megacz [Fri, 14 Dec 2007 21:33:56 +0000]
java-admin-interface-updates-20071214

LICENSE IPL10

pdate java admin interface including support for 1.5

16 years agowindows-make-cleanup-20071214
Jeffrey Altman [Fri, 14 Dec 2007 13:33:57 +0000]
windows-make-cleanup-20071214

LICENSE MIT

Modify the dependencies for building the cbd and file server resource
files and delete the resource files as part of 'clean'.

16 years agoemulate-vsyslog-20071214
Jeffrey Altman [Fri, 14 Dec 2007 13:06:48 +0000]
emulate-vsyslog-20071214

LICENSE IPL10

Do not include vsyslog on Windows.

Include syslog.h for the syslog() prototype.

16 years agoaix-lam-aklog-set-token-name-20071213
Derrick Brashear [Thu, 13 Dec 2007 23:04:54 +0000]
aix-lam-aklog-set-token-name-20071213

LICENSE IPL10

so we set an afs id in the tokens here also

16 years agoemulate-vsyslog-20071213
Derrick Brashear [Thu, 13 Dec 2007 22:41:11 +0000]
emulate-vsyslog-20071213

LICENSE IPL10

aix 5.3 lacks vsyslog. the fixed buffer is poor, but...

16 years agoaix-curpag-redux-20071213
Derrick Brashear [Thu, 13 Dec 2007 21:21:56 +0000]
aix-curpag-redux-20071213

LICENSE IPL10

add curpag() support for aix, based on work by tom keiser

16 years agoredhat-rpm-mockable-20071213
Simon Wilkinson [Thu, 13 Dec 2007 20:04:41 +0000]
redhat-rpm-mockable-20071213

LICENSE IPL10

make us able to autobuild with mock. (may need krb5-devel outside the
if krb5support; if we do more thought will be involved)

16 years agovcache-track-maxvcount-accurately-20071213
Derrick Brashear [Thu, 13 Dec 2007 19:46:06 +0000]
vcache-track-maxvcount-accurately-20071213

LICENSE IPL10

if we can alloc more vnodes, and we are looking for vlru cycles, a legit
vnode is not indicative of a cycle.

16 years agoshutdown-cleanup-20071213
Derrick Brashear [Thu, 13 Dec 2007 19:18:06 +0000]
shutdown-cleanup-20071213

LICENSE IPL10

get rid of cold_shutdown; it's in afs_prototypes.h.
log when we don't clean up memory

16 years agowindows-afslogon-null-pointer-deref-20071211
Jeffrey Altman [Wed, 12 Dec 2007 04:24:26 +0000]
windows-afslogon-null-pointer-deref-20071211

LICENSE MIT

'tokenUser' can be dereferenced when NULL if GetTokenInformation() fails.

16 years agoafs-serveriprank-return-void-20071211
Mike Meffie [Tue, 11 Dec 2007 21:28:26 +0000]
afs-serveriprank-return-void-20071211

LICENSE IPL10

can't return 0 from void function

16 years agovldb-check-dont-return-int-from-void-20071211
Mike Meffie [Tue, 11 Dec 2007 20:42:34 +0000]
vldb-check-dont-return-int-from-void-20071211

LICENSE IPL10

void functions shouldn't return 0

16 years agobutc-no-retval-in-void-func-20071211
Derrick Brashear [Tue, 11 Dec 2007 16:25:55 +0000]
butc-no-retval-in-void-func-20071211

LICENSE IPL10

fix the build again

16 years agorevert-clean-felater-when-rechaining-20071211
Derrick Brashear [Tue, 11 Dec 2007 14:53:30 +0000]
revert-clean-felater-when-rechaining-20071211

LICENSE IPL10

revert this for now, put it in all in one piece when we commit the ifdef'd out
test code.

16 years agoubik-avoid-truncating-live-database-during-recovery-20071210
Derrick Brashear [Mon, 10 Dec 2007 22:45:42 +0000]
ubik-avoid-truncating-live-database-during-recovery-20071210

LICENSE IPL10
FIXES 77183

currently we can truncate the live database while we are doing recovery.
address that.

16 years agoafs-shutdown-cleanup-20071210
Derrick Brashear [Mon, 10 Dec 2007 22:41:22 +0000]
afs-shutdown-cleanup-20071210

LICENSE IPL10
FIXES 74479

clean up allocated resources when we shut down

16 years agofind-cpp-from-slash-20071210
Mike Meffie [Mon, 10 Dec 2007 22:24:55 +0000]
find-cpp-from-slash-20071210

LICENSE IPL10

find cpp using a full path, not the user's path, at least for now

16 years agowindows-remove-out-of-date-buffers-from-hash-tables-20071210
Jeffrey Altman [Mon, 10 Dec 2007 20:43:58 +0000]
windows-remove-out-of-date-buffers-from-hash-tables-20071210

LICENSE MIT

When a cm_MergeStatus operation determines that the current data buffers
are out of date, remove them from the buffer hash tables in order to speed
the lookup of valid data buffers.

16 years agowindows-buffers-20071210
Jeffrey Altman [Mon, 10 Dec 2007 20:33:34 +0000]
windows-buffers-20071210

LICENSE MIT

after removing cm_buf_t objects from the hash tables, clear the HT list
pointers to make debugging easier.

when modifying data version values in buf_ForceDataVersion() grab a
read lock on buf_globalLock instead of a write lock.  A write lock is
only required if the hash table linked lists are being modified.
The dataVersion itself is protected by the cm_scache_t mx mutex being
held.

16 years agopam-expires-setting-should-be-32bit-20071210
Carsten Jacobi [Mon, 10 Dec 2007 18:26:30 +0000]
pam-expires-setting-should-be-32bit-20071210

LICENSE IPL10

store as a 32 bit value explicitly so 32 bit routines don't leave garbage around here.

16 years agouss-lex-more-forward-decls-20071210
Mike Meffie [Mon, 10 Dec 2007 18:20:50 +0000]
uss-lex-more-forward-decls-20071210

LICENSE IPL10

forward declare this so picky compilers will do their jobs.

16 years agocnvldb-prototypes-20071209
Derrick Brashear [Sun, 9 Dec 2007 23:33:42 +0000]
cnvldb-prototypes-20071209

LICENSE IPL10

forward declare these

16 years agoaklog-no-dummy-write-on-aix5-20071209
Derrick Brashear [Sun, 9 Dec 2007 06:05:51 +0000]
aklog-no-dummy-write-on-aix5-20071209

LICENSE IPL10

don't do the dummy write on aix5. we are better off actually working

16 years agowritedcache-enforce-xdcache-writelock-20071208
Derrick Brashear [Sat, 8 Dec 2007 17:57:33 +0000]
writedcache-enforce-xdcache-writelock-20071208

LICENSE IPL10
FIXES 59136

in order that the writes to CacheItems not be addled, we need to *actually*
hold a *write* lock when we write. not even just read as the comment says.

and certainly not none as was happening in the dir package.

16 years agolinux24-kernel-configure-test-20071208
Derrick Brashear [Sat, 8 Dec 2007 17:44:00 +0000]
linux24-kernel-configure-test-20071208

LICENSE IPL10

on linux 2.4 the try kbuild macro needs to try harder to notice what
symbols we don't have

16 years agowindows-wix-afslogon-20071207
Jeffrey Altman [Fri, 7 Dec 2007 21:32:53 +0000]
windows-wix-afslogon-20071207

LICENSE MIT

Move afslogon.dll and afscpcc.exe to the OpenAFS\Client\Program directory

16 years agowindows-follow-backup-path-20071207
Jeffrey Altman [Fri, 7 Dec 2007 16:03:56 +0000]
windows-follow-backup-path-20071207

LICENSE MIT

Add a registry value, FollowBackupPath, that provides the Windows cache
manager with functionality equivalent to the UNIX afsd -backuptree option.

16 years agoviced-cbstuff-20071205
Jeffrey Altman [Wed, 5 Dec 2007 20:38:38 +0000]
viced-cbstuff-20071205

LICENSE IPL10

Keep track of AddCallBack calls in cbstuff.

Increment cbstuff.DeleteCallBacks after holding H_LOCK

16 years agocbd-20071205
Jeffrey Altman [Wed, 5 Dec 2007 20:31:56 +0000]
cbd-20071205

LICENSE IPL10

Windows requires open() to be called with O_BINARY otherwise Ctrl-Z
means EOF which breaks dumpfile processing.

Be consistent about writing/reading time as afs_uint32 instead of
writing as afs_uint32 and reading as time_t since time_t can be 32-bit
or 64-bit depending on the platform.

16 years agolargefile-avoid-wraparound-write-to-old-server-20071204
Derrick Brashear [Tue, 4 Dec 2007 21:08:10 +0000]
largefile-avoid-wraparound-write-to-old-server-20071204

LICENSE IPL10
FIXES 73720

apply analogous check that's in fileserver to clients writing to old servers