Add support to allow use of \\AFS\<foo> where <foo> is either a mount
point or symlink. As <foo> is normally treated as a share name, we
transform it into \\AFS\all\<foo> for processing.
(cherry picked from commit 682f5ffb21575587123ecbb7a5867d1c5495dd4e)
Init 'code' to prevent false errors when integrated logon is disabled
and the service is not running
(cherry picked from commit 0b74a7d25c7f164702843b545615f906a6bdebbd)
Now that OAFW is ready for a stable series, we will default "fs trace"
to off on non-Debug builds. It can be set to on via the TraceOption
registry value. (see registry.txt)
(cherry picked from commit b9fc404bdf16fc3a61f13bffcaadc5d598d02cbd)
Add to mutex objects the ID of the thread that holds the lock. This
will make future debugging much easier.
(cherry picked from commit c0fea634084ee1c223c611c3ab3955a13d1ba884)
It was reported that Microsoft Word when editing files stored in AFS
would cause OAFW to fail to respond. It was determined that a scp->mx
lock was not being released in buf_WaitIO if the no one was waiting
on the scp.
This patch corrects the deadlock and fixes some debugging messages.
(cherry picked from commit 6620b9452bb3f270ebabc29a910918b1f17225f4)
alter the afsd_init.log tag for the TraceOption to not be
Windows Event Log specific.
(cherry picked from commit 48b0320b201c2efe153098e8a5a5e4e6470a41c5)
The log message added to buf_LockedCleanAsync() during the debugging
post 1.3.8201 is output for 1/10th of all buffers once every 5 seconds.
This is a huge performance hit. Move the message so that it is only
output for buffers that are actually dirty.
Also, change the algorithm so that the sqrt() of the number of buffers
are checked every 5 seconds instead of 1/10th. This will do a better
job with very large cache sizes.
(cherry picked from commit ee937439adc8d8ea214c9d53aee0ee5329697c80)
found a deadlock in the expiration check if a MessageBox dialog is
being displayed
(cherry picked from commit 84e761d850c4cf5f76dd844e6e6f738a35f88102)
FIXES 20912
call afs_InactiveVCache() instead of afs_remunlink()
for unlink, the "inactive" refcount is 1 now instead of 0.
(cherry picked from commit caa4c12b719763c6b35080a6e5f0beaf0d53c406)
Do not return error codes from the SMB/CIFS server that can be interpretted
by the SMB/CIFS client as meaning that the AFS Client Service is not
available.
(cherry picked from commit eb00f913748ba8651755451120a1f0d06b1e9cd2)
When tokens expire, do not display an obtain tokens dialog if there
is no network connectivity to the kdc for the realm associated with
the cell.
In the en_US build, stop displaying the expiration time of tokens
after the tokens expire.
(cherry picked from commit 7c34c9b5c0fbdf0b9b9429c2e763c635857974ab)
Include the ACL value in the FetchACL logging. This combined with
StoreACL can be used to compute ACL changes.
(cherry picked from commit 50c5210a25d34bfc8cf027ccfb098460268911c8)
Ensure that queues that have forward and reverse pointers are
consistent that either both are NULL or neither are.
(cherry picked from commit 4d0a6e73bf46847766512c15d2466627237409e5)
The attached patch restores the behaviour of the 1.2.x client: writes
appending to a file do not trigger a 0-length read which at best updates the
current status. If another cache manager wrote to the same file in the
meantime, the file status is updated only after the StoreData RPC (and for
the changes the last one wins).
change "fs wscell" to report the registry configured cell name when
using freelance mode.
change "fs mkmount|rmmount" to require membership in AFS Client Admins
group when freelance mode is being used
change "symlink make|remove" to require membership in AFS Client Admins
group when freelance mode is being used
Move some smb init debug messages to afsd_init.log
(cherry picked from commit 81b0f9cf1d0335a1e2f8ae897ba9566c1e4962e3)
FIXES 18613
you can end up hanging when you end up with multiple aliases for a single direct
ory (dentry) as a result of @sys or multiple mountpoints.
don't end up with multiple aliases, and avoid the situation
(cherry picked from commit f6ff3f769a8e84e9148c3c47c9e82d1bcb7d6f6a)