When SMB sessions are prematurely terminated as part of the tear down
of the virtual circuit we must clean up any remaining file handles,
tree connections, and user sessions.
(cherry picked from commit 78c40badbd8c65d82f6c384fdff8056c03100b67)
* Update architectural documentation
* Allow locks to be obtained as soon as it is possible instead of
enforcing a requirement that locks be granted in order.
* Fix other bugs
* Disable byte range lock processing
(cherry picked from commit f057d9515c72609e4ca9e51ff96f658689679497)
If osi_InitDebug() fails due to RPC_S_NO_PROTSEQS, log to the afsd_init.log
file a warning indicating that the registry should be examined for a
misconfiguration of Windows.
(cherry picked from commit 8204b5968c0181e094f8369b94c5a4cf1a9de04a)
prevent a panic condition if "fs setserverprefs -vlserver" is executed
more than once before the vlserver is associated with a cell.
(cherry picked from commit b99bd38da60f374a03382090fdaae906a00c8428)
correct the construction of the client name (with realm) when krb524
is being used.
(cherry picked from commit eeee5a9e14a693538a62565483db8f1b3d46cc99)
Initialize 'code' to non-zero at the top of each loop to avoid
setting the last updated timestamp on skipped locks
(cherry picked from commit 030ecf1af9773c0e058ded784dd096fc886fd6d8)
When afscreds.exe performs a drive map renewal it should not delete
all existing drive mappings. This undoes the efforts of the AFS
logon network provider and any persistent mappings created with the
explorer shell. This patch extends the interface to provide a mode
in which DoMapShareChange does not remove unknown drive mappings.
(cherry picked from commit 5ce322c9f13522cf96addaf09804021c6d78b22f)
add logic to process VNOVNODE in cm_Analyze. Force re-evaluation of symlink
strings and flush the stat cache entry.
force the use of new rx_connections when the server is marked down.
prevent server objects from being freed if user preferences are set.
remember to release all of the locks we obtained from the file server
at shutdown.
(cherry picked from commit 685ba16a0b9db8cf5df2e875ff9a6e5b72d6539c)
A windows specific file locking test app for exercising the byte range
locking code.
(cherry picked from commit 8cf272e5f16abfe6b90b01bc613bf7f47bc4336c)
the windows client was not treating Verror responses from the server
as indicating the server as up if they were positive
(cherry picked from commit eaa142645227b1af8a7d41f8b9c376ddf789c532)
the daemon up server check was set for 1 hour and not ten minutes.
turned all interval constants into variables so that they can be
set via registry entries at a future time.
(cherry picked from commit 288886618b347cdd2d4bfaa06a2df18b1a24229e)
If a request is received to create the root directory of a device,
return CM_ERROR_EXISTS instead of CM_ERROR_NOTFOUND for the nul-string
file name.
(cherry picked from commit 47cc7643e1b04bacd858a3893accab8c377b34ac)
The large integer support was applying a <<32 to a 32-bit value.
This is an undefined operation.
(cherry picked from commit 8b0b064f7ec60d8b5913248c97553ce3b7fdb775)
cm_Lock(), cm_RetryLock() should not interpret servers be unreachable as
a sharing violation.
(cherry picked from commit 9f0f50a2b165392fc0a62f82d8c54e35108ab429)
add a monitor to watch for IP Address changes. When a change is detected,
wait 2.5 seconds for things to settle down and then check to see if down
servers are reachable.
(cherry picked from commit a923af27265c8d0aa359d57c8c47b50eb0dbeee3)
Windows Firewall Policy cannot be accessed by a service unless from the
Service Manager thread nor until the service is in a RUNNING state.
Firewall configuration moved to cm_Daemon() thread.
(cherry picked from commit cd98a20f1c9e89eb44ef5c5349337292bd3ba243)
FIXES 4623
Pattern matching was broken. '?' should match zero characters if it
appears before a '.' or at the end of the file name.
(cherry picked from commit 41fe908bead6b30e41fd9e4f5084cd5e1dc3ca4a)
two cm_InitReq() calls were in the wrong place opening the possibility for
stack corruption
(cherry picked from commit ec38f9ed3236005114292f08d1c77891aa3a36d3)
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)