526 Commits

Author SHA1 Message Date
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
Jeffrey Altman
372cd0a653 STABLE14-windows-afscreds-20050814
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)
2005-08-14 12:27:40 +00:00
Jeffrey Altman
3baa6bfe36 STABLE14-windows-afscache-validate-20050806
Ensure that queues that have forward and reverse pointers are
consistent that either both are NULL or neither are.


(cherry picked from commit 4d0a6e73bf46847766512c15d2466627237409e5)
2005-08-06 01:36:11 +00:00
Jeffrey Altman
daccffc7f2 STABLE14-windows-pioctl-update-20050804
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)
2005-08-04 17:06:37 +00:00
Jeffrey Altman
7f9c18c0c2 STABLE14-windows-misc-20050722
Add debug logging to SMB and CM Locking code

Optimize cm_Analyze by only performing a cm_CheckServers on the current
cell instead of all cells

Add code to detect loops to the cm_scache_t validation routines.


(cherry picked from commit ab22c7a587126c100d3c4fe40465f5ba3ebc25f4)
2005-07-23 02:17:42 +00:00
Jeffrey Altman
20307db49d STABLE14-windows-explorer-remove-mountpt-fix-20050719
FIXES 20137

the gui version of fs rmmount was reading random memory.


(cherry picked from commit fb1b339a017936da78e13d4afbeaebcfaa29ef00)
2005-07-19 06:06:59 +00:00
Jeffrey Altman
ecb4be6662 STABLE14-windows-cmdebug-20050715
add TellMeAboutYourself functionality and report on capabilities if they
are known.  Used instead of WhoAreYou when supported by the cache manager.


(cherry picked from commit 3f3fdba33058521bc3f68edf56ef56910d32f0c8)
2005-07-15 13:18:30 +00:00
Jeffrey Altman
2f2ff08767 STABLE14-windows-aklog-tweaks-20050715
* type correction

* formatting

* other cleanup


(cherry picked from commit 1acd90549f183f185ac119096ba8c3fa1dcb3596)
2005-07-15 13:11:02 +00:00
Jeffrey Altman
f6f390e722 STABLE14-windows-config-cache-path-20050715
FIXES 20007

Update AFS Control Panel to display the default cache location based upon
the SYSTEM %TEMP% environment variable.


(cherry picked from commit 1c3d89463e55844de7b22ca80f72ed7fabda66e7)
2005-07-15 12:58:52 +00:00
Jeffrey Altman
407dcfef15 STABLE14-windows-aclent-deadlock-20050713
Discovered a deadlock due to a violation of lock order.  We may not
attempt to obtain a lock on a cm_scache_t mutex while holding the
cm_aclLock.


(cherry picked from commit f21fa57453f4c94690c56cf4933b4eed82d99edc)
2005-07-13 15:29:15 +00:00
Jeffrey Altman
86f3df47e9 STABLE14-pr_init-fix-20050623
remove the pr_Initialize force cell change hack from afskfw lib

====================
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.
====================

for the longest time aklog implementations with automatic pts registration
have included a work around for a bug in pr_Initialize.  The bug fails to
reset the connection when the cell changes.  pr_Initialize has been fixed
so we can remove the hack.


(cherry picked from commit c4b1decf6caacb13db666f516ceaf9b65e4371ab)
2005-07-11 20:03:09 +00:00
Jeffrey Altman
e467598d55 STABLE14-windows-vs2005b2-20050706
Visual Studio 2005 Beta 2 has been released.   As part of this
release Microsoft has tightened the rules for their C++ compliance.

* no longer can a variable declared in a for() statement be used
  outside of the associated command block

* no longer can a function or variable be declared implicitly as
  'int'

* several types such as size_t have become 64-bit values on all platforms

* due to type changes the C++ function names in libraries have changed.
  This requires the use of different .DEF file export lists


(cherry picked from commit c6a736486eb2704efd03082ff067858a198ae6d0)
2005-07-07 01:28:59 +00:00
Jeffrey Altman
8b6b9ef33b STABLE14-windows-afsdb-fix-20050701
Fix AFSDB queries using DNSAPI to always terminate the query string with
a period.


(cherry picked from commit f6d99fbba133ba996610d0c00457408fede942dc)
2005-07-02 03:46:28 +00:00
Jeffrey Altman
1e2c37e070 STABLE14-windows-aklog-naming-20050624
Correct for the behavior of pr_SNameToId() lowercasing the username


(cherry picked from commit a61ff319b7a9cec29b02579c20a338c46a8d2c55)
2005-07-01 20:34:14 +00:00
Jeffrey Altman
1137590d15 STABLE14-windows-logon-20050630
add a registry entry to prevent token destruction at logoff


(cherry picked from commit ed54c889202b51361f3f01df80930e9577baa914)
2005-07-01 19:40:50 +00:00
Robert S Murawski IV
39e5b142b6 STABLE14-windows-nsis-20050628
Support for NSIS 2.07 including named installation configurations
and an Icon for the uninstall entry listed in the Add/Remove Programs
control panel.


(cherry picked from commit 4464c62f92541c8b1f46260d6c4cbdd1ba4cf85f)
2005-07-01 19:40:31 +00:00
Jeffrey Altman
0da0be0cc7 STABLE14-windows-logon-20050613
fix the return value of IsServiceStartPending.

use IsServiceRunning and IsServiceStartPending in the while loop


(cherry picked from commit be485c959856311853303f5633687adb1efc5109)
2005-06-13 15:31:12 +00:00
Jeffrey Altman
8ed358369f STABLE14-windows-installer-updates-20050612
Add asetkey.exe

Add uninstall.exe and associated shortcut to Wix

