openafs.git
16 years agoDEVEL15-pthreaded-ubik-20080402
Steven Jenkins [Wed, 2 Apr 2008 21:06:31 +0000]
DEVEL15-pthreaded-ubik-20080402

LICENSE IPL10

add pthreaded ubik and various binaries

(cherry picked from commit 9fbbc3f50cc6f04796a8a444bc06acc66a9c55a6)

16 years agoDEVEL15-linux-flush-compare-20080402
Marc Dionne [Wed, 2 Apr 2008 19:21:49 +0000]
DEVEL15-linux-flush-compare-20080402

LICENSE IPL10

because i let this slip out like this. sigh.

(cherry picked from commit 93c326ef08cacc730470a7af75041d943825260b)

16 years agoDEVEL15-linux-flush-unlock-20080402
Harald Barth [Wed, 2 Apr 2008 14:10:00 +0000]
DEVEL15-linux-flush-unlock-20080402

LICENSE IPL10

because i let this slip out like this. sigh.

(cherry picked from commit 31d06c78b2f8ea14877bebf05097b33cc7e233f2)

16 years agoDEVEL15-salvageserver-init-handler-lock-20080401
Tom Keiser [Tue, 1 Apr 2008 21:29:12 +0000]
DEVEL15-salvageserver-init-handler-lock-20080401

LICENSE IPL10

init lock

(cherry picked from commit 5fe4de574dba287b8197263028ac49014955a483)

16 years agoDEVEL15-tsalvaged-clean-20080401
Derrick Brashear [Tue, 1 Apr 2008 21:17:27 +0000]
DEVEL15-tsalvaged-clean-20080401

LICENSE IPL10

make clean target work here

(cherry picked from commit 0faa1e0412c4cb22e6820473fa60cdea5d516550)

16 years agoDEVEL15-vol-osi-assert-20080401
Derrick Brashear [Tue, 1 Apr 2008 21:05:36 +0000]
DEVEL15-vol-osi-assert-20080401

LICENSE IPL10

undo the old windows afs assert undoing

(cherry picked from commit 48838bab91b50a5cf8cd3fb7d1902e6b7525bb86)

16 years agoDEVEL15-aklog-debug-text-dont-deref-null-ptr-20080401
Derrick Brashear [Tue, 1 Apr 2008 19:15:40 +0000]
DEVEL15-aklog-debug-text-dont-deref-null-ptr-20080401

LICENSE IPL10

yeah, this is sort of dumb

AUTHOR
LICENSE IPL10

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

yeah, this is sort of dumb

(cherry picked from commit 695d1aa896cf38cfe9856ba1c45b6b3cca7565a2)

16 years agoDEVEL15-aklog-tidyup-20080401
Simon Wilkinson [Tue, 1 Apr 2008 18:44:40 +0000]
DEVEL15-aklog-tidyup-20080401

LICENSE IPL10
FIXES 92643

remove windows code (osolete) from unix branch
do other minor cleanup

(cherry picked from commit 3f54c934b9c933d5f34644a096c821375db17d97)

16 years agoDEVEL15-vlserver-checksignal-returns-voidstar-20080401
Derrick Brashear [Tue, 1 Apr 2008 17:51:31 +0000]
DEVEL15-vlserver-checksignal-returns-voidstar-20080401

LICENSE IPL10
FIXES 92662

CheckSignal returns void*, don't try to return an int directly.

(cherry picked from commit 94aa281af8c9cb74561a32a34cb7cd5b5da97cdf)

16 years agoDEVEL15-synvageserver-no-rx-server-refs-20080401
Tom Keiser [Tue, 1 Apr 2008 15:12:06 +0000]
DEVEL15-synvageserver-no-rx-server-refs-20080401

LICENSE IPL10
FIXES 92648

remove reference to rx service mutex and thread tracking. we need to ensure there's nothing else either but this is true now

(cherry picked from commit 9bdb8599c094821d0dfb29505cc63aa2a8460ae2)

16 years agoDEVEL15-man-page-vos-shadow-20080331
Jason Edgecombe [Tue, 1 Apr 2008 07:57:18 +0000]
DEVEL15-man-page-vos-shadow-20080331

LICENSE BSD

Man page for vos shadow.

