]> git.michaelhowe.org Git - packages/o/openafs.git/log
packages/o/openafs.git
17 years agoDEVEL15-rx-nacks-increment-with-all-newacks-20080317
Chas Williams [Mon, 17 Mar 2008 17:57:18 +0000 (17:57 +0000)]
DEVEL15-rx-nacks-increment-with-all-newacks-20080317

LICENSE IPL10

don't "lose" newacks, apply all of them to the ack count

(cherry picked from commit eee60dd38d1be14be052178816aea36b2f8de3ff)

17 years agoDEVEL15-linux-nfstrans-readme-20080317
Jeffrey Hutzelman [Mon, 17 Mar 2008 17:48:53 +0000 (17:48 +0000)]
DEVEL15-linux-nfstrans-readme-20080317

LICENSE IPL10

readme for linux nfs translator and extensions

(cherry picked from commit ec5a43b08686680b9d9c0552e3a912871dac4cc8)

17 years agoDEVEL15-volser-handle-malloc-failure-20080317
Derrick Brashear [Mon, 17 Mar 2008 17:14:11 +0000 (17:14 +0000)]
DEVEL15-volser-handle-malloc-failure-20080317

LICENSE IPL10

allocate memory for all rx OUT parameters in stubs to avoid crashes.

(cherry picked from commit 449756f8a26f1b30147851f98ac67b2a2642abf8)

17 years agoDEVEL15-solaris11-update-20080317
Mattias Pantzare [Mon, 17 Mar 2008 16:53:24 +0000 (16:53 +0000)]
DEVEL15-solaris11-update-20080317

LICENSE IPL10

update solaris 11. probably we should do configure tests instead for
these things, since they're sort of "moving target"

(cherry picked from commit 680123d70c98d7d9e5884e3d43ed5298d6aad11d)

17 years agoDEVEL15-dafs-readme-20080317
Steven Jenkins [Mon, 17 Mar 2008 16:40:00 +0000 (16:40 +0000)]
DEVEL15-dafs-readme-20080317

LICENSE IPL10

update README to mention DAFS setup and build options

(cherry picked from commit f776cb96f97e5995a3a58074f2bf913e8ea4be00)

17 years agoDEVEL15-dafs-accurately-track-inuse-20080317
Tom Keiser [Mon, 17 Mar 2008 16:05:28 +0000 (16:05 +0000)]
DEVEL15-dafs-accurately-track-inuse-20080317

LICENSE IPL10

keep accurate tabs on whether a volume is "in use" so we don't end up with volum
e state that's nonsensical.

(cherry picked from commit c7bce5882a685fcc6ecac53fb54ec7047f21ec6c)

17 years agoDEVEL15-rx-clock-backward-detection-20080317
Derrick Brashear [Mon, 17 Mar 2008 15:38:27 +0000 (15:38 +0000)]
DEVEL15-rx-clock-backward-detection-20080317

LICENSE IPL10

if the clock goes backwards, detect it and reset any rx events to run in a timely manner

(cherry picked from commit 3a84b02172800e7c172e04718fb109d1f5f1c014)

17 years agoDEVEL15-demand-attach-docs-20080314
Steven Jenkins [Fri, 14 Mar 2008 18:49:54 +0000 (18:49 +0000)]
DEVEL15-demand-attach-docs-20080314

LICENSE IPL10

Additional documentation for the demand attach file server, plus a state
diagram.

(cherry picked from commit 8cad4305acb787500f9434949cfb3c6500f3287b)

17 years agoDEVEL15-windows-callback-20080314
Jeffrey Altman [Fri, 14 Mar 2008 16:55:25 +0000 (16:55 +0000)]
DEVEL15-windows-callback-20080314

LICENSE MIT

Protect against a null volp

(cherry picked from commit 6fef8b74299e4ed75a1da45d7fdb948581ab2434)

17 years agoDEVEL15-windows-max-volumes-20080314
Jeffrey Altman [Fri, 14 Mar 2008 16:18:00 +0000 (16:18 +0000)]
DEVEL15-windows-max-volumes-20080314

LICENSE MIT

Propagate the max volumes value into cm_memmap

(cherry picked from commit 3a0fa5627bd5254f37aa5c2fb04ca7d27f0a06c1)

17 years agoDEVEL15-vol-dafs-aix-fixes-20080313
Tom Keiser [Fri, 14 Mar 2008 04:42:52 +0000 (04:42 +0000)]
DEVEL15-vol-dafs-aix-fixes-20080313

LICENSE IPL10
FIXES 88087

* xlc doesn't support the inline keyword unless C99 is enabled
* xlc won't parse enumerations with trailing commas

(cherry picked from commit 53a57b79b567aed990eb27d0b4a24109a65a993e)

17 years agoDEVEL15-lwp-fixprotos-20080313
Simon Wilkinson [Thu, 13 Mar 2008 13:42:19 +0000 (13:42 +0000)]
DEVEL15-lwp-fixprotos-20080313

LICENSE IPL10
FIXES 89857

make everything match, and make *ep take void and not a pointer

(cherry picked from commit 2d29c51167b50286e94bda35275e62cfc3c04dfd)

17 years agoDEVEL15-rx-mutex-interlocked-macros-20080312
Jeffrey Altman [Thu, 13 Mar 2008 12:58:19 +0000 (12:58 +0000)]
DEVEL15-rx-mutex-interlocked-macros-20080312

LICENSE IPL10

fix from sxw@inf.ed.ac.uk

(cherry picked from commit e1fb328b9ae509316ce8fff81691f6b738929ee9)

