558 Commits

Author SHA1 Message Date
Jeffrey Altman
70f54edf7b STABLE14-windows-byte-range-locks-20051007
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)
2005-10-08 04:51:26 +00:00
Jeffrey Altman
b804886341 STABLE14-windows-busy-vs-offline-20051006
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)
2005-10-07 03:11:17 +00:00
Asanka Herath
9ef646f585 STABLE14-windows-lock-count-fix-20051006
lock counts were not being reduced on file close when the lock was lost.


(cherry picked from commit e8ad124c1622ab8a128b801a662db57ef587af68)
2005-10-06 18:30:46 +00:00
Jeffrey Altman
47ccf39032 STABLE14-windows-byte-range-locks-20051006
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)
2005-10-06 14:50:11 +00:00
Jeffrey Altman
af644a3e83 STABLE14-windows-wix-product-id-20051005
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)
2005-10-05 16:32:34 +00:00
Jeffrey Altman
cc4794101e STABLE14-windows-byte-range-locking-20051005
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)
2005-10-05 14:23:51 +00:00
Jeffrey Altman
781b2f29af STABLE14-windows-byte-range-locks-20050816
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)
2005-10-05 06:12:27 +00:00
Jeffrey Altman
20be86b330 STABLE14-windows-rxstats-20051003
strip the pioctl path from the input before reading the flags


(cherry picked from commit 83d0b569ee0a05d7a0e96de93c73a1be0813e3fa)
2005-10-04 04:17:28 +00:00
Jeffrey Altman
4d0a90839f STABLE14-windows-patch-fix-20051003
Apparently a pullup applied a patch to the wrong function.
Correct it.
2005-10-03 17:34:16 +00:00
Jeffrey Altman
acbaf39f55 STABLE14-windows-afscreds-20051002
FIXES 22032

Extend the fields so that more text can be displayed regarding the tokens.


(cherry picked from commit e12837391e2dbbf0cf113f9af64c4daeef6680a3)
2005-10-03 05:05:56 +00:00
Jeffrey Altman
14ad44bb16 STABLE14-windows-release-notes-take2-20051002
place the text in the correct section


(cherry picked from commit cb39d44cf56f51d6a14a6ba61f4b0662719aac8e)
2005-10-03 03:32:47 +00:00
Jeffrey Altman
1d04747465 STABLE14-windows-release-notes-20051002
Document registry entries for RX stats gathering


(cherry picked from commit 6a643ba40a75ed0a03ddf6986eb6bdd485335f6d)
2005-10-03 03:19:41 +00:00
Jeffrey Altman
9fcd4b9074 STABLE14-windows-shell-ext-default-buttons-20051002
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)
2005-10-02 15:49:39 +00:00
Jeffrey Altman
7e969d3fb5 STABLE14-windows-shell-ext-prevent-unload-hack-20051002
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)
2005-10-02 15:47:20 +00:00
Jeffrey Altman
1167dafbd3 STABLE14-windows-shell-ext-server-status-20051002
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)
2005-10-02 10:08:18 +00:00
Jeffrey Altman
df35acd30e STABLE14-windows-rxstats-20051001
Add interface to rxstats api


(cherry picked from commit f3e2cdb5260e49d5335d37fdab909d360bbe7102)
2005-10-02 07:08:55 +00:00
Jeffrey Altman
daa25fe43d STABLE14-windows-afs-shl-ext-rc-20051002
The DownServers dialog had the wrong resource id associated with the
listbox.


(cherry picked from commit e06475ff424f416086a1b859eb658e0f2ac9ed13)
2005-10-02 05:47:40 +00:00
Jeffrey Altman
ed405f1b72 STABLE14-windows-fs-exa-20051001
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)
2005-10-01 13:11:57 +00:00
Matthew Loar
b36656c672 STABLE14-windows-afscreds-20050930
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)
2005-10-01 05:52:04 +00:00
Jeffrey Altman
290c648391 STABLE14-windows-nsis-20050926
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)
2005-09-27 05:38:38 +00:00
Asanka Herath
b716454865 STABLE14-windows-wix-docs-20050926
Match the documentation location of the NSIS installer.


(cherry picked from commit a1e9273ded1993c528576102fca290663854e0c8)
2005-09-27 03:42:26 +00:00
Jeffrey Altman
06fe869a7c STABLE14-windows-release-notes-20050926
Document MSI Product Codes


(cherry picked from commit 1512b602134bf46d78671628e438a5b7f9155524)
2005-09-27 01:44:35 +00:00
Jeffrey Altman
e267127c15 STABLE14-windows-index-title-fix-20050925
Fix the title to read OpenAFS instead of IBM AFS


(cherry picked from commit a5ec94485bf57826c09be0a3fa44ae610e1cc7e8)
2005-09-26 03:53:07 +00:00
Jeffrey Altman
cc6efce3af STABLE14-windows-nsis-install-c-20050925
remove the new docs from non-en_US installs.
We need to find someone to perform language conversion.


(cherry picked from commit 7a3dd6f807beb3f516bcbcbe5cb2523fcd464c62)
2005-09-26 03:33:51 +00:00
Jeffrey Altman
e780fa0f3b STABLE14-windows-nsis-install-b-20050925
oops, missing '\\'