(cherry picked from commit 4bcb7d01b2a8aa6ce53cf1c0b093058b4e5072f1)

16 years agoDEVEL15-test-updates-20080331
Mike Meffie [Mon, 31 Mar 2008 16:54:02 +0000]
DEVEL15-test-updates-20080331

LICENSE IPL10

update tests directory

(cherry picked from commit a26d7f1403d7d41d51836442a7a4759f4fc2bfe4)

16 years agoDEVEL15-windows-aklog-cross-cell-20080330
Jeffrey Altman [Sun, 30 Mar 2008 17:21:07 +0000]
DEVEL15-windows-aklog-cross-cell-20080330

LICENSE MIT

report the new ID after a successful cross cell registration

(cherry picked from commit 99a29903c8b77e2e3260bf06d913367fadbc4fed)

16 years agoDEVEL15-windows-aklog-robustness-20080330
Jeffrey Altman [Sun, 30 Mar 2008 15:13:17 +0000]
DEVEL15-windows-aklog-robustness-20080330

LICENSE MIT

Fix the order of parameters to strncpy

Add error checking to all krb5 functions.

Initialize the global ccache variable to NULL.

(cherry picked from commit 2169423f6821672be5506ab388d6faa0ed37f0d0)

16 years agoDEVEL15-windows-vlserver-makefile-20080329
Jeffrey Altman [Sun, 30 Mar 2008 05:17:15 +0000]
DEVEL15-windows-vlserver-makefile-20080329

LICENSE MIT

make references to INCFILEDIR consistent

(cherry picked from commit aff582765a8af5ce8743e28ee4d33bf8e4396d63)

16 years agoDEVEL15-windows-use-client-realm-for-tokens-20080329
Jeffrey Altman [Sun, 30 Mar 2008 04:36:55 +0000]
DEVEL15-windows-use-client-realm-for-tokens-20080329

LICENSE MIT

Two recent changes to the AFS/Kerberos landscape have been causing
problems for aklog and related modules.  First, the support for multiple
local realms for the cell has broken the pts auto-registration code
when the realm used for the token acquisition does not match the
realm belonging to the selected vldb server.  Second, Kerberos referrals
prevents detection of the realm of the vldb server.

This commit adds a new method of searching for the afs service principal.
The first attempt is for afs/<cell>@<CLIENT-REALM>.  If found, the
<CLIENT-REALM> is used as the realm of the cell.

The patch adds error handling for KRB5_ERR_HOST_REALM_UNKNOWN which is
returned when krb5_get_host_realm() can't determine the realm.

Duplicate queries are also avoided and copy_realm_of_ticket() is
properly employed.

(cherry picked from commit c6897cee01063d6d6ad302e6527794130f007d74)

16 years agoDEVEL15-nbsd-update-20080328
Tracy Di Marco White [Fri, 28 Mar 2008 17:12:40 +0000]
DEVEL15-nbsd-update-20080328

LICENSE IPL10
FIXES 92073

fix nbsd30 param file, add nbsd40 param file

(cherry picked from commit 07d806845e1bf790c8cbe8e6a711e99e0958235b)

16 years agoDEVEL15-windows-freelance-20080328
Jeffrey Altman [Fri, 28 Mar 2008 14:02:54 +0000]
DEVEL15-windows-freelance-20080328

LICENSE MIT

1. return CM_ERROR_NOSUCHFILE when attempting to remove a symlink or
   mount point that does not exist

2. When adding a new symlink or mountpoint, be sure to increment the
   number of local mount points

3. When re-initializing the fake root.cell the unique value is always
   one, not two.  Use cm_FidCmp() to compare fids.  The use of the
   value two prevented the invalidation of existing values because all
   of the directory entries are created with the unique set to one.

(cherry picked from commit b2e3e6427522c92ce4132abf2ca08ce18599b16b)

16 years agoDEVEL15-krb5-klog-solaris-krb-20080327
Douglas Engert [Thu, 27 Mar 2008 18:48:46 +0000]
DEVEL15-krb5-klog-solaris-krb-20080327

LICENSE IPL10
FIXES 91573

no krb5_mcc_ops on solaris krb5. cope

(cherry picked from commit e0021180665fa75af88c3ebf0d7f58f93918ceab)