17 years agoDEVEL15-windows-remove-scache-volp-20080312
Jeffrey Altman [Thu, 13 Mar 2008 04:39:17 +0000 (04:39 +0000)]
DEVEL15-windows-remove-scache-volp-20080312

LICENSE MIT

The cm_scache structure has included a reference to the associated cm_volume_t,
volp.  By doing so the reference count on the cm_volume_t objects never hits
zero unless all of the cm_scache_t objects in that volume have been reused.
This prevents cm_volume object recycling.

This commit removes the hard reference and instead adds a function
cm_GetVolumeByFID which obtains a reference to the cm_volume that matches
the cm_scache fid value as needed.

A new "Volumes" registry value is added to permit explicit specification
of the number of volume objects to be allocated.

(cherry picked from commit f9cc51fb40f1797b72ba5b05d7d0249b9a3b2e27)

17 years agoDEVEL15-linux-2625-20080312
Marc Dionne [Thu, 13 Mar 2008 02:25:37 +0000 (02:25 +0000)]
DEVEL15-linux-2625-20080312

LICENSE IPL10

add missing bits

(cherry picked from commit 5378bf47efdb9abb056a0111cf38b9b6c73c7bc8)

17 years agoDEVEL15-windows-client-config-pt-20080311
Jeffrey Altman [Wed, 12 Mar 2008 05:47:38 +0000 (05:47 +0000)]
DEVEL15-windows-client-config-pt-20080311

LICENSE MIT

typo in pt_BR language resource file

(cherry picked from commit f69a15c7a8e286ead1d7a3e444214a1553fa01e5)

17 years agoDEVEL15-rx-no-interlockedadd-20080311
Jeffrey Altman [Wed, 12 Mar 2008 05:13:59 +0000 (05:13 +0000)]
DEVEL15-rx-no-interlockedadd-20080311

LICENSE IPL10

InterlockedAdd is only supported on Itanium

(cherry picked from commit 9cc4a8e02cd6b244c34f04ba9526183edd358bf7)

17 years agoDEVEL15-man-page-fileserver-update-20080311
Steven Jenkins [Wed, 12 Mar 2008 01:40:16 +0000 (01:40 +0000)]
DEVEL15-man-page-fileserver-update-20080311

LICENSE IPL10

Update the fileserver documentation for demand-attach and add documentation
of other missing options and notes where some options are only applicable
with particular builds.

(cherry picked from commit 0e91773fd769f2c5ce69eef1e795993f963ab3ee)

17 years agoDEVEL15-rx-mutex-interlocked-macros-20080311
Jeffrey Altman [Tue, 11 Mar 2008 18:27:39 +0000 (18:27 +0000)]
DEVEL15-rx-mutex-interlocked-macros-20080311

LICENSE IPL10

Introduce a new set of macros that can be used to permit either mutex
based protection or Interlocked operation protection increments,
decrements, or additions.

  rx_MutexIncrement(object, mutex)
  rx_MutexAdd(object, addend, mutex)
  rx_MutexDecrement(object, mutex)
  rx_MutexAdd1Increment2(object1, addend, object2, mutex)
  rx_MutexAdd1Decrement2(object1, addend, object2, mutex)

For Windows these are implemented with the Interlocked operations
for other platforms the existing mutex is relied upon.

Only a subset of the rx_stats parameters have been transitioned at the
current time.

(cherry picked from commit c86ae86a53c8a8e5acc099e1ea437e3571b2e63d)

17 years agoDEVEL15-lwp-protoize-20080310
Simon Wilkinson [Tue, 11 Mar 2008 17:46:47 +0000 (17:46 +0000)]
DEVEL15-lwp-protoize-20080310

LICENSE IPL10

protoize lwp. make it match pthreads' idea of createprocess

(cherry picked from commit ff988ead4ee3986c1db9f983e4f25ba79469a4e4)

17 years agoDEVEL15-windows-lwp-proto-20080311
Jeffrey Altman [Tue, 11 Mar 2008 17:02:04 +0000 (17:02 +0000)]
DEVEL15-windows-lwp-proto-20080311

LICENSE IPL10

Fix breakage caused by recent lwp prototyping.

(cherry picked from commit 9473128eb375b3ec31560613842220b934e07de6)

17 years agoDEVEL15-linux-2625-20080310
Derrick Brashear [Mon, 10 Mar 2008 18:52:50 +0000 (18:52 +0000)]
DEVEL15-linux-2625-20080310

LICENSE IPL10

adapted from marc dionne's patch, but works more directly like the darwin port,
further, i'm guessing iget_locked will go away evewntually. maybe this is
too conservative?

(cherry picked from commit cadbebc2e50aedea01475620a3add4c315c13faa)

17 years agoDEVEL15-windows-client-config-misc-dlg-20080310
Jeffrey Altman [Mon, 10 Mar 2008 18:18:13 +0000 (18:18 +0000)]
DEVEL15-windows-client-config-misc-dlg-20080310

LICENSE MIT

The Daemon and Server Threads fields were swapped.

(cherry picked from commit 2cee2d88a8573f1b8eb336993d9acf6417cda4e2)

17 years agoDEVEL15-keyring-updated-20080310
Simon Wilkinson [Mon, 10 Mar 2008 16:47:16 +0000 (16:47 +0000)]
DEVEL15-keyring-updated-20080310

LICENSE IPL10

revise keyring patch to avoid detection problems with keyring_type_key

(cherry picked from commit b7fb842b1cd11ceaa492201ad9a38052e424f6a8)

