694 Commits

Author SHA1 Message Date
Jeffrey Altman
edf2edb7a2 STABLE14-windows-fetchstatus-20061003
Don't call cm_GetCallback without checking the current callback status
with cm_HaveCallback first

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

undo this incorrect change.  don't test for existence of a callback
when we want to force a FetchStatus to obtain per-user ACL info


(cherry picked from commit 665a125335c4844d35fa6510a38083602ef7fdbc)
2006-10-06 17:53:23 +00:00
Jeffrey Altman
8df88c561c STABLE14-windows-log-crlf-20061006
use CR-LF as the afsd.log EOL so that it can be read with notepad.exe


(cherry picked from commit ffe5092c3107afa72696f8d164c3ec587c2255ad)
2006-10-06 17:24:55 +00:00
Jeffrey Altman
883e1ebbe7 STABLE14-windows-wrong-lock-20061003
grab the correct mutex so we don't free one we are not holding


(cherry picked from commit b9fd1d4c7eb672ec092596af7826e87e2d931c40)
2006-10-04 06:30:45 +00:00
Jeffrey Altman
188105abfc STABLE14-windows-track-lock-tid-20061002
Keep track of the tid of the holding thread for writers


(cherry picked from commit b17a5d8192c08909ae57b540b25804ad9e1ae8a3)
2006-10-03 03:46:38 +00:00
Jeffrey Altman
aae045ba1c STABLE14-windows-buf-write-20061002
sq.root of the buffer count is much too small.
comments say 1/10th of all buffers every 5 seconds.
for now let's do what it says
2006-10-03 03:34:53 +00:00
Jeffrey Altman
df29fe1dda STABLE14-windows-scache-ref-leak-20061002
when handling VNOVNODE must release the scache entry.


(cherry picked from commit 62e5dab3d6ea8105cec253b45cef3ebcc0da1930)
2006-10-03 03:28:43 +00:00
Jeffrey Altman
76ec700eb6 STABLE14-windows-loopback-install-20060919
FIXES 40291

Disable DNS Registrations for the Loopback Adapter and make sure
that Netbios is turned on.


(cherry picked from commit 3e28a968e0b916c176b978da2807a7e4857faa18)
2006-09-19 06:50:01 +00:00
Jeffrey Altman
a8d51c2562 STABLE14-windows-dot-dir-part-two-20060906
cm_LookupInternal can return the input stat cache entry when the name
is "."

the DNLC should not cache "." or ".."


(cherry picked from commit a63d753df88e547606f703764031ad1b9d18fa82)
2006-09-06 18:23:56 +00:00
Jeffrey Altman
571165a3fe STABLE14-windows-install-licenses-20060905
port LICENSES file contents to installers


(cherry picked from commit e68b0f9cb4c0216548bdb30cf8f3e93d23491fb8)
2006-09-06 07:24:55 +00:00
Jeffrey Altman
28329caafc STABLE14-windows-dot-dir-20060906
when evaluating paths with cm_NameI treat the component "." as a no-op.


(cherry picked from commit f47b934c133150fef80fec57ae738ca885b8a914)
2006-09-06 07:14:51 +00:00
Jeffrey Altman
cd89cab070 STABLE14-windows-fs-prototypes-20060905
remove unused prototype


(cherry picked from commit b4d8384b6779369faa9c4fd533979f363ef4dc81)
2006-09-06 00:53:12 +00:00
Jeffrey Altman
92cc14bcb3 STABLE14-windows-backconnectionhostnames-20060902
compute the final buffer size correctly.  don't write too much
into the registry when adding additional names.
2006-09-02 12:39:47 +00:00
Jeffrey Altman
4be0881b04 STABLE14-windows-fs-20060831
FIXES 38949

fs sq and fs mkm on Windows didn't behave as on Unix


(cherry picked from commit 0617e067d741d7a75d9a4e3e49a49c4986f9869c)
2006-08-31 12:11:19 +00:00
Jeffrey Altman
85874d4da5 STABLE14-windows-firewall-config-20060830
Enable the firewall detection logic to work on Vista


(cherry picked from commit f56dff0860d5f9a9d92e9a06c1b7cd1728a2844a)
2006-08-30 21:20:19 +00:00
Jeffrey Altman
82fb20bf7b STABLE14-windows-init-log-eol-20060830
change EOL to CR-LF for afsd_init.log