16 years agoDEVEL15-ptutil-swap-epoch-version-as-needed-20080327
Derrick Brashear [Thu, 27 Mar 2008 18:40:12 +0000]
DEVEL15-ptutil-swap-epoch-version-as-needed-20080327

LICENSE IPL10
FIXES 90869

do byteswapping of epoch and version so we print and compare sensibly

(cherry picked from commit 87e959e87df52e026ffcb2de8ecfcbf4889f7bd8)

16 years agoDEVEL15-volser-higher-thread-limit-20080327
Derrick Brashear [Thu, 27 Mar 2008 16:20:39 +0000]
DEVEL15-volser-higher-thread-limit-20080327

LICENSE IPL10

with tvolser we can increase this and actually *see benefit*, so...

(cherry picked from commit 7c05046f1f097a6ded89a5928ea48aca224f520a)

16 years agoDEVEL15-dafs-vshutdown-match-id-to-params-20080327
Alistair Ferguson [Thu, 27 Mar 2008 16:16:12 +0000]
DEVEL15-dafs-vshutdown-match-id-to-params-20080327

LICENSE IPL10

we track shutdown thread parms as index rather than device; deal correctly

(cherry picked from commit 6c9647cc614cfdf9b2c9cc8adb7b3c6b741e1f4e)

16 years agoDEVEL15-linux-dont-flush-writes-on-exec-20080326
Chas Williams [Wed, 26 Mar 2008 04:17:18 +0000]
DEVEL15-linux-dont-flush-writes-on-exec-20080326

LICENSE IPL10
FIXES 17509

because of when fds are NULL'd in file_table this should work except when one process has the same file open for read and for write in different FDs; otherwise,
 the last write fd to close collects the error.

(cherry picked from commit 1cf6c12a075cb0705cd8680291d78d215d4fe996)

16 years agoDEVEL15-linux-restore-iget-cachemgr-20080326
Marc Dionne [Wed, 26 Mar 2008 04:10:39 +0000]
DEVEL15-linux-restore-iget-cachemgr-20080326

LICENSE IPL10
FIXES 88000

restore the d_alloc_anon we need

(cherry picked from commit 3f8be40525ae84980f1519e60f4b9f73bd4cc676)

16 years agoDEVEL15-windows-vlserver-include-path-20080323
Jeffrey Altman [Sun, 23 Mar 2008 14:11:57 +0000]
DEVEL15-windows-vlserver-include-path-20080323

LICENSE MIT

Fix the INCFILEDIR definition so that the INCFILES actually exist

(cherry picked from commit f3776341151ad2c9b439567411e908836b16d415)

16 years agoDEVEL15-setuuid-return-20080104
Jim Rees [Sat, 22 Mar 2008 04:19:13 +0000]
DEVEL15-setuuid-return-20080104

return success (0) from setuuid()

(cherry picked from commit e192814db3a754aa5fe24acf10aa24030c57fa55)

16 years agoDEVEL15-linux-2625-update-20080322 openafs-devel-1_5_34
Marc Dionne [Sun, 23 Mar 2008 00:53:46 +0000]
DEVEL15-linux-2625-update-20080322

LICENSE IPL10
FIXES 88000

update 2.6.25 patch to hopefully cover what we need better

(cherry picked from commit 76494a572e504c426fe9dabc8e68115f7ee6a05c)

16 years agoDEVEL15-windows-aklog-cleanup-20080321
Jeffrey Altman [Sat, 22 Mar 2008 00:20:24 +0000]
DEVEL15-windows-aklog-cleanup-20080321

LICENSE MIT

make krb5_context global.  wrap all calls to exit() in a new function,
akexit(), which performs cleanup of the krb5_ccache and the krb5_context.

(cherry picked from commit 887f2869e309d00dff095b033dabf59231ef3300)

16 years agoDEVEL15-windows-release-notes-20080321
Jeffrey Altman [Fri, 21 Mar 2008 18:09:06 +0000]
DEVEL15-windows-release-notes-20080321

LICENSE MIT

final changes for 1.5.34

16 years agoDEVEL15-windows-notes-20080321
Jeffrey Altman [Fri, 21 Mar 2008 17:17:41 +0000]
DEVEL15-windows-notes-20080321

