LICENSE IPL10
FIXES 88000
update 2.6.25 patch to hopefully cover what we need better
(cherry picked from commit 76494a572e504c426fe9dabc8e68115f7ee6a05c)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
LICENSE IPL10
allocate memory for all rx OUT parameters in stubs to avoid crashes.
(cherry picked from commit 449756f8a26f1b30147851f98ac67b2a2642abf8)
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)
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)
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)
LICENSE IPL10
Additional documentation for the demand attach file server, plus a state
diagram.
(cherry picked from commit 8cad4305acb787500f9434949cfb3c6500f3287b)
LICENSE IPL10
FIXES 89857
make everything match, and make *ep take void and not a pointer
(cherry picked from commit 2d29c51167b50286e94bda35275e62cfc3c04dfd)
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)
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)
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)
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)
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)
LICENSE IPL10
prototype afs_error_message() to ensure correct behavior on 64-bit
systems with 32-bit int.
(cherry picked from commit 84a928ddd46b1b77c655b21ce7e9fc8d775b96db)
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)