Commit Graph

4932 Commits

Author SHA1 Message Date
Mike Meffie
e92f91496a DEVEL15-test-updates-20080331
LICENSE IPL10

update tests directory


(cherry picked from commit a26d7f1403)
2008-03-31 16:54:02 +00:00
Jeffrey Altman
3b16299f87 DEVEL15-windows-aklog-cross-cell-20080330
LICENSE MIT

report the new ID after a successful cross cell registration


(cherry picked from commit 99a29903c8)
2008-03-30 17:21:07 +00:00
Jeffrey Altman
d4c7fd8bcb 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 2169423f68)
2008-03-30 15:13:17 +00:00
Jeffrey Altman
b6a558f579 DEVEL15-windows-vlserver-makefile-20080329
LICENSE MIT

make references to INCFILEDIR consistent


(cherry picked from commit aff582765a)
2008-03-30 05:17:15 +00:00
Jeffrey Altman
a2ee8eafca 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 c6897cee01)
2008-03-30 04:36:55 +00:00
Tracy Di Marco White
d2995e6ef5 DEVEL15-nbsd-update-20080328
LICENSE IPL10
FIXES 92073

fix nbsd30 param file, add nbsd40 param file


(cherry picked from commit 07d806845e)
2008-03-28 17:12:40 +00:00
Jeffrey Altman
1f9e58bb44 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 b2e3e64275)
2008-03-28 14:02:54 +00:00
Douglas Engert
0a37757b2e DEVEL15-krb5-klog-solaris-krb-20080327
LICENSE IPL10
FIXES 91573

no krb5_mcc_ops on solaris krb5. cope


(cherry picked from commit e002118066)
2008-03-27 18:48:46 +00:00
Derrick Brashear
de6e70a121 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 87e959e87d)
2008-03-27 18:40:12 +00:00
Derrick Brashear
786ffec666 DEVEL15-volser-higher-thread-limit-20080327
LICENSE IPL10

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


(cherry picked from commit 7c05046f1f)
2008-03-27 16:20:39 +00:00
Alistair Ferguson
74b71934be 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 6c9647cc61)
2008-03-27 16:16:12 +00:00
Chas Williams
f5e8415f16 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 1cf6c12a07)
2008-03-26 04:17:18 +00:00
Marc Dionne
f64f192d63 DEVEL15-linux-restore-iget-cachemgr-20080326
LICENSE IPL10
FIXES 88000

restore the d_alloc_anon we need


(cherry picked from commit 3f8be40525)
2008-03-26 04:10:39 +00:00
Jeffrey Altman
7598a9b77b DEVEL15-windows-vlserver-include-path-20080323
LICENSE MIT

Fix the INCFILEDIR definition so that the INCFILES actually exist


(cherry picked from commit f377634115)
2008-03-23 14:11:57 +00:00
Jim Rees
1b4bb8aa7c DEVEL15-setuuid-return-20080104
return success (0) from setuuid()


(cherry picked from commit e192814db3)
2008-03-22 04:19:13 +00:00
Marc Dionne
3e000a85ae 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 76494a572e)
2008-03-23 00:53:46 +00:00
Jeffrey Altman
83ed7bd11a 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 887f2869e3)
2008-03-22 00:20:24 +00:00
Jeffrey Altman
e5cbb7c53d DEVEL15-windows-release-notes-20080321
LICENSE MIT

final changes for 1.5.34
2008-03-21 18:09:06 +00:00
Jeffrey Altman
4831ca4187 DEVEL15-windows-notes-20080321
LICENSE MIT

one more item for 1.5.34
2008-03-21 17:17:41 +00:00
Jeffrey Altman
1d1386baa0 DEVEL15-windows-version-20080321
LICENSE MIT

1.5.34 == 1.5.3400.0
2008-03-21 17:02:48 +00:00
Tom Keiser
81601662ca DEVEL15-aix-unix-sockets-fix-200803221
LICENSE IPL10
FIXES 88088

use aix's macro for the size of sockaddr_un


(cherry picked from commit 493afd1e59)
2008-03-21 16:59:14 +00:00
Derrick Brashear
86f385c891 DEVEL15-openafs-1-5-34-20080321
LICENSE IPL10

make 1.5.34
2008-03-21 16:55:37 +00:00
Jeffrey Altman
236a1d9866 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 94f32208af)
2008-03-21 12:22:03 +00:00
Jeffrey Altman
4836af9c97 DEVEL15-windows-notes-20080320
LICENSE MIT