LICENSE MIT

one more item for 1.5.34

16 years agoDEVEL15-windows-version-20080321
Jeffrey Altman [Fri, 21 Mar 2008 17:02:48 +0000]
DEVEL15-windows-version-20080321

LICENSE MIT

1.5.34 == 1.5.3400.0

16 years agoDEVEL15-aix-unix-sockets-fix-200803221
Tom Keiser [Fri, 21 Mar 2008 16:59:14 +0000]
DEVEL15-aix-unix-sockets-fix-200803221

LICENSE IPL10
FIXES 88088

use aix's macro for the size of sockaddr_un

(cherry picked from commit 493afd1e59661e64120a8d655d6503ac396ca46b)

16 years agoDEVEL15-openafs-1-5-34-20080321
Derrick Brashear [Fri, 21 Mar 2008 16:55:37 +0000]
DEVEL15-openafs-1-5-34-20080321

LICENSE IPL10

make 1.5.34

16 years agoDEVEL15-windows-aklog-20080320
Jeffrey Altman [Fri, 21 Mar 2008 12:22:03 +0000]
DEVEL15-windows-aklog-20080320

LICENSE MIT

Windows Error Reports indicate that sometimes the krb5_cc_default()
call must be failing because krb5_cc_principal is being called with
a NULL ccache value.  Perform error checking and cleanup that was
not previously implemented.

(cherry picked from commit 94f32208af8896e144e18aa34d80bf2924b4ac36)

16 years agoDEVEL15-windows-notes-20080320
Jeffrey Altman [Fri, 21 Mar 2008 05:02:38 +0000]
DEVEL15-windows-notes-20080320

LICENSE MIT

changes implemented in 1.5.34

16 years agoDEVEL15-windows-pioctl-disable-service-mgr-check-20080320
Jeffrey Altman [Fri, 21 Mar 2008 04:17:14 +0000]
DEVEL15-windows-pioctl-disable-service-mgr-check-20080320

LICENSE MIT

Adds HKLM\\Software\\OpenAFS\\Client  DisableIoctlSMCheck

For use in setting tokens when afsd_service.exe is started without
use of the NT Service Manager.  Permits profiling authenticated
operations.

(cherry picked from commit 77c1e986369c8151ec19e74dccbd2b40de6270d9)

16 years agoDEVEL15-windows-max-cells-20080319
Jeffrey Altman [Thu, 20 Mar 2008 00:01:59 +0000]
DEVEL15-windows-max-cells-20080319

LICENSE MIT

Add CM_CONFIGDEFAULT_CELLS (1024) to cm_config.h and a "Cells" registry
value that can be used to alter the limit at runtime.

No longer tie the number of cells to the number of stat cache objects.
1024 should be more than sufficient.

(cherry picked from commit edbde00d6c3be0228b1647505d8483632cceaf39)

16 years agoDEVEL15-windows-volume-dotdotFid-20080319
Jeffrey Altman [Wed, 19 Mar 2008 20:18:37 +0000]
DEVEL15-windows-volume-dotdotFid-20080319

LICENSE MIT

The volume dotdotFid field should have moved into the cm_volstate_t
object as there can be different parents for rw, ro, and bk volumes.

(cherry picked from commit d24b177765f2955a7c54ecdc33744ecee069f25e)

16 years agoDEVEL15-windows-no-more-afsdifs-20080319
Jeffrey Altman [Wed, 19 Mar 2008 15:36:25 +0000]
DEVEL15-windows-no-more-afsdifs-20080319

LICENSE MIT

do not include a header that no longer exists

(cherry picked from commit b2667be49d31a26517f3c7a192091847434e6151)

16 years agoDEVEL15-windows-remove-umich-afsifs-20080319
Jeffrey Altman [Wed, 19 Mar 2008 13:59:29 +0000]
DEVEL15-windows-remove-umich-afsifs-20080319

LICENSE MIT

The UMich AFS IFS code has never been made ready for production.
An alternative approach is currently being worked on that will be.

(cherry picked from commit e3f9fcdeaaf35363c0b3d3a8004892aa4ce9233f)