17 years agoDEVEL15-hpux-param-updates-20080310
Derrick Brashear [Mon, 10 Mar 2008 16:23:51 +0000 (16:23 +0000)]
DEVEL15-hpux-param-updates-20080310

LICENSE IPL10

based on suggestion from cg2v@andrew.cmu.edu

(cherry picked from commit 9959232682d05f410dc0fae91f790b2ebed3273a)

17 years agoDEVEL15-windows-afs-execute-only-20080309
Jeffrey Altman [Sun, 9 Mar 2008 15:25:01 +0000 (15:25 +0000)]
DEVEL15-windows-afs-execute-only-20080309

LICENSE MIT

If we want to enforce the open for read flag in smb_ReadData we must
also check for execute access.  We map execute access to read access
because AFS doesn't have a separate permission for that.

(cherry picked from commit 5f6546ecbbe946f2275e07d87351968105c176a1)

17 years agoDEVEL15-man-page-afsd-afsdb-20080308
Jason Edgecombe [Sun, 9 Mar 2008 06:08:47 +0000 (06:08 +0000)]
DEVEL15-man-page-afsd-afsdb-20080308

LICENSE BSD
FIXES 89288 89289

Reference RFC 1183 in the AFSDB documentation.

(cherry picked from commit 6e18cd4108e6367fe9766d5f2cfda48569c9ebbf)

17 years agoDEVEL15-pt-util-com-err-20080308
Simon Wilkinson [Sun, 9 Mar 2008 01:58:49 +0000 (01:58 +0000)]
DEVEL15-pt-util-com-err-20080308

LICENSE IPL10

prototype afs_error_message() to ensure correct behavior on 64-bit
systems with 32-bit int.

(cherry picked from commit 84a928ddd46b1b77c655b21ce7e9fc8d775b96db)

17 years agoDEVEL15-windows-release-notes-20080308
Jeffrey Altman [Sun, 9 Mar 2008 01:09:30 +0000 (01:09 +0000)]
DEVEL15-windows-release-notes-20080308

LICENSE MIT
FIXES 89132

updates for 1.5.34.  includes updates to the debugging section
and registry values.

17 years agoDEVEL15-windows-installer-rxmaxmtu-setting-20080308
Jeffrey Altman [Sat, 8 Mar 2008 23:39:25 +0000 (23:39 +0000)]
DEVEL15-windows-installer-rxmaxmtu-setting-20080308

LICENSE MIT

change the RxMaxMtu setting to 0 to restore default
behavior (aka performance).  The Cisco VPN 5.0.01.0600
client no longer requires a reduced mtu size for compatibility
with AFS.

(cherry picked from commit cdd1e8b878c669927b7e2b8f06cd20b62f6bec51)

17 years agoDEVEL15-windows-config-20080308
Jeffrey Altman [Sat, 8 Mar 2008 23:32:44 +0000 (23:32 +0000)]
DEVEL15-windows-config-20080308

LICENSE MIT

raise the daemon count to 4 now that we have a means of avoiding
contention

raise the tracebufsize to 10000 entries

(cherry picked from commit f94e0d5688be0778d346711b6698e2ef567e1969)

17 years agoDEVEL15-windows-syscfg-getifinfo-20080308
Jeffrey Altman [Sat, 8 Mar 2008 23:25:08 +0000 (23:25 +0000)]
DEVEL15-windows-syscfg-getifinfo-20080308

LICENSE MIT

syscfg_GetIFInfo() obtains the current list of IP addresses.
Its a really expensive operation.  Call the function once
and cache the data until the next IP address change instead
of calling it everytime we receive a WhoAreYou or construct a
new server object.  Adds a new global rw lock, cm_syscfgLock

(cherry picked from commit 801b670734e254665576dcb71756ea64a123abc9)

17 years agoDEVEL15-windows-scache-20080308
Jeffrey Altman [Sat, 8 Mar 2008 23:18:54 +0000 (23:18 +0000)]
DEVEL15-windows-scache-20080308

LICENSE MIT

do not discard data buffers we wish to keep

(cherry picked from commit 27008912ec2a0526e71f174b9e4e6d8dd1fc8f19)

17 years agoDEVEL15-windows-performance-deadlock-20080308
Jeffrey Altman [Sat, 8 Mar 2008 23:16:34 +0000 (23:16 +0000)]
DEVEL15-windows-performance-deadlock-20080308

LICENSE MIT

correct a deadlock when calling HaveCallback

(cherry picked from commit c32f5466f0cf7150d8bbe286fa51834108dce63f)

17 years agoDEVEL15-windows-cm-callback-remove-call-mutex-hold-20080308
Jeffrey Altman [Sat, 8 Mar 2008 15:45:02 +0000 (15:45 +0000)]
DEVEL15-windows-cm-callback-remove-call-mutex-hold-20080308

LICENSE MIT

Remove all of the code in #ifdef HOLD_CALL_MUTEX as we no longer
use it.

(cherry picked from commit 694202f29e5eafbcf0a07908ebdc2c67a2eecc3b)

17 years agoDEVEL15-windows-eventlog-20080308
Jeffrey Altman [Sat, 8 Mar 2008 14:17:32 +0000 (14:17 +0000)]
DEVEL15-windows-eventlog-20080308

LICENSE MIT

we need set privilege not query privilege

(cherry picked from commit 526babc882364573be745b717c32fa1da29acaa2)

17 years agoDEVEL15-windows-cm-performance-tuning-200803007
Jeffrey Altman [Fri, 7 Mar 2008 22:24:04 +0000 (22:24 +0000)]
DEVEL15-windows-cm-performance-tuning-200803007

LICENSE MIT