changes implemented in 1.5.34
2008-03-21 05:02:38 +00:00
Jeffrey Altman
e7e3183238 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 77c1e98636)
2008-03-21 04:17:14 +00:00
Jeffrey Altman
1d52c60b22 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 edbde00d6c)
2008-03-20 00:01:59 +00:00
Jeffrey Altman
bfb119fd6e 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 d24b177765)
2008-03-19 20:18:37 +00:00
Jeffrey Altman
381f1bd84e DEVEL15-windows-no-more-afsdifs-20080319
LICENSE MIT

do not include a header that no longer exists


(cherry picked from commit b2667be49d)
2008-03-19 15:36:25 +00:00
Jeffrey Altman
3650d72471 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 e3f9fcdeaa)
2008-03-19 13:59:29 +00:00
Jeffrey Altman
edacd58fb5 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 e6d7e16588)
2008-03-19 13:24:00 +00:00
Jeffrey Altman
5daf503114 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 e7e2a3bd06)
2008-03-18 16:48:31 +00:00
Tom Keiser
2a28bd263f 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 6c81286368)
2008-03-18 16:06:19 +00:00
Kevin McBride
14e1f2c843 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 db4c703131)
2008-03-18 15:58:54 +00:00
Chaskiel M Grundman
334cd2be12 DEVEL15-hpux1123-sysname-detection-20080317
LICENSE IPL10
FIXES 89125

add the 11.23 sysname


(cherry picked from commit 7ffe6a97ff)
2008-03-17 18:07:48 +00:00
Chas Williams
e5f15d72df 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 2c3cbd499a)
2008-03-17 18:03:37 +00:00
Chas Williams
dd59ee88f6 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 eee60dd38d)
2008-03-17 17:57:18 +00:00
Jeffrey Hutzelman
be4d19f2d5 DEVEL15-linux-nfstrans-readme-20080317
LICENSE IPL10

readme for linux nfs translator and extensions


(cherry picked from commit ec5a43b086)
2008-03-17 17:48:53 +00:00
Derrick Brashear
d8d3cee031 DEVEL15-volser-handle-malloc-failure-20080317
LICENSE IPL10

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


(cherry picked from commit 449756f8a2)
2008-03-17 17:14:11 +00:00
Mattias Pantzare
db283db4e4 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 680123d70c)
2008-03-17 16:53:24 +00:00
Steven Jenkins
119cd28bfb DEVEL15-dafs-readme-20080317
LICENSE IPL10

update README to mention DAFS setup and build options


(cherry picked from commit f776cb96f9)
2008-03-17 16:40:00 +00:00
Tom Keiser
951b5aa28b 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 c7bce5882a)
2008-03-17 16:05:28 +00:00
Derrick Brashear
baf164d40a 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 3a84b02172)
2008-03-17 15:38:27 +00:00
Steven Jenkins
9882389401 DEVEL15-demand-attach-docs-20080314
LICENSE IPL10

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


(cherry picked from commit 8cad4305ac)
2008-03-14 18:49:54 +00:00
Jeffrey Altman
cca102a087 DEVEL15-windows-callback-20080314
LICENSE MIT

Protect against a null volp


(cherry picked from commit 6fef8b7429)
2008-03-14 16:55:25 +00:00
Jeffrey Altman
5631232d3d DEVEL15-windows-max-volumes-20080314
LICENSE MIT

Propagate the max volumes value into cm_memmap


(cherry picked from commit 3a0fa5627b)
2008-03-14 16:18:00 +00:00
Tom Keiser
a1ebc6cc31 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 53a57b79b5)
2008-03-14 04:42:52 +00:00
Simon Wilkinson
9906c8745a DEVEL15-lwp-fixprotos-20080313
LICENSE IPL10
FIXES 89857

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


(cherry picked from commit 2d29c51167)
2008-03-13 13:42:19 +00:00
Jeffrey Altman
9bde7c71bf DEVEL15-rx-mutex-interlocked-macros-20080312
LICENSE IPL10

fix from sxw@inf.ed.ac.uk


(cherry picked from commit e1fb328b9a)
2008-03-13 12:58:19 +00:00
Jeffrey Altman
e29dd37849 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 f9cc51fb40)
2008-03-13 04:39:17 +00:00
Marc Dionne
6d2e37db8a DEVEL15-linux-2625-20080312
LICENSE IPL10

add missing bits


(cherry picked from commit 5378bf47ef)
2008-03-13 02:25:37 +00:00