16 years agoDEVEL15-windows-parseacl-20080319
Jeffrey Altman [Wed, 19 Mar 2008 13:24:00 +0000]
DEVEL15-windows-parseacl-20080319

LICENSE MIT

Protect against invalid data being passed into ParseAcl and
corrupting the stack.  This affects both fs.exe and the explorer
shell extension.

Windows Error Reporting in recent weeks has begun to report several
instances of stack corruption in the explorer shell extension from
Denmark and Germany.

(cherry picked from commit e6d7e165886122dc4cee850632ee2c1f55165258)

16 years agoDEVEL15-windows-remove-umich-afsifs-20080318
Jeffrey Altman [Tue, 18 Mar 2008 16:48:31 +0000]
DEVEL15-windows-remove-umich-afsifs-20080318

LICENSE MIT

The UMich AFS IFS code has never been made ready for production.
An alternative approach is currently being worked on that will be.

(cherry picked from commit e7e2a3bd0691e3da78a36c8f3332577290f59a64)

16 years agoDEVEL15-dafs-kill-xcpu-dump-vlru-stats-20080318
Tom Keiser [Tue, 18 Mar 2008 16:06:19 +0000]
DEVEL15-dafs-kill-xcpu-dump-vlru-stats-20080318

LICENSE BSD

this will dump the current dafs vlru state on kill -XCPU (just as we dump other
fileserver state)
that state is
VLRU is a garbage collection facility which automatically offlines
volumes in the background. The purpose of this facility is to
proactively offline infrequently used volumes to improve shutdown and
salvage times. The process of offlining a volume from the "attached"
state to the "pre-attached" state is called soft detachment.

VLRU works in a manner similar to a generational garbage collector.
There are five queues on which volumes can reside: new, intermediate,
old, held, and candidate:

held:

queue for volumes which are administratively barred from VLRU activity

candidate:

queue for volumes which have not been accessed recently, and are thus
candidates for soft detachment

new, intermediate, old:

generational queues for active volumes; state transitions controlled by
inactivity timers.

State transition timeouts are as follows:

candidate->new activity present
new->candidate (1*vlruthresh) minutes since last transition; no activity
new->mid (2*vlruthresh) minutes since last transition; activity
present
mid->old (4*vlruthresh) minutes since last transition; activity
present
old->mid (2*vlruthresh) minutes since last transition; no activity
mid->new (1*vlruthresh) minutes since last transition; no activity

(cherry picked from commit 6c81286368e17bdde543d4d6e5d19512cab62ba3)

16 years agoDEVEL15-pts-process-input-file-and-exit-20080318
Kevin McBride [Tue, 18 Mar 2008 15:58:54 +0000]
DEVEL15-pts-process-input-file-and-exit-20080318

LICENSE IPL10

 The pts program has a command 'source' to read commands from
 a file.  In the interactive "shell" mode, this command works,
 reading and executing commands until the end of the file and
 then returning to the command shell.

 This command is valid for use as a command line option, but
 does not work. It requires a valid filename as an argument,
 but does not process the file, instead just dropping the user
 into the interactive mode.

 When given as a command line option, pts source SHOULD read
 the file, execute the commands and then exit, according to
 the documentation. It does not currently do this and should
 be fixed.

(cherry picked from commit db4c703131c4fe68e699d873525f1055845545f7)

16 years agoDEVEL15-hpux1123-sysname-detection-20080317
Chaskiel M Grundman [Mon, 17 Mar 2008 18:07:48 +0000]
DEVEL15-hpux1123-sysname-detection-20080317

LICENSE IPL10
FIXES 89125

add the 11.23 sysname

(cherry picked from commit 7ffe6a97ff0453c2cae8b15a9d7e2084e3a864d4)

16 years agoDEVEL15-afs-nostats-xstats-start-cmtime-noop-20080317
Chas Williams [Mon, 17 Mar 2008 18:03:37 +0000]
DEVEL15-afs-nostats-xstats-start-cmtime-noop-20080317

LICENSE IPL10
FIXES 90528

add missing noop so we can build with stats disabled

(cherry picked from commit 2c3cbd499ad4461511f2181e1ac0a0cfa6768821)

16 years agoDEVEL15-rx-nacks-increment-with-all-newacks-20080317
Chas Williams [Mon, 17 Mar 2008 17:57:18 +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)

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

