background request functions such as BkgFetch and BkgStore do not
return success or failure. the bkgDaemon thread simply executes
the request and discards it regardless of whether or not the request
was completed. this can result in background store event failing
to be written to the file server.
modify the background request functions to return success or failure.
modify the background daemon to put failed requests back onto the queue
if the reason for failure was transient.
modify the background daemon only to process requests when the servers
for the volume are marked up.
(cherry picked from commit 37d16dd70b)
ensure that log files use CR-LF for end of line. the "fs memdump"
output and the afsd_init.log initialization output were still using LF.
(cherry picked from commit 1e44ef074a)
FIXES 45545
Remove "Drive " from the drive mappings. This way the drive letters
can be selected with a single key press.
(cherry picked from commit 7d6baa2df1)
When looking up a volume by ID or Name, if the volume server data requires
refreshing and the UpdateVolume operation failed, do not leak the refCount.
(cherry picked from commit ab294cfdc5)
even if afsd_service.exe can be shut down the binary might still not
be able to be replaced due to the windows Protection Service.
Use the ReplaceDLL macro
(cherry picked from commit 38d6f48507)
FIXES 51424
include afs/com_err.h for error_message() prototype to prevent crashes
on platforms with 64-bit pointers and 32-bit int
(cherry picked from commit 564d41d96e)
FIXES 52069
If an app tries to open the freelance directory for WRITE then the
default anonymous access privileges, read/lookup, are not sufficient
and cm_HaveAccessRights will fail. Freelance can't get access rights
from anywhere. Therefore, cm_HaveAccessRights should special case
the Freelance directory.
(cherry picked from commit bd5ed7d332)
the cm_CheckNTDelete function was testing the permissions of the
directory and not the permissions of the file being deleted.
This resulted in inconsistencies between the attributes of the
file and the ability to delete it.
this patch also adds a large amount of trace log entries as there
was none in this section of the code before.
(cherry picked from commit f3c4bbd41a)
The salvager on Windows was not being built properly. The fssync-debug.c
main() was being used instead of the salvager.c main(). Remove
fssync-debug.obj from the library and fixup the includes and global
variable declarations.
(cherry picked from commit c4a89f3f79)
Remove the preliminary rxgk and Automake conversion, neither of which are
finished or ready for prime time yet. Having this active in CVS isn't
helpful and is mildly confusing at the moment.
(cherry picked from commit 78880bc5dc)
Plug a volume refcount leak
Add volume data to the "fs memdump" output
Add memmap stat data to the afsd_init.log output at startup and shutdown
(cherry picked from commit f9697113d9)
add new error code when requested InfoLevel is not supported
CIFS NTCreateX Read privilege means PRSFS_LOOKUP when the object is a
directory
(cherry picked from commit 20f4265686)
fix NetInfo "f" line fake IP address support to work when either
1) NetRestrict file is in place or
2) existing sysid file does not list fake address
(cherry picked from commit 2502379d75)
client-handle-vicetokendead-with-reconnect-20070104 failed
to alter the behavior of the RXKADEXPIRED and other cases.
(cherry picked from commit 284668200e)
modify the write-lock permission test so that the UnixMode bits do not
subtract PRSFS_WRITE from the rights when testing PRSFS_WRITE | PRSFS_LOCK.
PRSFS_WRITE implies PRSFS_LOCK so add it
Add new registry value "DeleteReadOnly" to permit deletion of read-only
files. The default is 0. Set to non-zero value to activate.
(cherry picked from commit 290b05b6b6)