This is a first cut at a cache manager statistics monitor
that can be used to determine the necessary cache parameters
to support the working set.

Off by default the performance package can be activated
by setting "daemonPerformanceTuningInterval" in the service
Parameters key.  As with the other daemon interval values
the unit is in seconds.

At service start and each succeeding interval the cache
manager will write statistics to %TEMP%\afsd_performance.txt
showing the relative usage of cm_scache_t, cm_volume_t and
cm_buf_t objects.  The FID statistics keep track of all FIDs
seen by the cache manager during the service session whether
or not they are backed by any live object in the cache.

These statistics are not stored in the cache file.

(cherry picked from commit fdcf6bba5546f2a09e972323be9469a49ce04c6f)

17 years agoDEVEL15-windows-cm-conn-20080307
Jeffrey Altman [Fri, 7 Mar 2008 22:16:06 +0000 (22:16 +0000)]
DEVEL15-windows-cm-conn-20080307

LICENSE MIT

Convert cm_conn_t reference counts to use Interlocked operations.
This permits several cm_serverLock holds to be converted to read
locks.

Add string translation for VL errors to cm_Analyze().

Permit RXKAD errors other than RXKADEXPIRED to be treated as
non-fatal.  Instead immediately retry an alternate server if
there is one.  This will permit the client to continue to
access replicated data from an alternate site if one of the
file servers is misconfigured.

(cherry picked from commit 1f4ca0f488d765d5d09de9edf8a8fc4fbe6b09b1)

17 years agoDEVEL15-windows-cm-server-interlocked-20080307
Jeffrey Altman [Fri, 7 Mar 2008 22:08:54 +0000 (22:08 +0000)]
DEVEL15-windows-cm-server-interlocked-20080307

LICENSE MIT

Convert cm_server_t reference counts to use Interlocked
operations.  This permits almost all of the cm_serverLock
holds to be converted to read locks.

Add missing cm_PutServerNoLock() calls in the multi_Rx
version of cm_CheckServers().  (Thanks to Asanka)

(cherry picked from commit 0479c650c17f35a4cf0de523cfc036b8d21629ce)

17 years agoDEVEL15-windows-vl-noent-response-20080308
Jeffrey Altman [Fri, 7 Mar 2008 22:04:09 +0000 (22:04 +0000)]
DEVEL15-windows-vl-noent-response-20080308

LICENSE MIT

Prior to looking up a volume in the vldb the cm_volume_t
object is constructed.  If the response is VL_NOENT the
cm_volume_t object should be removed and place at the
head of the recycling list so that we do not recycle
something we might actually care about.

Convert more cm_volumeLock holds to read locks now
that we are using Interlocked operations to manipulate
the reference counts.

(cherry picked from commit 757ee6da75123653dd094a6e1fdd374edf0c55f1)

17 years agoDEVEL15-windows-scache-verification-20080307
Jeffrey Altman [Fri, 7 Mar 2008 17:46:00 +0000 (17:46 +0000)]
DEVEL15-windows-scache-verification-20080307

LICENSE MIT

Add a hash value verification check for stat cache entries

(cherry picked from commit 45200a26985678ccad051385f50f94321eb98256)

17 years agoDEVEL15-windows-rxstats-default-20080307
Jeffrey Altman [Fri, 7 Mar 2008 17:42:37 +0000 (17:42 +0000)]
DEVEL15-windows-rxstats-default-20080307

LICENSE MIT

set the defaults for RxEnablePeerStats and RxEnableProcessStats back
to 1 (on) so admins are not surprised.

(cherry picked from commit 73c2fa385a6f61483189dc68c4a10a49d65c8bf5)

17 years agoDEVEL15-fakestat-access-for-nautilus-20080307
Simon Wilkinson [Fri, 7 Mar 2008 17:31:28 +0000 (17:31 +0000)]
DEVEL15-fakestat-access-for-nautilus-20080307

LICENSE IPL10

in order that nautilus' .directory checks can work without stat()ing every damn
thing, do what we do for the mac, basically.

(cherry picked from commit f637b6292d3723cd2cf672ecaba6f179813ab64b)

17 years agoDEVEL15-windows-smb-writedata-crash-20080307
Jeffrey Altman [Fri, 7 Mar 2008 15:37:26 +0000 (15:37 +0000)]
DEVEL15-windows-smb-writedata-crash-20080307

LICENSE MIT
FIXES 88731

If an application opens a file for read only and then attempts to
write to it, we would attempt to release an scp mutex without having
obtained either the scp or the mutex within smb_WriteData

There was no check in smb_ReadData to ensure that the file was opened
for reading.  Add one.

(cherry picked from commit 5589875561e0062b2f06fc4ce0a8fad37a0d8eb5)

17 years agoDEVEL15-windows-interlocked-volume-refcount-20080306
Jeffrey Altman [Fri, 7 Mar 2008 01:14:13 +0000 (01:14 +0000)]
DEVEL15-windows-interlocked-volume-refcount-20080306

LICENSE MIT

Switch cm_volume_t objects to InterlockedIncrement/InterlockedDecrement
for reference counting.

Remove protections against null pointers being passed into cm_GetVolume()
Instead, do not call cm_GetVolume() if the pointer is NULL.

Fix a buffer data version comparison that should be bad version number
instead of <= 0.

(cherry picked from commit fb154e60e3cb6cf9e934f9a75c5ca67473ac36a2)

17 years agoDEVEL15-dafs-restarting-error-change-20080306
Derrick Brashear [Thu, 6 Mar 2008 16:55:46 +0000 (16:55 +0000)]
DEVEL15-dafs-restarting-error-change-20080306