LICENSE IPL10

readme for linux nfs translator and extensions

(cherry picked from commit ec5a43b08686680b9d9c0552e3a912871dac4cc8)

16 years agoDEVEL15-volser-handle-malloc-failure-20080317
Derrick Brashear [Mon, 17 Mar 2008 17:14:11 +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)

16 years agoDEVEL15-solaris11-update-20080317
Mattias Pantzare [Mon, 17 Mar 2008 16:53:24 +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)

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

LICENSE IPL10

update README to mention DAFS setup and build options

(cherry picked from commit f776cb96f97e5995a3a58074f2bf913e8ea4be00)

16 years agoDEVEL15-dafs-accurately-track-inuse-20080317
Tom Keiser [Mon, 17 Mar 2008 16:05:28 +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)

16 years agoDEVEL15-rx-clock-backward-detection-20080317
Derrick Brashear [Mon, 17 Mar 2008 15:38:27 +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)

16 years agoDEVEL15-demand-attach-docs-20080314
Steven Jenkins [Fri, 14 Mar 2008 18:49:54 +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)

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

LICENSE MIT

Protect against a null volp

(cherry picked from commit 6fef8b74299e4ed75a1da45d7fdb948581ab2434)

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

LICENSE MIT

Propagate the max volumes value into cm_memmap

(cherry picked from commit 3a0fa5627bd5254f37aa5c2fb04ca7d27f0a06c1)

16 years agoDEVEL15-vol-dafs-aix-fixes-20080313
Tom Keiser [Fri, 14 Mar 2008 04:42:52 +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)

16 years agoDEVEL15-lwp-fixprotos-20080313
Simon Wilkinson [Thu, 13 Mar 2008 13:42:19 +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)

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

LICENSE IPL10

fix from sxw@inf.ed.ac.uk

(cherry picked from commit e1fb328b9ae509316ce8fff81691f6b738929ee9)

16 years agoDEVEL15-windows-remove-scache-volp-20080312
Jeffrey Altman [Thu, 13 Mar 2008 04:39:17 +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)

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

LICENSE IPL10

add missing bits

(cherry picked from commit 5378bf47efdb9abb056a0111cf38b9b6c73c7bc8)

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

LICENSE MIT

typo in pt_BR language resource file

(cherry picked from commit f69a15c7a8e286ead1d7a3e444214a1553fa01e5)

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

LICENSE IPL10

InterlockedAdd is only supported on Itanium

(cherry picked from commit 9cc4a8e02cd6b244c34f04ba9526183edd358bf7)

16 years agoDEVEL15-man-page-fileserver-update-20080311
Steven Jenkins [Wed, 12 Mar 2008 01:40:16 +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)

16 years agoDEVEL15-rx-mutex-interlocked-macros-20080311
Jeffrey Altman [Tue, 11 Mar 2008 18:27:39 +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)

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

LICENSE IPL10

protoize lwp. make it match pthreads' idea of createprocess

(cherry picked from commit ff988ead4ee3986c1db9f983e4f25ba79469a4e4)

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

LICENSE IPL10

Fix breakage caused by recent lwp prototyping.

(cherry picked from commit 9473128eb375b3ec31560613842220b934e07de6)

16 years agoDEVEL15-linux-2625-20080310
Derrick Brashear [Mon, 10 Mar 2008 18:52:50 +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)

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

LICENSE MIT

The Daemon and Server Threads fields were swapped.

(cherry picked from commit 2cee2d88a8573f1b8eb336993d9acf6417cda4e2)

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

LICENSE IPL10

revise keyring patch to avoid detection problems with keyring_type_key

(cherry picked from commit b7fb842b1cd11ceaa492201ad9a38052e424f6a8)

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

LICENSE IPL10

based on suggestion from cg2v@andrew.cmu.edu

(cherry picked from commit 9959232682d05f410dc0fae91f790b2ebed3273a)

16 years agoDEVEL15-windows-afs-execute-only-20080309
Jeffrey Altman [Sun, 9 Mar 2008 15:25:01 +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)

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

LICENSE BSD
FIXES 89288 89289

Reference RFC 1183 in the AFSDB documentation.

