Commit Graph

5086 Commits

Author SHA1 Message Date
Jeffrey Altman
aff582765a windows-vlserver-makefile-20080329
LICENSE MIT

make references to INCFILEDIR consistent
2008-03-30 05:16:17 +00:00
Jeffrey Altman
c6897cee01 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.
2008-03-30 04:30:52 +00:00
Tracy Di Marco White
07d806845e nbsd-update-20080328
LICENSE IPL10
FIXES 92073

fix nbsd30 param file, add nbsd40 param file
2008-03-28 17:11:19 +00:00
Jeffrey Altman
b2e3e64275 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.
2008-03-28 14:01:03 +00:00
Derrick Brashear
be49dbe891 pinstall-collateral-damage-20080327
LICENSE IPL10

it's really easy to get into install-sh relative path hell. work around it.
2008-03-28 04:41:00 +00:00
Douglas Engert
e002118066 krb5-klog-solaris-krb-20080327
LICENSE IPL10
FIXES 91573

no krb5_mcc_ops on solaris krb5. cope
2008-03-27 18:48:22 +00:00
Derrick Brashear
87e959e87d ptutil-swap-epoch-version-as-needed-20080327
LICENSE IPL10
FIXES 90869

do byteswapping of epoch and version so we print and compare sensibly
2008-03-27 18:39:57 +00:00
Derrick Brashear
7c05046f1f volser-higher-thread-limit-20080327
LICENSE IPL10

with tvolser we can increase this and actually *see benefit*, so...
2008-03-27 16:20:29 +00:00
Alistair Ferguson
6c9647cc61 dafs-vshutdown-match-id-to-params-20080327
LICENSE IPL10

we track shutdown thread parms as index rather than device; deal correctly
2008-03-27 16:16:02 +00:00
Chas Williams
1cf6c12a07 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.
2008-03-26 04:16:51 +00:00
Marc Dionne
3f8be40525 linux-restore-iget-cachemgr-20080326
LICENSE IPL10
FIXES 88000

restore the d_alloc_anon we need
2008-03-26 04:10:26 +00:00
Jeffrey Altman
f377634115 windows-vlserver-include-path-20080323
LICENSE MIT

Fix the INCFILEDIR definition so that the INCFILES actually exist
2008-03-23 14:10:42 +00:00
Marc Dionne
76494a572e linux-2625-update-20080322
LICENSE IPL10
FIXES 88000

update 2.6.25 patch to hopefully cover what we need better
2008-03-23 00:53:29 +00:00
Jeffrey Altman
887f2869e3 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.
2008-03-22 00:19:03 +00:00
Tom Keiser
493afd1e59 aix-unix-sockets-fix-200803221
LICENSE IPL10
FIXES 88088

use aix's macro for the size of sockaddr_un
2008-03-21 16:59:03 +00:00
Jeffrey Altman
94f32208af 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.
2008-03-21 12:20:21 +00:00
Jeffrey Altman
77c1e98636 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.
2008-03-21 04:15:47 +00:00
Jeffrey Altman
edbde00d6c 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.
2008-03-20 00:00:28 +00:00
Jeffrey Altman
d24b177765 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.
2008-03-19 20:17:04 +00:00
Jeffrey Altman
b2667be49d windows-no-more-afsdifs-20080319
LICENSE MIT

do not include a header that no longer exists
2008-03-19 15:34:48 +00:00
Jeffrey Altman
e3f9fcdeaa 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.
2008-03-19 13:57:36 +00:00
Jeffrey Altman
e6d7e16588 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.
2008-03-19 13:22:02 +00:00
Jeffrey Altman
e7e2a3bd06 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.
2008-03-18 16:44:39 +00:00
Tom Keiser
6c81286368 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
2008-03-18 16:05:09 +00:00
Kevin McBride
db4c703131 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.
2008-03-18 15:58:40 +00:00
Chaskiel M Grundman
7ffe6a97ff hpux1123-sysname-detection-20080317
LICENSE IPL10
FIXES 89125

