LICENSE MIT
Switch the PathInAfs test to use VIOCGETFID instead of VIOC_GET_CELL_NAME
so that the literal option can be used.
(cherry picked from commit fd0f1f49f27b5f92547a0d15e23efd3b2e46376d)
LICENSE MIT
FIXES 124742
Change the PathInAfs test to use VIOCGETFID instead of VIOC_GET_CELL_NAME.
VIOCGETFID permits a literal test of the specified object. This is needed
for testing the validity of a symlink to a msdfs: or non-existent path.
Otherwise, the AFS Shell Extension context menu will not be displayed.
(cherry picked from commit 621719905806a5883be5a17ca1af0d1929b874e3)
LICENSE IPL10
make all server man pages list -allow-dotted-principals (rather than
-allow-dotted-principal)
(cherry picked from commit c8ac7d1c499150b3f82a6566e9bbdb7478ddd469)
LICENSE MIT
Now that BackConnectionHostNames can be set each time the smb listener
threads are stopped and restarted, we need to make sure that we do not
clear the DisableLoopbackCheck value if it was set during the same
service session because BackConnectionHostName value changes only take
effect on a reboot.
(cherry picked from commit c4006edf4022e4f80cda5afd427d43997299c890)
LICENSE IPL10
FIXES 124130
rename mrafs commands into their equivalent osd versions; structures etc are the
same.
(cherry picked from commit 8655541d1eb6ea7d935f50d9256e12bf90db5045)
LICENSE IPL10
vos hides "online", "offline", "delentry -noexecute", and "addsite -valid".
All of these are currently documented in the man pages without warning.
Reveal them.
(cherry picked from commit 4836fd1e374c30b5e3be72e73b3dbd21c0c98548)
LICENSE IPL10
FIXES 124657
make dprintf be afs_dprintf to fix for fedora 11 and probably others
(cherry picked from commit 2f5ac61b0a8775c58536ee954f2208ab88d0b225)
LICENSE IPL10
FIXES 124592
make proc dir entry owner field only be initialized when it exists
(cherry picked from commit aea52af634dd20c1cff1a6347ac24770ae727328)
LICENSE MIT
Move configureBackConnectionHostNames() to smb_StartListeners()
so that when the NetbiosName changes while the service is running
the new values can be set.
Add configureExtendedSMBSessionTimeouts() which configures new
SMB functionality added in a Win2003 post-SP2 hot fix.
(cherry picked from commit b4b61821081d809bb3a737f9e23964f4f99b3c58)
LICENSE IPL10
FIXES 124579
avoid potentially writing beyond allocated memory if a return is larger than expected
(cherry picked from commit 62bca1123fb471ca1eec58b448fd39f7f797638a)
LICENSE MIT
Add code to support determining if a drive substitution refers to
a UNC path.
(cherry picked from commit 9a0b3da255032f177dfedb650c7a0b65cff24fba)
LICENSE MIT
replace the VOLSTAT online test with the PATH_AVAILABILITY
online test. We do not care of the volume is offline on the file
server if the cache manager has current data to serve.
(cherry picked from commit 59945d1cb5f14baf9ab0008990079e1dde9a796d)
LICENSE MIT
For CM_ERROR_BADSHARENAME return BAD_NETWORK_PATH instead
of BAD_NETWORK_NAME. The latter refers to the server name
and the former to the share name. Returning BAD_NETWORK_NAME
will causes the smb redirector to break its connection to \\AFS.
For CM_ERROR_ALLOFFLINE and CM_ERROR_ALLDOWN return PATH_NOT_FOUND
instead of BAD_NETWORK_PATH. We don't want the smb redirector
to tear down all open files just because some volume in the path
is inaccessible at the moment.
(cherry picked from commit ffe04f710b41120f1bbd843c73ee2d95bc179d9c)
LICENSE MIT
Any use of OutputDebugString() in production can result in serious
delays in the execution of the thread that issues the call. Remove
the last of the unprotected calls within afsd_service.
(cherry picked from commit f6b4902daeb731eb01de44464476cb0a3edb26b1)
LICENSE IPL10
permit compilation with Windows SDK v6.0/6.1 which hides
previously exposed XP symbols unless _WINNT_WIN32 is at
least 0x0501
(cherry picked from commit fc408da993e753d33336ab408167383a75ed97f0)
LICENSE MIT
remove extraneous echo command output
do not attempt to build NSIS target on non-x86 platforms
since support is not implemented
(cherry picked from commit 27aedf7a2cfb04f49b6b8f3c9cabc3d6cdb91c78)
LICENSE MIT
permit "nmake -f ntmakefile clean" to complete on a
clean source tree.
(cherry picked from commit 8673c0de48140b8cd148bf3ea47094968ffbda8b)
LICENSE MIT
Define INCLUDE variable and reorder binary link order
to ensure compatibility with latest WDK/SDK combinations.
(cherry picked from commit d86247619136d3080eb6be08fd8c077bc2afc68b)
LICENSE MIT
Add more info about the smb request to the log entry
that is written to afsd_init.log if the request took
longer than 45 seconds to complete.
(cherry picked from commit 520fef4278bd43073782e1c75f67900f96fa6ddf)
LICENSE MIT
Change the default priority class for afsd_service.exe to High.
This matches the priority class assigned to other system processes
that generate requests to afsd_service.exe.
Permit the ..\TransarcAFSDaemon\Parameters "PriorityClass"
registry value to be used to change the default.
(cherry picked from commit 37f582326c1c5d5363a988f7038af0b62d0fb3ea)
LICENSE MIT
make use of xdr_free() to release memory allocated within afsrpc.dll.
this prevents crashes when the library is built with a different
runtime library version than the application.
fix signed/unsigned warnings in the same code snippet
(cherry picked from commit 3d81394f9106b187c28e35328676e11b662025c6)
LICENSE MIT
add xdr_free() and export it from afsrpc.dll. This permits applications
to free memory allocated within the xdr routines with the same run time
library memory management routines as was used to allocate it.
This is necessary on Windows to prevent memory corruption.
VL_GetAddrsU() is an example where a xdr array is allocated in the
library and must be freed by the application.
(cherry picked from commit d7749751df230d919188546106b61bd2dbb8974c)
LICENSE MIT
For each SMB transation log the 'mid' field of the smb packet.
The 'mid' field can be used as a reference against the mrxsmb request
logging for debugging purposes.
(cherry picked from commit 07c187c84384635413e6353dc9913a8826f25bb5)
LICENSE MIT
remove the smb reset all VCs message. duplicates the
reportSessionStartups functionality.
(cherry picked from commit 4bc36a697fffe78cc0ec93cb9cf98772aeadfcb6)
LICENSE MIT
Increase max symlink limit to 64 and remove the repeated fid
recursion test. Breaks too many things.
(cherry picked from commit 27609fe288eb20f30e1f17a709a07468a74372eb)
LICENSE IPL10
Do not permit the word "new" to be used for a field name as it is
special. Our headers get pulled into C++ compilations.
(cherry picked from commit 977674dfb0470de693e5e7700c614c3b68317efa)
LICENSE IPL10
remove many warnings
disable on Windows since there are missing dependencies in ntops.c
(cherry picked from commit db844c458457a0bbcff81e9dbff362784db6958a)
LICENSE IPL10
in this case we're discarding just the data in case it's stale, so this is
correct
(cherry picked from commit 9243308990dc93ef3f42b9d024b9b02568881468)