(cherry picked from commit 6e18cd4108e6367fe9766d5f2cfda48569c9ebbf)

16 years agoDEVEL15-pt-util-com-err-20080308
Simon Wilkinson [Sun, 9 Mar 2008 01:58:49 +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)

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

LICENSE MIT
FIXES 89132

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

16 years agoDEVEL15-windows-installer-rxmaxmtu-setting-20080308
Jeffrey Altman [Sat, 8 Mar 2008 23:39:25 +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)

16 years agoDEVEL15-windows-config-20080308
Jeffrey Altman [Sat, 8 Mar 2008 23:32:44 +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)

16 years agoDEVEL15-windows-syscfg-getifinfo-20080308
Jeffrey Altman [Sat, 8 Mar 2008 23:25:08 +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)

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

LICENSE MIT

do not discard data buffers we wish to keep

(cherry picked from commit 27008912ec2a0526e71f174b9e4e6d8dd1fc8f19)

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

LICENSE MIT

correct a deadlock when calling HaveCallback

(cherry picked from commit c32f5466f0cf7150d8bbe286fa51834108dce63f)

16 years agoDEVEL15-windows-cm-callback-remove-call-mutex-hold-20080308
Jeffrey Altman [Sat, 8 Mar 2008 15:45:02 +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)

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

LICENSE MIT

we need set privilege not query privilege

(cherry picked from commit 526babc882364573be745b717c32fa1da29acaa2)

16 years agoDEVEL15-windows-cm-performance-tuning-200803007
Jeffrey Altman [Fri, 7 Mar 2008 22:24:04 +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)

16 years agoDEVEL15-windows-cm-conn-20080307
Jeffrey Altman [Fri, 7 Mar 2008 22:16:06 +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)

16 years agoDEVEL15-windows-cm-server-interlocked-20080307
Jeffrey Altman [Fri, 7 Mar 2008 22:08:54 +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)

16 years agoDEVEL15-windows-vl-noent-response-20080308
Jeffrey Altman [Fri, 7 Mar 2008 22:04:09 +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)

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

LICENSE MIT

Add a hash value verification check for stat cache entries

(cherry picked from commit 45200a26985678ccad051385f50f94321eb98256)

16 years agoDEVEL15-windows-rxstats-default-20080307
Jeffrey Altman [Fri, 7 Mar 2008 17:42:37 +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)

16 years agoDEVEL15-fakestat-access-for-nautilus-20080307
Simon Wilkinson [Fri, 7 Mar 2008 17:31:28 +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)

16 years agoDEVEL15-windows-smb-writedata-crash-20080307
Jeffrey Altman [Fri, 7 Mar 2008 15:37:26 +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)

16 years agoDEVEL15-windows-interlocked-volume-refcount-20080306
Jeffrey Altman [Fri, 7 Mar 2008 01:14:13 +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)

16 years agoDEVEL15-dafs-restarting-error-change-20080306
Derrick Brashear [Thu, 6 Mar 2008 16:55:46 +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)

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

LICENSE IPL10

avoid malloc failure panic (oops)

(cherry picked from commit f58e08baae0a5ee9be516e9e220a12b78e5bf414)

16 years agoDEVEL15-windows-afsd-misc-20080306
Jeffrey Altman [Thu, 6 Mar 2008 14:34:29 +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)

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

LICENSE IPL10
FIXES 88811

support partitions over 2tb

(cherry picked from commit b651ece9bdb2ea9dc19907a5686e9d084f3c03d6)

16 years agoDEVEL15-windows-scache-mx-to-rw-20080302
Jeffrey Altman [Mon, 3 Mar 2008 04:25:39 +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)

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

LICENSE MIT

remove unused constants, data structures and fields

(cherry picked from commit ba94313f4030184890194c84f8d5c2f3f69f52d1)

16 years agoDEVEL15-windows-asyncstore-again-20080301
Jeffrey Altman [Sat, 1 Mar 2008 19:00:19 +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)

16 years agoDEVEL15-windows-buf-more-clean-vnode-speedups-20080301
Jeffrey Altman [Sat, 1 Mar 2008 18:57:24 +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)

16 years agoDEVEL15-windows-freelance-20080301
Jeffrey Altman [Sat, 1 Mar 2008 17:44:28 +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)