LICENSE IPL10

on VSALVAGE the client will correctly resort its list and fail over to
other replicas, but only for RO where there is more than one replica,
obviously; since in dafs we expect to only delay on salvage this is the most
useful course of action

(cherry picked from commit 2137631fb44d934d51979850ebfcb6a50076b095)

17 years agoDEVEL15-pioctl-settoken-malloc-fail-check-20080206
Derrick Brashear [Thu, 6 Mar 2008 16:44:10 +0000 (16:44 +0000)]
DEVEL15-pioctl-settoken-malloc-fail-check-20080206

LICENSE IPL10

avoid malloc failure panic (oops)

(cherry picked from commit f58e08baae0a5ee9be516e9e220a12b78e5bf414)

17 years agoDEVEL15-windows-afsd-misc-20080306
Jeffrey Altman [Thu, 6 Mar 2008 14:34:29 +0000 (14:34 +0000)]
DEVEL15-windows-afsd-misc-20080306

LICENSE MIT

(1) an attempt to make better use of bandwidth from the BkgDaemon threads
    by preventing the thread from blocking on a vnode that is already
    storing data in another thread

(2) prevents CM_SCACHEFLAG_ASYNCSTORE from being reset on a write failure.

(3) fixes cm_EvaluateSysName to avoid accessing uninitialized memory

(4) prevents a lock leak if the symlink's mountpointstring is too long.
    (This could never actually happen but better to correct the code.)

(cherry picked from commit 6a631075c478794e998ad67d90e33d304521fbd3)

17 years agoDEVEL15-large-partition-support-20080305
Derrick Brashear [Wed, 5 Mar 2008 21:53:25 +0000 (21:53 +0000)]
DEVEL15-large-partition-support-20080305

LICENSE IPL10
FIXES 88811

support partitions over 2tb

(cherry picked from commit b651ece9bdb2ea9dc19907a5686e9d084f3c03d6)

17 years agoDEVEL15-windows-scache-mx-to-rw-20080302
Jeffrey Altman [Mon, 3 Mar 2008 04:25:39 +0000 (04:25 +0000)]
DEVEL15-windows-scache-mx-to-rw-20080302

LICENSE MIT

Replace the cm_scache_t mutex with a rwlock permitting a small amount
of additional parallelization in places where it is safe to use read
locks instead of write locks.  All functions that eventually call
cm_SyncOp must use write locks.

(cherry picked from commit 69f9b46e69bb7c8c9356b062a8f4908fe38ad14b)

17 years agoDEVEL15-windows-cm_buf-20080302
Jeffrey Altman [Sun, 2 Mar 2008 21:56:18 +0000 (21:56 +0000)]
DEVEL15-windows-cm_buf-20080302

LICENSE MIT

remove unused constants, data structures and fields

(cherry picked from commit ba94313f4030184890194c84f8d5c2f3f69f52d1)

17 years agoDEVEL15-windows-asyncstore-again-20080301
Jeffrey Altman [Sat, 1 Mar 2008 19:00:19 +0000 (19:00 +0000)]
DEVEL15-windows-asyncstore-again-20080301

LICENSE MIT

must write the entire asyncstoresize otherwise dirty buffers are left
for writing by buf_IncrSync thread.

(cherry picked from commit af2318cfde026f5dc6b479089689dba63f7b8abc)

17 years agoDEVEL15-windows-buf-more-clean-vnode-speedups-20080301
Jeffrey Altman [Sat, 1 Mar 2008 18:57:24 +0000 (18:57 +0000)]
DEVEL15-windows-buf-more-clean-vnode-speedups-20080301

LICENSE MIT

do not call buf_CleanAsync if you know the buffer isn't dirty

(cherry picked from commit b47407ae72491a129fc9ed6990585e426fc2a223)

17 years agoDEVEL15-windows-freelance-20080301
Jeffrey Altman [Sat, 1 Mar 2008 17:44:28 +0000 (17:44 +0000)]
DEVEL15-windows-freelance-20080301

LICENSE MIT

when support for multiple valid buffer data versions was added
forget to remove the force dv change from the freelance code.
this broken automatic additions of new mount points.

(cherry picked from commit 7083ceec5c21e500f23110152dcc994c7ccfab92)

17 years agoDEVEL15-windows-buf-mx-20080301
Jeffrey Altman [Sat, 1 Mar 2008 16:30:02 +0000 (16:30 +0000)]
DEVEL15-windows-buf-mx-20080301

LICENSE MIT

further reductions in buffer mutex acquisition churn

(cherry picked from commit fb3f10f3297c08807c0a3f0b345d88cd19742726)

17 years agoDEVEL15-windows-eventlog2-20080301
Jeffrey Altman [Sat, 1 Mar 2008 16:00:29 +0000 (16:00 +0000)]
DEVEL15-windows-eventlog2-20080301

LICENSE MIT

set the registry values on each start.  otherwise, we will never update
the incorrect entries left over from previous installs.

(cherry picked from commit 3b5a1acef030ad9208111511813a0b69c6a0de99)

17 years agoDEVEL15-windows-eventlog-20080301
Jeffrey Altman [Sat, 1 Mar 2008 15:38:34 +0000 (15:38 +0000)]
DEVEL15-windows-eventlog-20080301

LICENSE MIT

somewhere along the way Microsoft stopped opening Event Message files
explicitly.  Instead they search the PATH environment variable for
the specified file.  I think this is broken but simply registering
"afsd_service.exe" instead of the fully qualified path works.

(cherry picked from commit e4df679d1bcc6fb7e3c3eb4169e489c172910628)