(cherry picked from commit 48471c805ee43192e3d3adf1ffac995c16257903)
2006-08-30 21:10:39 +00:00
Jeffrey Altman
f46941bfcf STABLE14-windows-t2-search-dir-take-two-20060830
log and release held resources
2006-08-30 06:45:12 +00:00
Jeffrey Altman
1aebe929ad STABLE14-t2-dir-search-20060830
return CM_ERROR_INVAL when we don't recognize the infoLevel
2006-08-30 05:45:18 +00:00
Jeffrey Altman
73dda023b0 STABLE14-windows-shell-ext-20060829
How did the afs_shl_ext_XXXX.dll module ever load on any platform?
Since the name afs_shl_ext.dll is not 8.3 we must specify the base name
explicitly.   Otherwise, it won't load.


(cherry picked from commit 56d71eaae70eca2c6065b9cf463c18cc3f6c7356)
2006-08-28 06:09:18 +00:00
Jeffrey Altman
bbd3babf07 STABLE14-windows-cleanup-20060828
cleanup AFS_component_version_number.h the right way


(cherry picked from commit 93cd9cb88c813159712922e3bd46722913834b68)
2006-08-28 05:29:35 +00:00
Jeffrey Altman
38f543b2d6 STABLE14-windows-misc-20060826
(1) verify uidp before use

(2) initialize variables before use
2006-08-26 17:13:43 +00:00
Jeffrey Altman
90b44c19a0 STABLE14-windows-cm_volume-recycling-20060825
do not panic if we reach maxVolumes and there is a volume entry that
can be recycled.


(cherry picked from commit 375a79f2a02ff2c16f9fcc54dba2b51e41b51c05)
2006-08-25 16:25:21 +00:00
Jeffrey Altman
f6bcc12454 STABLE14-windows-release-notes-20060821
Correct links in html

Update to 1.4.2
2006-08-21 06:00:49 +00:00
Jeffrey Altman
819d96843b STABLE14-windows-buf-queue-handling-20060809
don't free objects that are still on the queue.  remove them first.


(cherry picked from commit aa4d289b87cda5790b268bbb44fd7806379d267f)
2006-08-10 03:47:58 +00:00
Jeffrey Altman
2c5f39a145 STABLE14-windows-backconnectionhostnames-fix-20060809
The previous code failed to specify the correct size of the REG_MULTI_SZ
being written to the registry when appending an additional name to the
list of Back Connection Host names.  This would cause the written string
to contain

   FOO\0B

instead of

   FOO\0\BAR\0\0

this caused problems for Windows 2000 lsass.exe which failed to properly
allocate the buffer for RegQueryValueEx and failed to check that it did
not read beyond the buffer.   If the list was not terminated with two
nuls an exception would be thrown that could result in a lock being
orphaned on the NTLMNameTable.  This would in turn prevent authentications
to UNC resources from completing.  As a result, the startup of
afsd_service.exe would fail if a GlobalAutoMapper drive was configured.

The work around is to set the correct value in the registry before
switching machine names or installing/removing the Microsoft Loopback
Adapter.


(cherry picked from commit cca848edb12abea4deb8f676b07182575d61186d)
2006-08-10 03:46:58 +00:00
Jeffrey Altman
3e69568534 STABLE14-windows-smb-no-showerrors-20060803
pop up error dialogs prevent auto shutdown and restart of afsd service
on network adapater error


(cherry picked from commit 2247c0e499df70f2de1797e674ce1035514fc05c)
2006-08-04 00:29:43 +00:00
Jeffrey Altman
a8b8c6d78b STABLE14-windows-afslogon-null-ptr-20060803
FIXES 33962

do not dereference a null pointer effDomain


(cherry picked from commit 3002d38bcd30a1ac20c77a2c30a6858435f6d604)
2006-08-03 22:50:05 +00:00
Jeffrey Altman
1a4cd4a6fc STABLE14-windows-server-ping-20060216
add logging of server addresses, status and capabilities

prevent multiple threads from pinging the same server simultaneously.
instead, threads block and then use the result of the ping that was
already taking place.


(cherry picked from commit 424ae50d1f7dfe0c3557d98f8ae9bc03a8265a21)
2006-08-01 04:22:07 +00:00
Asanka Herath
02b479cbf1 STABLE14-windows-largefile-support-20060623
This patch adds large file support (> 2GB) to the CIFS server and
the cache manager.