(cherry picked from commit cd8126f56c27848add91bb1e323ab40457472748)
2005-09-26 03:15:57 +00:00
Jeffrey Altman
178608a372 STABLE14-windows-release-notes-20050925
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)
2005-09-26 03:01:23 +00:00
Asanka Herath
c11c5a5516 STABLE14-windows-wix-install-20050925
Add new HTML release notes to MSI


(cherry picked from commit 93b2789e897c707e37dfaac3a039773e681cdf7f)
2005-09-26 02:20:21 +00:00
Jeffrey Altman
548176864a STABLE14-windows-nsis-install-20050925
Add new release notes to installation


(cherry picked from commit a2e39eb0f239da83dc438806bcb0b4a5ee5e88d8)
2005-09-26 01:57:08 +00:00
Jeffrey Altman
778c0a2cdf STABLE14-windows-icons-20050919
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)
2005-09-20 05:38:33 +00:00
Jeffrey Altman
11e659300d STABLE14-windows-servers-all-down-do-not-retry-20050915
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)
2005-09-16 04:25:19 +00:00
Jeffrey Altman
1d736215c2 STABLE14-windows-detect-uuid-cloning-20050909
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)
2005-09-09 20:49:30 +00:00
Jeffrey Altman
1e0cd8aec9 STABLE14-windows-fs-cleanup-20050909
remove unused variables


(cherry picked from commit 604435daaf23c9883c6ac52c1c3b656ebacbaae7)
2005-09-09 20:44:57 +00:00
Jeffrey Altman
64382cd63a STABLE14-windows-pioctl-debug-20050909
log the pioctl path provided by the caller


(cherry picked from commit 1d83f0e3b725643c32ec211694f554acd9d6777a)
2005-09-09 13:53:17 +00:00
Jeffrey Altman
c0bb6ce3f2 STABLE14-windows-fs-flushall-20050907
"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)
2005-09-07 20:31:26 +00:00
Asanka Herath
6012547dd1 STABLE14-windows-loopback-20050831
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)
2005-09-01 02:56:07 +00:00
Jeffrey Altman
8e16ff6c68 STABLE14-windows-gui2fs-20050831
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)
2005-09-01 01:08:43 +00:00
Jeffrey Altman
4310d6e4d3 STABLE14-windows-cell-expiration-20050831
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)
2005-09-01 01:07:41 +00:00
Jeffrey Altman
8f617747bd STABLE14-windows-freelance-fs-symlink-20050831
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)
2005-08-31 12:00:31 +00:00
Eric Williams
a31993c2aa STABLE14-windows-afslogon-code-init-20050829
Init 'code' to prevent false errors when integrated logon is disabled
and the service is not running


(cherry picked from commit 0b74a7d25c7f164702843b545615f906a6bdebbd)
2005-08-29 20:40:59 +00:00
Jeffrey Altman
cd8e3c2264 STABLE14-windows-default-trace-log-off-20050827
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)
2005-08-28 04:45:14 +00:00
Jeffrey Altman
7c469ff6aa STABLE14-windows-add-tid-to-mutex-20050827
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)
2005-08-28 04:33:24 +00:00
Jeffrey Altman
80b9f5f2de STABLE14-windows-scache-deadlock-fix-20050827
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)
2005-08-28 04:30:57 +00:00
Jeffrey Altman
e51c51eac4 STABLE14-windows-trace-log-to-dbgview-20050820
alter the afsd_init.log tag for the TraceOption to not be
Windows Event Log specific.


(cherry picked from commit 48b0320b201c2efe153098e8a5a5e4e6470a41c5)
2005-08-26 14:48:47 +00:00
Jeffrey Altman
4324a08807 STABLE14-windows-remove-log-messages-20050826
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)
2005-08-26 14:48:07 +00:00
Jeffrey Altman
872a7930d3 STABLE14-windows-better-vol-missing-messages-20050819
Use a different message for each vol error code instead of one for all


(cherry picked from commit 1a2172275920d959bab3f21aacf0689814c83c87)
2005-08-21 01:51:45 +00:00
Jeffrey Altman
382ff1dffd STABLE14-windows-afscreds-deadlock-20050820
found a deadlock in the expiration check if a MessageBox dialog is
being displayed


(cherry picked from commit 84e761d850c4cf5f76dd844e6e6f738a35f88102)
2005-08-21 01:51:35 +00:00
Asanka Herath
c57a00bf88 STABLE14-windows-dfs-support-disable-20050820
remove the trailing 1


(cherry picked from commit df72c49fbadfa6e30538f136aa2dd0a54e58c20d)
2005-08-21 01:51:01 +00:00
Jeffrey Altman
1982814f36 STABLE14-windows-dfs-support-disable-20050817
disable dfs processing until we get the Unicode CIFS support


(cherry picked from commit e465ee95b095d1bea7e37e0aeec0f4a781cf8231)
2005-08-17 19:50:59 +00:00
Jeffrey Altman
a06ede63ca STABLE14-windows-freelance-admin-20050817
When testing for IsFreelance() use the right path for symlink rm and
fs rmmount.


(cherry picked from commit c9bba4c460b54c48fe8ecb1b35fbe2a4efd4ac19)
2005-08-17 17:07:24 +00:00
Jeffrey Altman
805ef3699f STABLE14-windows-smb-error-codes-20050815
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)
2005-08-15 18:29:49 +00:00