Fix ability to uninstall loopback adapter on non-English Windows versions

====================
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.
====================

build wix/uninstall directory

====================

use "uninst" for build rule instead of "uninstall"

====================

add "clean" rule

====================

add OpenAFS logo icon


(cherry picked from commit 8f5d90c7cf6137fc5fde1e4063ceb62aeb1abcd1)
2005-06-13 02:07:39 +00:00
Jeffrey Altman
52549010c8 STABLE14-windows-misc-fixes-20050612
if scp is not known when flushing dirty buffers, find it by fid

only free the server list when one was obtained

hold the scp mutex until after the associated bufp flags are updated

only get the volume by id if there is a server callback

map CM_ERROR_ALLOFFLINE to NT Remote Host Down


(cherry picked from commit 06597a0e03faf2f5d4cd8d3f72b93017970b28fd)
2005-06-12 12:45:49 +00:00
Jeffrey Altman
79a6d12991 STABLE14-windows-asetkey-20050612
Add asetkey.exe to the Windows distribution


(cherry picked from commit a08552748100597bea748b17a9ae1b8ddf4a9aa7)
2005-06-12 12:26:15 +00:00
Jeffrey Altman
e24ece5644 STABLE14-windows-afslogon-20050610
replace wfhile(TRUE) with while(afsAutoStart)


(cherry picked from commit a70bec720087aab99909861c346cc59d14107278)
2005-06-10 21:55:12 +00:00
Jeffrey Altman
70921404ca STABLE14-windows-syncop-waiting-20050605
Forgot to remove unneeded flag


(cherry picked from commit be6ccec728bf2cad77f5aad83a706a281baaf9d0)
2005-06-05 14:39:29 +00:00
Jeffrey Altman
bb562cedfb STABLE14-windows-buf-waiting-20050605
The function cm_SyncOp() can cause threads to wait either because there
is a state conflict on the current use of the cm_scache_t object or
a state conflict on the cm_buf_t object.  Waiting is always performed
on the cm_scache_t object.  However, if the conflict was with the cm_buf_t
object there was no method for waking up the thread when the conflict is
cleared.  Now all of the cm_buf_t waiting functions also take a cm_scache_t
and waiting threads are woken if necessary.

cm_scache_t and cm_buf_t objects now have waitCount and waitRequest fields.
The WAITING flag is now cleared by the waking thread who sets waitCount to
zero.

Many improvements to trace logging for these issues.


(cherry picked from commit dfd34687f29ea2c20c5c0438ab4dba11e077f889)
2005-06-05 07:45:31 +00:00
Jeffrey Altman
e584b7b287 STABLE14-windows-undo-20050531
undo last change


(cherry picked from commit fa00cacf48e66c275604d616112e0b74932ace44)
2005-05-31 21:34:26 +00:00
Jeffrey Altman
23eeafd5fd STABLE14-windows-more-races-20050531
a couple of more locations at which cm_SyncOpDone() either was not
called or was called without holding the scache mutex.


(cherry picked from commit 528c511aabaefcafc01361c8038766ce56fe8e45)
2005-05-31 18:36:57 +00:00
Jeffrey Altman
1522febaea STABLE14-windows-logon-cleanup-20050531
remove debugging messages


(cherry picked from commit e844445243f837f9bc2fc52b503af99ecd44427e)
2005-05-31 15:19:06 +00:00
Jeffrey Altman
eb272638c5 STABLE14-windows-stuff-20050529
(1) Replace all calls to getenv() with GetEnvironment().  getenv() does
not read from the real environment but instead from a copy created by
the C RTL.

(2) Add support for preserving Kerberos 5 tickets during the Integrated
Logon process.   Now when Integrated Logon is used, the tickets will
be stored into the default ccache within the user session.

(3) Stress testing at MIT uncovered two code paths that could leave
threads in a permanent sleep state under heavy load.   Calls to
cm_SyncOpDone were added to plug this hole.

====================
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.
====================

Install afscpcc.exe and register the KFWLogon WinLogon Event Handler


(cherry picked from commit 96472a6b3a71d5d5ef57e2481680920a7e006ffe)
2005-05-30 04:58:34 +00:00
Asanka Herath
de570a759b STABLE14-windows-loopback-20050524
Find the loopback adapter installer by hardware ID instead of English name.


(cherry picked from commit 280e10315e00d9f3545bb5176f08c58512385571)
2005-05-24 06:13:06 +00:00
Jeffrey Altman
4223904a09 STABLE14-windows-delonclose-20050522
Fix support for the CreateFile(DELETE_ON_CLOSE) option.


(cherry picked from commit eb7ef65dfa95bbc035a54d15b594a19c1e94335a)
2005-05-22 06:54:21 +00:00
Jeffrey Altman
809edfad29 STABLE14-windows-sync-20050518
synchronize with the 1.3 tree for the 1.3.8300 release
2005-05-18 23:57:01 +00:00
Jeffrey Altman
ddb4722c93 STABLE14-windows-afssvrmgr-20050518
Link resulting executable to kerberos 5


(cherry picked from commit 5b6865886258ea102c90dfb3af65b68d979ef936)
2005-05-18 23:22:41 +00:00
Jeffrey Altman
5e07f578f4 STABLE14-windows-no-gateway-20050429
Remove the AFS gateway option
2005-04-29 20:56:03 +00:00
Jeffrey Altman
1fe1831849 STABLE14-windows-afslogon-20050428
Add new "logon" event handler in order to establish a smb connection
to the AFS client service with the true logon name as early as possible.

====================
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 "logon" event handler in order to establish a smb connection
to the AFS client service with the true logon name as early as possible.

Add "replace_afs.cmd" file
2005-04-28 13:05:45 +00:00