17 years agoDEVEL15-windows-smb-asyncstore-20080229
Jeffrey Altman [Sat, 1 Mar 2008 04:30:38 +0000 (04:30 +0000)]
DEVEL15-windows-smb-asyncstore-20080229

LICENSE MIT

fix it

(cherry picked from commit b8cacec96969b044c1cfdd1919ca9e2e36999243)

17 years agoDEVEL15-windows-cm-buf-misc-20080229
Jeffrey Altman [Fri, 29 Feb 2008 22:59:52 +0000 (22:59 +0000)]
DEVEL15-windows-cm-buf-misc-20080229

LICENSE MIT

(1) Add an undocumented store behind mode for use in testing.  Set
    EnableSMBAsyncStore to 2.  When set all smb_WriteData calls are
    background writes, all calls to cm_FSync are skipped and file close
    operations do not block for dirty buffers to be written.  This
    permits all writes to be performed in the buf_IncrSyncer thread.

(2) Do not use I64 in osi_Log() format strings as all parameters are
    converted to size_t which is 32-bit on 32-bit Windows.

(3) Reduce the number of times the cm_buf_t mutex is obtained, dropped,
    obtained, dropped in buf_IncrSyncer

(4) In buf_CleanAsyncLocked, request that a full chunk be written instead
    of just the current buffer.  cm_SetupStoreBIOD will stop at the
    first clean buffer.  This reduces the overall number of RPCs that
    must be performed.

(5) Define CM_BUF_VERSION_BAD and use it instead of -1.

(cherry picked from commit 114de458ca7717cf0bcda90df61f24495fe8f922)

17 years agoDEVEL15-windows-dnlc-20080229
Jeffrey Altman [Fri, 29 Feb 2008 15:58:53 +0000 (15:58 +0000)]
DEVEL15-windows-dnlc-20080229

LICENSE MIT

even if dnlc is not going to be used, the data structures must
still be initialized as they are in the cache file.

(cherry picked from commit fccf05a96d038a1a911a95d309ecb08090d2c6a1)

17 years agoDEVEL15-checkauth-unlock-before-return-20080228
Kevin McBride [Fri, 29 Feb 2008 15:13:06 +0000 (15:13 +0000)]
DEVEL15-checkauth-unlock-before-return-20080228

LICENSE IPL10

only matters once you have pthreads, but...

(cherry picked from commit 8ffc274282fa40c6e2d35ba861b9dc932afa032d)

17 years agoDEVEL15-configure-enable-warnings-20080228
Simon Wilkinson [Fri, 29 Feb 2008 15:13:04 +0000 (15:13 +0000)]
DEVEL15-configure-enable-warnings-20080228

LICENSE IPL10

add a switch to turn on warnings when using gcc

(cherry picked from commit 737c03a75c62b3cd0ec92b33aea84d33dc39c2e7)

17 years agoDEVEL15-windows-libadmin-closesocket-20080228
Jeffrey Altman [Fri, 29 Feb 2008 01:27:57 +0000 (01:27 +0000)]
DEVEL15-windows-libadmin-closesocket-20080228

LICENSE MIT

On Windows close() does not apply to sockets, use closesocket()
instead.

(cherry picked from commit 502aca9e8ccff36d0c10203c66200e526d2273b3)

17 years agoDEVEL15-windows-buf-deadlock-20080228
Jeffrey Altman [Thu, 28 Feb 2008 18:22:58 +0000 (18:22 +0000)]
DEVEL15-windows-buf-deadlock-20080228

LICENSE MIT

avoid deadlock in buf_FlushCleanPages().
cannot obtain buffer mutex after a successful
Stabilize call because the scp will be be locked
and obtaining buffer mutex after scache mutex
is a lock order violation.

(cherry picked from commit 0546641c0da59289d03a9417984fe5f7e5636a75)

17 years agoDEVEL15-windows-smb-lock-timeouts-20080228
Jeffrey Altman [Thu, 28 Feb 2008 17:17:15 +0000 (17:17 +0000)]
DEVEL15-windows-smb-lock-timeouts-20080228

LICENSE MIT

Attempts to open files which are already write-locked by another
client took forever to return a lock not granted error.  This
was because cm_Analyze() would retry the lock request for up to
the RDRtimeout in response to the EAGAIN error.  The problem
was that cm_IntSetLock() was not setting the CM_REQ_NORETRY flag.

While examining this issue, discovered two other things:

(1) the infinite wait logic on lock request processing was broken
(2) the cancel outstanding lock request logic wasn't implemented
(3) cm_Analyze() would put the thread to sleep even when retries
    were not permitted.

Also removed a number of compile time warnings.

(cherry picked from commit e9f7894e3576ef9e01234966f7869440f1823718)

17 years agoDEVEL15-arm-lwp-adm-20080227
Derrick Brashear [Wed, 27 Feb 2008 22:31:11 +0000 (22:31 +0000)]
DEVEL15-arm-lwp-adm-20080227

LICENSE IPL10

use ucontext-less lwp on arm linux

(cherry picked from commit 023d3f3bae273d7af16d52fd0c468fc05653abe5)

17 years agoDEVEL15-windows-osi-convertRToW-and-logging-optimizations-20080227
Jeffrey Altman [Wed, 27 Feb 2008 17:06:43 +0000 (17:06 +0000)]
DEVEL15-windows-osi-convertRToW-and-logging-optimizations-20080227

LICENSE MIT

Add lock_convertRToW which permits a read-lock to be upgraded to a
write lock.  If the caller is the only reader it permits a fast
transition otherwise it adds the caller to the waiters queue.