It also corrects a significant oversight where the definition of
struct rx_call was inconsistent due to a failure to define AFS_PTHREAD_ENV
prior to including rx.h in all source files.  This prevented all errors
during rx_Read and rx_Write to be ignored.


(cherry picked from commit 015f9ce287c22df7a0b967ee0357d0816b4e0e54)
2006-07-31 23:13:14 +00:00
Jeffrey Altman
5642ff5848 STABLE14-ubik-call-sucks-20060704
make ubik_Call removal work on Windows.


(cherry picked from commit 941ac04165a9239a11b4ab908350dbfae24edfb9)
2006-07-31 22:51:17 +00:00
Jeffrey Altman
9de260a4c7 STABLE14-windows-remove-bad-asserts-20060728
remove assert()s that should simply be if()


(cherry picked from commit a4211966d7f9d16dd2f93c9122ba09b4920dfd8e)
2006-07-28 03:08:41 +00:00
Jeffrey Altman
41da99898e STABLE14-windows-integrated-logon-20060726
delta windows-integrated-logon-20060724 would cause Windows 2000
 systems to blue screen with an exception in winlogon.exe.


(cherry picked from commit 3167f707fdf582c8ca851a353ca0c82b92ccc947)
2006-07-26 13:54:36 +00:00
Jeffrey Altman
0bf95ab57b STABLE14-windows-integrated-logon-20060724
* apply ACL restrictions to credential cache immediately after
   initialization

 * move file from system temp directory to user temp directory
   prior to starting executable as user to perform credential
   import


(cherry picked from commit 1a0329fef030fedce3fb12d9c641825b0d49f053)
2006-07-24 15:11:30 +00:00
Jeffrey Altman
68169f767c STABLE14-windows-wix-2_0_4221-20060718
* Updates to WIX installer to support the 2.0.4221 build

 * Removes unnecessary files from Release Notes


(cherry picked from commit 436e8fe17b2051db806e386db86b3de789afb2f0)
2006-07-18 18:00:35 +00:00
Jeffrey Altman
337ab068b4 STABLE14-windows-wait-rx-hard-dead-time-20060710
Don't timeout based upon the LAN Workstation Session Timeout value.
Instead wait for the rx hard dead timeout.


(cherry picked from commit 8f2aba65819a668fc4a78c0ab929932c23cbc381)
2006-07-10 20:25:41 +00:00
Jeffrey Altman
0efa9141e7 STABLE14-windows-release-notes-20060706
Update the release notes for the 1.4.2 build.  Generate from WinWord
as "filtered html".  This should make the files smaller.
2006-07-07 02:15:19 +00:00
Jeffrey Altman
d48cc9d32a STABLE14-windows-afslogon-pr_end-20060702
* do not attempt to copy kfw krb5 creds if integrated logon disabled

* disable use of automatic registration from afslogon.dll.  calling
  pr_Initialize() results in rx_Init() being called which creates
  threads that prevent safe unloading of the dll.  This is causing
  crashes in third party applications that call CreateProcessAsUser()
  which in turn temporarily loads afslogon.dll.

* add life_to_time to afskfw.c in order remove the link to the rxkad
  and des libraries


(cherry picked from commit 61df8d9fc834b87d758d8581e73fa7c05198ecf4)
2006-07-03 02:20:45 +00:00
Jeffrey Altman
19e7a9b587 STABLE14-windows-nsis-sdk-20060702
Move SDK to Program Files\OpenAFS\SDK


(cherry picked from commit 5accc48e1b0db55c56ba64abe0450d511c0fdf2a)
2006-07-03 02:16:57 +00:00
Jeffrey Altman
55f0f45a09 STABLE14-windows-uninitialized-vars-20060627
uninitialized pointers when dereferenced do bad things


(cherry picked from commit a8e481ddd92744944d2b06fd5c8ed28383297f6a)
2006-06-27 22:56:12 +00:00
Jeffrey Altman
f2c56c5568 STABLE14-windows-cleanup-20060625
cleanup AFS_component_version_number.h


(cherry picked from commit 0b9b02178e7a3d8df39fec9c83f8b49230ce30d9)
2006-06-25 17:56:30 +00:00
Jeffrey Altman
fbf29b6193 STABLE14-windows-nsis-help-files-install-location-20060625
place the help files in the correct location


