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)
LICENSE IPL10
the lock_fd field of DiskPartition[64] is a file descriptor.
On Windows this is a HANDLE and on *nix platforms an int.
OpenAFS uses the FD_t type to provide platform specific type
info for file descriptors. Use it for the lock_fd field and
the salvageLock in ObtainsSalvageLock().
Finally, the on the wire diskPartition[64] struct in volser/volint.xg
also contains a lock_fd field. This is an on the wire field and
must be left at a fixed width of 32-bits. Since a file descriptor
is not portable across machines we truncate the 64-bit HANDLE value
to fit in the 32-bit lock_fd field when necessary.
(cherry picked from commit a209012f1a3f83959f9df14ebad4aa2b50bacae0)
LICENSE IPL10
GetHandler() sets up a fdset and returns the max socket fd
which is used with select(). Windows ignores the numfd param
(first param) of select() and therefore computing the max fd
value is meaningless. We can avoid a number of casts by
not attempting to treat this value as osi_socket.
(cherry picked from commit aa8d735b8707e2bf9142699fd25034655c821f96)
LICENSE IPL10
include afs/ihandle.h in order to gain access to the FD_t definition
(cherry picked from commit 1d4542f93bae6b59e7d4321c23a2551fa43416ba)