In the osi_Log macros, check to see if the log is enabled before making
the function call.  This avoids significant function call overhead.

In the cache manager, make use of the above.

(cherry picked from commit 72687c02b6ee5ff3029937b0278733b252f14550)

17 years agoDEVEL15-windows-dnlc-20080226
Jeffrey Altman [Wed, 27 Feb 2008 04:55:16 +0000 (04:55 +0000)]
DEVEL15-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.

(cherry picked from commit 107899cefaeebe693f8025e9c0d88784facd2236)

17 years agoDEVEL15-openafs-1-5-3-20080225 openafs-devel-1_5_33
Derrick Brashear [Tue, 26 Feb 2008 04:15:52 +0000 (04:15 +0000)]
DEVEL15-openafs-1-5-3-20080225

LICENSE IPL10

make 1.5.33

17 years agoDEVEL15-viced-cleanup-old-addresses-as-they-become-invalid-20080225
Jeffrey Altman [Tue, 26 Feb 2008 04:14:17 +0000 (04:14 +0000)]
DEVEL15-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

(cherry picked from commit 428cac5d6dfc287452af51c08eba0f0fca276864)

17 years agoDEVEL15-windows-notes-20080225
Jeffrey Altman [Tue, 26 Feb 2008 01:08:19 +0000 (01:08 +0000)]
DEVEL15-windows-notes-20080225

LICENSE MIT

1.5.33 (more)

17 years agoDEVEL15-windows-version-20080225
Jeffrey Altman [Tue, 26 Feb 2008 01:05:39 +0000 (01:05 +0000)]
DEVEL15-windows-version-20080225

LICENSE MIT

1.5.33 = 1.5.3300.0

17 years agoDEVEL15-windows-force-anon-vldb-20080225
Jeffrey Altman [Mon, 25 Feb 2008 22:21:24 +0000 (22:21 +0000)]
DEVEL15-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)

(cherry picked from commit dd72e06bf11fccd70cba32c4b6411a5e6ff3914c)

17 years agoDEVEL15-threadquota-enforcement-fixes-20080225
Jeffrey Hutzelman [Mon, 25 Feb 2008 20:38:34 +0000 (20:38 +0000)]
DEVEL15-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.

(cherry picked from commit f4f7ac048c52f859000a0d42640f0a6d43cc942a)

17 years agoDEVEL15-windows-volume-logsavestring-20080225
Jeffrey Altman [Mon, 25 Feb 2008 19:40:13 +0000 (19:40 +0000)]
DEVEL15-windows-volume-logsavestring-20080225

LICENSE MIT

remember to save the volume name when logging

(cherry picked from commit d8c932ed73039777f5e21e70d6850325061f8241)

17 years agoDEVEL15-windows-smb-asyncstoresize-20080225
Jeffrey Altman [Mon, 25 Feb 2008 15:34:31 +0000 (15:34 +0000)]
DEVEL15-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.

(cherry picked from commit 704fddccd0f714c848b37ccee427f8eeded53bd6)

17 years agoDEVEL15-windows-smb-async-store-20080224
Jeffrey Altman [Mon, 25 Feb 2008 05:36:46 +0000 (05:36 +0000)]
DEVEL15-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.

(cherry picked from commit f95915a55ae579bab4052f24f6fedca21d114567)

17 years agoDEVEL15-windows-release-notes-20080224
Jeffrey Altman [Mon, 25 Feb 2008 05:24:46 +0000 (05:24 +0000)]
DEVEL15-windows-release-notes-20080224

LICENSE MIT

1.5.33

17 years agoDEVEL15-nulluuid-check-only-valid-input-20080224
Derrick Brashear [Mon, 25 Feb 2008 05:00:16 +0000 (05:00 +0000)]
DEVEL15-nulluuid-check-only-valid-input-20080224

LICENSE IPL10

as reported by jhutz@cmu.edu

(cherry picked from commit 27dc7b13aa6356ba76916e47c6ddb48aa4b99846)

17 years agoDEVEL15-windows-notes-20080224
Jeffrey Altman [Mon, 25 Feb 2008 04:18:42 +0000 (04:18 +0000)]
DEVEL15-windows-notes-20080224

LICENSE MIT

1.5.33

17 years agoDEVEL15-windows-scache-clean-bufs-20080224
Jeffrey Altman [Sun, 24 Feb 2008 15:35:34 +0000 (15:35 +0000)]
DEVEL15-windows-scache-clean-bufs-20080224

LICENSE MIT

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

(cherry picked from commit f52c6e1bc020a0985d2bc168d06b2c87fe7a2797)

17 years agoDEVEL15-windows-buf-data-versions-20080224
Jeffrey Altman [Sun, 24 Feb 2008 06:33:20 +0000 (06:33 +0000)]
DEVEL15-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.

(cherry picked from commit 9e41258fad54e3122a0722b3f1c24810590c8d0a)

17 years agoDEVEL15-windows-optimize-access-20080224
Jeffrey Altman [Sun, 24 Feb 2008 06:28:57 +0000 (06:28 +0000)]
DEVEL15-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.

(cherry picked from commit 812ac61cfd3601abb1373f6d3f9e4d52c2ff61b9)

17 years agoDEVEL15-windows-checkntopen-20080223
Asanka Herath [Sat, 23 Feb 2008 21:37:08 +0000 (21:37 +0000)]
DEVEL15-windows-checkntopen-20080223

LICENSE MIT

do not forget to call cm_SyncOpDone if cm_SyncOp succeeded