(cherry picked from commit bfa26d1ddfc7727a9f8c2e79c8d608c586823a12)
2006-06-25 15:55:35 +00:00
Jeffrey Altman
613db5946c STABLE14-windows-report-quota-diskfull-20060624
overquota and diskfull errors are detected while writing dirty buffers
to the file server.  A flag is set on the scp so that the error can
be returned to the caller.  cm_FSync was clearing the flag without
returning the error. This permitted calls to Win32 WriteFile to report
success even when they failed.


(cherry picked from commit 8e0033ba73ef9551cb24052ef90db677e4adad50)
2006-06-25 02:49:59 +00:00
Asanka Herath
385c742df5 STABLE14-windows-wix-help-files-install-location-20060623
place the help files in the correct location


(cherry picked from commit e264711295275b7b1372e701bf106cf75b342007)
2006-06-24 04:05:44 +00:00
Jeffrey Altman
bb5a4fa334 STABLE14-windows-cm_syncop-buflocked-20060622
If cm_SyncOp is called with the buffer locked, it must be returned
locked even on error.


(cherry picked from commit ae9a07a8e0a5d0e83e138ef9bbd71b3e7e0072ea)
2006-06-23 04:37:57 +00:00
Jeffrey Altman
cb4150d060 STABLE14-windows-no-freelance-vldb-failover-20060622
When Freelance mode is not in use the cache manager must load the root.afs
volume of the default cell in order to be able to start.   Unfortunately,
if the first vlserver fails the request to obtain the volume information
will timeout and no retries will be performed.  This patch performs up
to 10 retries in the initialization code in order to enable the vlservers
to be marked down so that failover can occur.


(cherry picked from commit 4859232df55c94232a70d602cafe6a8bcc72d9dd)
2006-06-22 22:50:13 +00:00
Jeffrey Altman
df04a8b342 STABLE14-windows-scache-recycle-fix-20060608
do not special case freelance entries


(cherry picked from commit 40b690803a928da8bf25b1e03745e95f14fd1743)
2006-06-08 22:19:17 +00:00
Jeffrey Altman
5b8839a185 STABLE14-windows-cifs-std-info-take-two-20060607
The "is a directory" value was being set one field beyond the end of
the Standard Info reply structure.


(cherry picked from commit 2c20a3d603fcc654759b8c90924f36468f8aae81)
2006-06-08 00:30:18 +00:00
Jeffrey Altman
86bb89598c STABLE14-windows-smb-mountpt-is-dir-20060606
Be consistent about reporting mountpoints and invalid links as directories
to the CIFS client.


(cherry picked from commit 422f2d4523ae9be2ff3f1395db1dd62b0b3a3b4b)
2006-06-06 17:58:50 +00:00
Jeffrey Altman
b0410b3dc4 STABLE14-windows-makefile-clean-20060606
cleanup additional files


(cherry picked from commit 81cd89320fe855d22f91bda461dd5cdba147b671)
2006-06-06 15:52:20 +00:00
Jeffrey Altman
a2816a4047 STABLE14-windows-scache-recycle-20060603
A deadlock was detected when performing "fs flushall" if the file
server reports VNOVNODE.   The scp->createBufferLock is already
held by the current thread and there is no mechanism to propagate
the knowledge.  Therefore, an alternate mechanism for clearing the
cache must be developed.  A new function cm_RecycleSCache(scp,flags)
has been extracted from cm_GetNewSCache().  This function performs
the task of recycling an cm_scache_t object.  When called from
cm_GetNewSCache() with no flags the expectation is that there are
no associated buffers that are queued to be read or written.  When
called from cm_Analyze() with the CM_SCACHE_RECYCLEFLAG_DESTROY_BUFFERS
flag, any queued buffers will be de-queued and marked as if the operations
were performed so the data can be discarded.

This patch also addresses the following issues:

* CM_ERROR codes were logged as "unknown" by cm_Analyze.

* In response to VNOVNODE, the parent is only discarded if the current
  cm_scache_t is not a directory.

* In the Ioctl FlushFile and FlushVolume functions, there were no
  checks to protect against flushing the Freelance SCache entries.

* In FlushFile, the wrong cm_scache_t object was being released.

* In cm_GetNewSCache, do not allow Freelance SCache entries to be
  recycled.  Choose a new entry if cm_RecycleSCache fails.


(cherry picked from commit f4f09d1c03cf738de6f73fc9d56502babd6743b4)
2006-06-03 18:57:12 +00:00
Jeffrey Altman
953d64b138 STABLE14-windows-smb-fid-mx-lock-20060602
add a lock that was lost during the pullups before 1.4.1c
2006-06-02 16:39:42 +00:00