add the 11.23 sysname
2008-03-17 18:07:36 +00:00
Chas Williams
2c3cbd499a afs-nostats-xstats-start-cmtime-noop-20080317
LICENSE IPL10
FIXES 90528

add missing noop so we can build with stats disabled
2008-03-17 18:02:53 +00:00
Chas Williams
eee60dd38d rx-nacks-increment-with-all-newacks-20080317
LICENSE IPL10

don't "lose" newacks, apply all of them to the ack count
2008-03-17 17:56:38 +00:00
Jeffrey Hutzelman
ec5a43b086 linux-nfstrans-readme-20080317
LICENSE IPL10

readme for linux nfs translator and extensions
2008-03-17 17:48:35 +00:00
Derrick Brashear
449756f8a2 volser-handle-malloc-failure-20080317
LICENSE IPL10

allocate memory for all rx OUT parameters in stubs to avoid crashes.
2008-03-17 17:14:01 +00:00
Mattias Pantzare
680123d70c 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"
2008-03-17 16:51:55 +00:00
Steven Jenkins
f776cb96f9 dafs-readme-20080317
LICENSE IPL10

update README to mention DAFS setup and build options
2008-03-17 16:39:03 +00:00
Tom Keiser
c7bce5882a dafs-accurately-track-inuse-20080317
LICENSE IPL10

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

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

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

====================
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.
2008-03-17 17:06:30 +00:00
Derrick Brashear
3a84b02172 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
2008-03-17 15:38:15 +00:00
Steven Jenkins
8cad4305ac demand-attach-docs-20080314
LICENSE IPL10

Additional documentation for the demand attach file server, plus a state
diagram.
2008-03-14 18:05:00 +00:00
Jeffrey Altman
6fef8b7429 windows-callback-20080314
LICENSE MIT

Protect against a null volp
2008-03-14 16:53:37 +00:00
Jeffrey Altman
3a0fa5627b windows-max-volumes-20080314
LICENSE MIT

Propagate the max volumes value into cm_memmap
2008-03-14 16:16:14 +00:00
Tom Keiser
53a57b79b5 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
2008-03-14 04:41:20 +00:00
Simon Wilkinson
2d29c51167 lwp-fixprotos-20080313
LICENSE IPL10
FIXES 89857

make everything match, and make *ep take void and not a pointer
2008-03-13 13:42:06 +00:00
Jeffrey Altman
e1fb328b9a rx-mutex-interlocked-macros-20080312
LICENSE IPL10

fix from sxw@inf.ed.ac.uk
2008-03-13 12:56:31 +00:00
Jeffrey Altman
f9cc51fb40 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.
2008-03-13 04:37:44 +00:00
Marc Dionne
5378bf47ef linux-2625-20080312
LICENSE IPL10

add missing bits
2008-03-13 02:23:57 +00:00
Jeffrey Altman
f69a15c7a8 windows-client-config-pt-20080311
LICENSE MIT

typo in pt_BR language resource file
2008-03-12 05:46:01 +00:00
Jeffrey Altman
9cc4a8e02c rx-no-interlockedadd-20080311
LICENSE IPL10

InterlockedAdd is only supported on Itanium
2008-03-12 05:12:54 +00:00
Steven Jenkins
0e91773fd7 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.
2008-03-12 01:28:00 +00:00
Jeffrey Altman
c86ae86a53 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.
2008-03-11 18:23:23 +00:00
Simon Wilkinson
ff988ead4e lwp-protoize-20080310
LICENSE IPL10

protoize lwp. make it match pthreads' idea of createprocess
2008-03-11 17:46:58 +00:00
Jeffrey Altman
9473128eb3 windows-lwp-proto-20080311
LICENSE IPL10

Fix breakage caused by recent lwp prototyping.
2008-03-11 17:00:18 +00:00
Derrick Brashear
cadbebc2e5 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?
2008-03-10 18:50:47 +00:00
Jeffrey Altman
2cee2d88a8 windows-client-config-misc-dlg-20080310
LICENSE MIT

The Daemon and Server Threads fields were swapped.
2008-03-10 18:16:29 +00:00