(cherry picked from commit c73b73ee33c37aee2c52051005a12ad36fde70d4)

17 years agoDEVEL15-windows-buf-createlock-20080223
Jeffrey Altman [Sat, 23 Feb 2008 21:14:19 +0000 (21:14 +0000)]
DEVEL15-windows-buf-createlock-20080223

LICENSE MIT

Do not leak a read lock on the bufCreateLock

Add logging to cm_CheckNTOpen[Done]

(cherry picked from commit 8bddb4892bb815076861507f8ae781ae2c3f3310)

17 years agoDEVEL15-windows-buf-scache-interlock-20080222
Jeffrey Altman [Sat, 23 Feb 2008 07:30:18 +0000 (07:30 +0000)]
DEVEL15-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.

(cherry picked from commit 12c6cfd4435c5a491e613e6394fabeeed4d81447)

17 years agoDEVEL15-windows-afsd-20080222
Jeffrey Altman [Sat, 23 Feb 2008 00:17:34 +0000 (00:17 +0000)]
DEVEL15-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.

(cherry picked from commit dcef8fa4adc4c2cdc166494979d77d91c40c1f06)

17 years agoDEVEL15-debian-packaging-update-20080220
Derrick Brashear [Wed, 20 Feb 2008 21:35:53 +0000 (21:35 +0000)]
DEVEL15-debian-packaging-update-20080220

LICENSE IPL10

Russ' metadata, repacked into our tree

(cherry picked from commit cd9ce022ee97bee809e840be8612aafb2cbfc6b8)

17 years agoDEVEL15-vos-addsite-pod-error-20080220
Derrick Brashear [Wed, 20 Feb 2008 20:19:44 +0000 (20:19 +0000)]
DEVEL15-vos-addsite-pod-error-20080220

LICENSE IPL10
Item is not item

(cherry picked from commit 49d77d8d4b8c26a56143a3655d460a6495f7d57a)

17 years agoDEVEL15-urecovery-invalidate-without-truncate-20080220
Derrick Brashear [Wed, 20 Feb 2008 20:09:05 +0000 (20:09 +0000)]
DEVEL15-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.

(cherry picked from commit d5c32c97a01f02cd69e2167964b43d83c6d413fb)

17 years agoDEVEL15-windows-smb-locking-20080220
Jeffrey Altman [Wed, 20 Feb 2008 17:37:09 +0000 (17:37 +0000)]
DEVEL15-windows-smb-locking-20080220

LICENSE MIT

minor improvements to smb_rctLock usage.

(cherry picked from commit d48e3d1e7a5a5d065a0046b9115043bed47510a7)

17 years agoDEVEL15-windows-rx_enable_hot_thread-20080220
Jeffrey Altman [Wed, 20 Feb 2008 17:33:34 +0000 (17:33 +0000)]
DEVEL15-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.

(cherry picked from commit dd4ecb4ca0467d9f5727de1bfe9082f195330b99)

17 years agoDEVEL15-rx-osi_socket-20080220
Jeffrey Altman [Wed, 20 Feb 2008 17:18:47 +0000 (17:18 +0000)]
DEVEL15-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.

(cherry picked from commit 5067e6786dc93b8760edf6b1b9d92c3999caea7e)

17 years agoDEVEL15-openafs-1-5-32-20080219 openafs-devel-1_5_32
Derrick Brashear [Wed, 20 Feb 2008 03:36:24 +0000 (03:36 +0000)]
DEVEL15-openafs-1-5-32-20080219

LICENSE IPL10

make 1.5.32

17 years agoDEVEL15-man-page-updates-20080219
Jason Edgecombe [Tue, 19 Feb 2008 15:28:55 +0000 (15:28 +0000)]
DEVEL15-man-page-updates-20080219

LICENSE IPL10
FIXES 86677

note 2tb limit, add fs minidump document

(cherry picked from commit 897c36027476843db988b9d0625a8fc189c8716d)

17 years agoDEVEL15-s390x-not-s390-20080219
Mike Meffie [Tue, 19 Feb 2008 15:07:36 +0000 (15:07 +0000)]
DEVEL15-s390x-not-s390-20080219

LICENSE IPL10

don't try to link multiple things to asm

(cherry picked from commit 4bd64596caebf79962db441782082d07c2de9e4e)

17 years agoDEVEL15-viced-rmdir-fid-leak-20080219
Rainer Toebbicke [Tue, 19 Feb 2008 14:38:20 +0000 (14:38 +0000)]
DEVEL15-viced-rmdir-fid-leak-20080219

LICENSE IPL10
FIXES 86786

(cherry picked from commit 19b829d21934d60ab0b1af3ef0c7eefb2cce17b6)

17 years agoDEVEL15-windows-version-20080218
Jeffrey Altman [Tue, 19 Feb 2008 04:30:19 +0000 (04:30 +0000)]
DEVEL15-windows-version-20080218

LICENSE MIT

1.5.32 = 1.5.3200.0

17 years agoDEVEL15-windows-notes-20080218
Jeffrey Altman [Tue, 19 Feb 2008 04:19:09 +0000 (04:19 +0000)]
DEVEL15-windows-notes-20080218

LICENSE MIT

more for 1.5.32

17 years agoDEVEL15-windows-name-entries-20080218
Derrick Brashear [Tue, 19 Feb 2008 04:15:03 +0000 (04:15 +0000)]
DEVEL15-windows-name-entries-20080218

LICENSE IPL10

restore the original behavior.  Fixes smb_ReceiveTran2SearchDir().

(cherry picked from commit c2de3a1623441f93b119dbdbd772bfa81973b230)