There was a race condition associated with maintaining the
CM_FILELOCK_FLAG_CLIENTONLY flag on locks bound to scache entries
for Read Only volumes. Therefore, we remove the use of the flag
and simply test the RO status of the scache entry.
(cherry picked from commit 2dcb1cdc3d6f10b366d2b93970f5f1f83287e157)
Discovered a failure in the state machine. There was no method of
distinguishing between all servers being Down (which is handled by the
background thread) and all volumes being offline (perhaps due to a move).
(cherry picked from commit 465273f096b1a1720ca07638537fd4c65d7d1d8d)
Do not mark locks lost simply because the ExtendLock failed.
A lock is only lost if the server responds with EINVAL indicating
that the lock no longer exists. A lock can be renewed by other clients
that are also using the file. The client can make no assumptions about
the status of a lock based upon the passage of time.
(cherry picked from commit 8445720d36474797b67341991f15771dcb90b236)
Remove Product ID from Makefiles. They will be auto-generated in the
Wix installer.
====================
This delta was composed from multiple commits as part of the CVS->Git migration.
The checkin message with each commit was inconsistent.
The following are the additional commit messages.
====================
Auto-generate Product IDs at build time since each installer has a
unique name. This will allow upgrades to be performed automatically.
(cherry picked from commit b9b6cb7c25cb3bcd4d34d1a52a7915c9ba46df06)
Return the actual locking error such as "access denied" due to lack of 'k'
privileges instead of a sharing violation.
(cherry picked from commit b7d63fe7389e1b984bf29ef680f791837fe63386)
remove an unwanted assertion and move the resetting of scp->serverLock
to -1 into cm_LockMarkSCacheLost() so that others do not forget to set
it. cm_LockMarkSCacheLost() is always called when the scp->mx is held
so it is ok to do so.
(cherry picked from commit 14408c7e88c198d80ce89e90e209f48685da89da)
FIXES 22032
Extend the fields so that more text can be displayed regarding the tokens.
(cherry picked from commit e12837391e2dbbf0cf113f9af64c4daeef6680a3)
many of the shell extension dialogs did not have default pushbuttons
specified which would result in an undesirable end user experience
(cherry picked from commit 28b99d753cbb5ff1dd527a93c8c6ee9c5c5011dd)
The shell extension is unloading as it should but is never being loaded
again. Since we have no clue why and no idea how to debug it, for now,
just prevent it from being unloaded in the first place.
(cherry picked from commit f8bdf475e2260f8c8d70a4ddc053ef3ec086a416)
Fix the server status dialog to properly call CheckServers and
fix CheckServers to properly construct the data structure for the
pioctl call.
(cherry picked from commit c0013b2513b206edded080f0a4cea6e7e96ab281)
Add reporting of the FID, cell, owner and group to the output of "fs exa"
(on Windows only). There is no other means to obtain this data from a
Windows client.
(cherry picked from commit 2b1604240e664da572df922aa84b15b717fcd8ec)
FIXES 21958
For the afscreds program on Windows, if you right click the system tray icon
to display the menu and then click on the taskbar, the menu is not hidden,
but instead is covered by the taskbar.
This is a common issue documented at
http://support.microsoft.com/default.aspx?scid=kb;en-us;135788.
(cherry picked from commit 46e260b9e72925f9f5b2e5cee3159d4c6b02fc05)
Install a Documentation Shortcut as part of the client install.
It is independent of the Supplemental Documentation which is not
required for the release notes.
(cherry picked from commit 69a5db9fda91d5fc7becb85980f2f0595ebe7ed5)
remove the new docs from non-en_US installs.
We need to find someone to perform language conversion.
(cherry picked from commit 7a3dd6f807beb3f516bcbcbe5cb2523fcd464c62)
Add new OAFW Release Notes developed in WinWord 2003. Replaces the
afs-install-notes.txt, msi-deployment.txt and registry.txt files.
====================
This delta was composed from multiple commits as part of the CVS->Git migration.
The checkin message with each commit was inconsistent.
The following are the additional commit messages.
====================
Add new release notes to stable tree
(cherry picked from commit 2c599161dbb255edee27c4fc176a8011408f2b47)
Associate the OpenAFS icon with the Control Panel and Service and
the installers
====================
This delta was composed from multiple commits as part of the CVS->Git migration.
The checkin message with each commit was inconsistent.
The following are the additional commit messages.
====================
Update icon to OpenAFS logo
(cherry picked from commit cc8cfd47bc506396501c9bd2225dd907567e36b7)
remove the logic in cm_Analyze that performs a flush of the server
data and retries when all of the servers are marked down (aka ALLOFFLINE).
Instead return an immediate error to the caller. The servers will be
checked by the background daemon thread and made available when they are.
(cherry picked from commit 18bb5faec22ac8c000b7964eef635a1213500654)
Begin to store the Disk Volume Serial Number and Machine SID in the
AFSCache file for use in detecting system clones. Clones must get
a new UUID for the AFS Client.
(cherry picked from commit 870d414e6c3765ff52a65d1c06fbc5ddfb254f17)
"fs flushall" is like "fs flushvolume" but flushes all data in the cache
====================
This delta was composed from multiple commits as part of the CVS->Git migration.
The checkin message with each commit was inconsistent.
The following are the additional commit messages.
====================
typo
====================
remove extra patch from duplicate pullup
====================
ugh, one more time
(cherry picked from commit 9e348b344dfe9f3940f099beb2acc208fa90a61c)
As stated in the afs-install-notes, the MS Client for Networks should
be enabled on the loopback adapter, so enable it.
Prevent an install failure by not calling CoInitialize twice in the same
thread.
(cherry picked from commit 001f9b9732a3a30ea0c51c12a0f69c400102d7a7)
Apply AFS Client Admins group protect to AFS Shell Extension
Add support for \\afs\<name> to most commands except the symlink methods.
(cherry picked from commit 69a98684f0a85db5618a472835a0e588b01b5d6e)
When updating cell information from DNS, be sure to set a new timeout.
When obtaining cell information from a file, check every two hours to
see if it changed.
(cherry picked from commit 27b81213dfffc5c4d8979f1cc381084d924ea8e1)
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)
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)