__Enter
{
- AFSDbgLogMsg( AFS_SUBSYSTEM_LOCK_PROCESSING,
+ AFSDbgTrace(( AFS_SUBSYSTEM_LOCK_PROCESSING,
AFS_TRACE_LEVEL_VERBOSE,
"AFSAddConnection Acquiring AFSProviderListLock lock %p EXCL %08lX\n",
&pRDRDevExt->Specific.RDR.ProviderListLock,
- PsGetCurrentThread());
+ PsGetCurrentThread()));
if( ConnectCB->AuthenticationId.QuadPart == 0)
{
ConnectCB->AuthenticationId = AFSGetAuthenticationId();
- AFSDbgLogMsg( AFS_SUBSYSTEM_NETWORK_PROVIDER,
+ if ( ConnectCB->AuthenticationId.QuadPart == 0)
+ {
+
+ AFSDbgTrace(( AFS_SUBSYSTEM_NETWORK_PROVIDER,
+ AFS_TRACE_LEVEL_ERROR,
+ "AFSAddConnection Unable to retrieve authentication id\n"));
+
+ return STATUS_ACCESS_DENIED;
+ }
+
+ AFSDbgTrace(( AFS_SUBSYSTEM_NETWORK_PROVIDER,
AFS_TRACE_LEVEL_VERBOSE,
"AFSAddConnection Retrieved authentication id %I64X\n",
- ConnectCB->AuthenticationId.QuadPart);
+ ConnectCB->AuthenticationId.QuadPart));
}
AFSAcquireExcl( &pRDRDevExt->Specific.RDR.ProviderListLock,
if( ConnectCB->LocalName != L'\0')
{
- AFSDbgLogMsg( AFS_SUBSYSTEM_NETWORK_PROVIDER,
+ AFSDbgTrace(( AFS_SUBSYSTEM_NETWORK_PROVIDER,
AFS_TRACE_LEVEL_VERBOSE,
"AFSAddConnection ALREADY_CONNECTED remote name %wZ Local %C authentication id %I64X\n",
&uniRemoteName,
ConnectCB->LocalName,
- ConnectCB->AuthenticationId.QuadPart);
+ ConnectCB->AuthenticationId.QuadPart));
+
+ *ResultStatus = WN_ALREADY_CONNECTED;
}
else
{
- AFSDbgLogMsg( AFS_SUBSYSTEM_NETWORK_PROVIDER,
+ AFSDbgTrace(( AFS_SUBSYSTEM_NETWORK_PROVIDER,
AFS_TRACE_LEVEL_VERBOSE,
"AFSAddConnection ALREADY_CONNECTED remote name %wZ Local (NULL) authentication id %I64X\n",
&uniRemoteName,
- ConnectCB->AuthenticationId.QuadPart);
- }
+ ConnectCB->AuthenticationId.QuadPart));
- *ResultStatus = WN_ALREADY_CONNECTED;
+ *ResultStatus = WN_SUCCESS;
+ }
*ReturnOutputBufferLength = sizeof( ULONG);
- try_return( ntStatus);
+ try_return( ntStatus = STATUS_SUCCESS);
}
//
if( ConnectCB->LocalName != L'\0')
{
- AFSDbgLogMsg( AFS_SUBSYSTEM_NETWORK_PROVIDER,
+ AFSDbgTrace(( AFS_SUBSYSTEM_NETWORK_PROVIDER,
AFS_TRACE_LEVEL_VERBOSE,
"AFSAddConnection BAD_NETNAME 1 remote name %wZ Local %C authentication id %I64X\n",
&uniRemoteName,
ConnectCB->LocalName,
- ConnectCB->AuthenticationId.QuadPart);
+ ConnectCB->AuthenticationId.QuadPart));
}
else
{
- AFSDbgLogMsg( AFS_SUBSYSTEM_NETWORK_PROVIDER,
+ AFSDbgTrace(( AFS_SUBSYSTEM_NETWORK_PROVIDER,
AFS_TRACE_LEVEL_VERBOSE,
"AFSAddConnection BAD_NETNAME 1 remote name %wZ Local (NULL) authentication id %I64X\n",
&uniRemoteName,
- ConnectCB->AuthenticationId.QuadPart);
+ ConnectCB->AuthenticationId.QuadPart));
}
*ResultStatus = WN_BAD_NETNAME;
if( ConnectCB->LocalName != L'\0')
{
- AFSDbgLogMsg( AFS_SUBSYSTEM_NETWORK_PROVIDER,
+ AFSDbgTrace(( AFS_SUBSYSTEM_NETWORK_PROVIDER,
AFS_TRACE_LEVEL_VERBOSE,
"AFSAddConnection BAD_NETNAME 2 remote name %wZ Local %C authentication id %I64X\n",
&uniRemoteName,
ConnectCB->LocalName,
- ConnectCB->AuthenticationId.QuadPart);
+ ConnectCB->AuthenticationId.QuadPart));
}
else
{
- AFSDbgLogMsg( AFS_SUBSYSTEM_NETWORK_PROVIDER,
+ AFSDbgTrace(( AFS_SUBSYSTEM_NETWORK_PROVIDER,
AFS_TRACE_LEVEL_VERBOSE,
"AFSAddConnection BAD_NETNAME 2 remote name %wZ Local (NULL) authentication id %I64X\n",
&uniRemoteName,
- ConnectCB->AuthenticationId.QuadPart);
+ ConnectCB->AuthenticationId.QuadPart));
}
*ResultStatus = WN_BAD_NETNAME;
if( ConnectCB->LocalName != L'\0')
{
- AFSDbgLogMsg( AFS_SUBSYSTEM_NETWORK_PROVIDER,
+ AFSDbgTrace(( AFS_SUBSYSTEM_NETWORK_PROVIDER,
AFS_TRACE_LEVEL_VERBOSE,
"AFSAddConnection BAD_NETNAME 3 remote name %wZ Local %C authentication id %I64X\n",
&uniRemoteName,
ConnectCB->LocalName,
- ConnectCB->AuthenticationId.QuadPart);
+ ConnectCB->AuthenticationId.QuadPart));
}
else
{
- AFSDbgLogMsg( AFS_SUBSYSTEM_NETWORK_PROVIDER,
+ AFSDbgTrace(( AFS_SUBSYSTEM_NETWORK_PROVIDER,
AFS_TRACE_LEVEL_VERBOSE,
"AFSAddConnection BAD_NETNAME 3 remote name %wZ Local (NULL) authentication id %I64X\n",
&uniRemoteName,
- ConnectCB->AuthenticationId.QuadPart);
+ ConnectCB->AuthenticationId.QuadPart));
}
*ResultStatus = WN_BAD_NETNAME;
if( ConnectCB->LocalName != L'\0')
{
- AFSDbgLogMsg( AFS_SUBSYSTEM_NETWORK_PROVIDER,
+ AFSDbgTrace(( AFS_SUBSYSTEM_NETWORK_PROVIDER,
AFS_TRACE_LEVEL_VERBOSE,
"AFSAddConnection Adding connection remote name %wZ Local %C authentication id %I64X\n",
&uniRemoteName,
ConnectCB->LocalName,
- ConnectCB->AuthenticationId.QuadPart);
+ ConnectCB->AuthenticationId.QuadPart));
}
else
{
- AFSDbgLogMsg( AFS_SUBSYSTEM_NETWORK_PROVIDER,
+ AFSDbgTrace(( AFS_SUBSYSTEM_NETWORK_PROVIDER,
AFS_TRACE_LEVEL_VERBOSE,
"AFSAddConnection Adding connection remote name %wZ Local (NULL) authentication id %I64X\n",
&uniRemoteName,
- ConnectCB->AuthenticationId.QuadPart);
+ ConnectCB->AuthenticationId.QuadPart));
}
//
ConnectionResult->Version = AFS_NETWORKPROVIDER_INTERFACE_VERSION_1;
- AFSDbgLogMsg( AFS_SUBSYSTEM_LOCK_PROCESSING,
+ AFSDbgTrace(( AFS_SUBSYSTEM_LOCK_PROCESSING,
AFS_TRACE_LEVEL_VERBOSE,
"AFSCancelConnection Acquiring AFSProviderListLock lock %p EXCL %08lX\n",
&pRDRDevExt->Specific.RDR.ProviderListLock,
- PsGetCurrentThread());
+ PsGetCurrentThread()));
if( ConnectCB->AuthenticationId.QuadPart == 0)
{
ConnectCB->AuthenticationId = AFSGetAuthenticationId();
- AFSDbgLogMsg( AFS_SUBSYSTEM_NETWORK_PROVIDER,
+ if ( ConnectCB->AuthenticationId.QuadPart == 0)
+ {
+
+ AFSDbgTrace(( AFS_SUBSYSTEM_NETWORK_PROVIDER,
+ AFS_TRACE_LEVEL_ERROR,
+ "AFSCancelConnection Unable to retrieve authentication id\n"));
+
+ return STATUS_ACCESS_DENIED;
+ }
+
+ AFSDbgTrace(( AFS_SUBSYSTEM_NETWORK_PROVIDER,
AFS_TRACE_LEVEL_VERBOSE,
"AFSCancelConnection Retrieved authentication id %I64X\n",
- ConnectCB->AuthenticationId.QuadPart);
+ ConnectCB->AuthenticationId.QuadPart));
}
AFSAcquireExcl( &pRDRDevExt->Specific.RDR.ProviderListLock,
if( ( ConnectCB->LocalName != L'\0' &&
pConnection->LocalName == ConnectCB->LocalName)
||
- ( RtlCompareUnicodeString( &uniRemoteName,
+ ( ConnectCB->LocalName == L'\0' &&
+ pConnection->LocalName == L'\0' &&
+ RtlCompareUnicodeString( &uniRemoteName,
&pConnection->RemoteName,
TRUE) == 0))
{
- AFSDbgLogMsg( AFS_SUBSYSTEM_NETWORK_PROVIDER,
+ AFSDbgTrace(( AFS_SUBSYSTEM_NETWORK_PROVIDER,
AFS_TRACE_LEVEL_VERBOSE,
"AFSCancelConnection Checking remote name %wZ to stored %wZ authentication id %I64X - %I64X\n",
&uniRemoteName,
&pConnection->RemoteName,
ConnectCB->AuthenticationId.QuadPart,
- pConnection->AuthenticationId.QuadPart);
+ pConnection->AuthenticationId.QuadPart));
if( ConnectCB->AuthenticationId.QuadPart == pConnection->AuthenticationId.QuadPart &&
( ConnectCB->LocalName == L'\0' ||
__Enter
{
+ if( ConnectCB->AuthenticationId.QuadPart == 0)
+ {
+
+ ConnectCB->AuthenticationId = AFSGetAuthenticationId();
+
+ if ( ConnectCB->AuthenticationId.QuadPart == 0)
+ {
+
+ AFSDbgTrace(( AFS_SUBSYSTEM_NETWORK_PROVIDER,
+ AFS_TRACE_LEVEL_ERROR,
+ "AFSGetConnection Unable to retrieve authentication id\n"));
+
+ return STATUS_ACCESS_DENIED;
+ }
+
+ AFSDbgTrace(( AFS_SUBSYSTEM_NETWORK_PROVIDER,
+ AFS_TRACE_LEVEL_VERBOSE,
+ "AFSGetConnection Retrieved authentication id %I64X\n",
+ ConnectCB->AuthenticationId.QuadPart));
+ }
+
if( ConnectCB->LocalName != L'\0')
{
- AFSDbgLogMsg( AFS_SUBSYSTEM_NETWORK_PROVIDER,
+ AFSDbgTrace(( AFS_SUBSYSTEM_NETWORK_PROVIDER,
AFS_TRACE_LEVEL_VERBOSE,
"AFSGetConnection Local %C authentication id %I64X\n",
ConnectCB->LocalName,
- ConnectCB->AuthenticationId.QuadPart);
+ ConnectCB->AuthenticationId.QuadPart));
}
else
{
- AFSDbgLogMsg( AFS_SUBSYSTEM_NETWORK_PROVIDER,
+ AFSDbgTrace(( AFS_SUBSYSTEM_NETWORK_PROVIDER,
AFS_TRACE_LEVEL_VERBOSE,
"AFSGetConnection Local (NULL) authentication id %I64X\n",
- ConnectCB->AuthenticationId.QuadPart);
+ ConnectCB->AuthenticationId.QuadPart));
}
- AFSDbgLogMsg( AFS_SUBSYSTEM_LOCK_PROCESSING,
+ AFSDbgTrace(( AFS_SUBSYSTEM_LOCK_PROCESSING,
AFS_TRACE_LEVEL_VERBOSE,
"AFSGetConnection Acquiring AFSProviderListLock lock %p SHARED %08lX\n",
&pRDRDevExt->Specific.RDR.ProviderListLock,
- PsGetCurrentThread());
-
- if( ConnectCB->AuthenticationId.QuadPart == 0)
- {
-
- ConnectCB->AuthenticationId = AFSGetAuthenticationId();
-
- AFSDbgLogMsg( AFS_SUBSYSTEM_NETWORK_PROVIDER,
- AFS_TRACE_LEVEL_VERBOSE,
- "AFSGetConnection Retrieved authentication id %I64X\n",
- ConnectCB->AuthenticationId.QuadPart);
- }
+ PsGetCurrentThread()));
AFSAcquireShared( &pRDRDevExt->Specific.RDR.ProviderListLock,
TRUE);
if( pConnection->LocalName != L'\0')
{
- AFSDbgLogMsg( AFS_SUBSYSTEM_NETWORK_PROVIDER,
+ AFSDbgTrace(( AFS_SUBSYSTEM_NETWORK_PROVIDER,
AFS_TRACE_LEVEL_VERBOSE,
"AFSGetConnection Comparing passed in %C to %C authentication id %I64X - %I64X\n",
ConnectCB->LocalName,
pConnection->LocalName,
ConnectCB->AuthenticationId.QuadPart,
- pConnection->AuthenticationId.QuadPart);
+ pConnection->AuthenticationId.QuadPart));
}
else
{
- AFSDbgLogMsg( AFS_SUBSYSTEM_NETWORK_PROVIDER,
+ AFSDbgTrace(( AFS_SUBSYSTEM_NETWORK_PROVIDER,
AFS_TRACE_LEVEL_VERBOSE,
"AFSGetConnection Comparing passed in %C to (NULL) authentication id %I64X - %I64X\n",
ConnectCB->LocalName,
ConnectCB->AuthenticationId.QuadPart,
- pConnection->AuthenticationId.QuadPart);
+ pConnection->AuthenticationId.QuadPart));
}
if( pConnection->LocalName == ConnectCB->LocalName &&
if( pConnection == NULL)
{
- AFSDbgLogMsg( AFS_SUBSYSTEM_NETWORK_PROVIDER,
+ AFSDbgTrace(( AFS_SUBSYSTEM_NETWORK_PROVIDER,
AFS_TRACE_LEVEL_VERBOSE,
- "AFSGetConnection INVALID_PARAMETER\n");
+ "AFSGetConnection INVALID_PARAMETER\n"));
try_return( ntStatus = STATUS_INVALID_PARAMETER);
}
if( RemoteNameBufferLength < pConnection->RemoteName.Length)
{
- AFSDbgLogMsg( AFS_SUBSYSTEM_NETWORK_PROVIDER,
+ AFSDbgTrace(( AFS_SUBSYSTEM_NETWORK_PROVIDER,
AFS_TRACE_LEVEL_VERBOSE,
- "AFSGetConnection INSUFFICIENT_RESOURCES\n");
+ "AFSGetConnection INSUFFICIENT_RESOURCES\n"));
try_return( ntStatus = STATUS_INSUFFICIENT_RESOURCES);
}
ConnectCB->AuthenticationId = AFSGetAuthenticationId();
- AFSDbgLogMsg( AFS_SUBSYSTEM_NETWORK_PROVIDER,
+ if ( ConnectCB->AuthenticationId.QuadPart == 0)
+ {
+
+ AFSDbgTrace(( AFS_SUBSYSTEM_NETWORK_PROVIDER,
+ AFS_TRACE_LEVEL_ERROR,
+ "AFSListConnections Unable to retrieve authentication id\n"));
+
+ return STATUS_ACCESS_DENIED;
+ }
+
+ AFSDbgTrace(( AFS_SUBSYSTEM_NETWORK_PROVIDER,
AFS_TRACE_LEVEL_VERBOSE,
"AFSListConnections Retrieved authentication id %I64X\n",
- ConnectCB->AuthenticationId.QuadPart);
+ ConnectCB->AuthenticationId.QuadPart));
}
liAuthenticationID.QuadPart = ConnectCB->AuthenticationId.QuadPart;
// adjust it to be the server name itself
//
- if( uniShareName.Length == 0 ||
- RtlCompareUnicodeString( &uniShareName,
- &AFSGlobalRootName,
- TRUE) == 0)
+ if( uniShareName.Length == 0)
{
bGlobalEnumeration = TRUE;
}
}
- AFSDbgLogMsg( AFS_SUBSYSTEM_LOCK_PROCESSING,
+ AFSDbgTrace(( AFS_SUBSYSTEM_LOCK_PROCESSING,
AFS_TRACE_LEVEL_VERBOSE,
"AFSListConnections Acquiring AFSProviderListLock lock %p SHARED %08lX\n",
&pRDRDevExt->Specific.RDR.ProviderListLock,
- PsGetCurrentThread());
+ PsGetCurrentThread()));
AFSAcquireShared( &pRDRDevExt->Specific.RDR.ProviderListLock,
TRUE);
if( pConnection->LocalName != L'\0')
{
- AFSDbgLogMsg( AFS_SUBSYSTEM_NETWORK_PROVIDER,
+ AFSDbgTrace(( AFS_SUBSYSTEM_NETWORK_PROVIDER,
AFS_TRACE_LEVEL_VERBOSE,
"AFSListConnections Processing entry %wZ %C authentication id %I64X - %I64X Scope %08lX\n",
&pConnection->RemoteName,
pConnection->LocalName,
liAuthenticationID.QuadPart,
pConnection->AuthenticationId.QuadPart,
- pConnection->Scope);
+ pConnection->Scope));
}
else
{
- AFSDbgLogMsg( AFS_SUBSYSTEM_NETWORK_PROVIDER,
+ AFSDbgTrace(( AFS_SUBSYSTEM_NETWORK_PROVIDER,
AFS_TRACE_LEVEL_VERBOSE,
"AFSListConnections Processing entry %wZ NULL LocalName authentication id %I64X - %I64X Scope %08lX\n",
&pConnection->RemoteName,
liAuthenticationID.QuadPart,
pConnection->AuthenticationId.QuadPart,
- pConnection->Scope);
+ pConnection->Scope));
}
if( ulScope != RESOURCE_GLOBALNET &&
if( AFSGlobalRoot == NULL)
{
- AFSDbgLogMsg( AFS_SUBSYSTEM_NETWORK_PROVIDER,
+ AFSDbgTrace(( AFS_SUBSYSTEM_NETWORK_PROVIDER,
AFS_TRACE_LEVEL_ERROR,
- "AFSEnumerateConnection Global root not yet initialized\n");
+ "AFSEnumerateConnection Global root not yet initialized\n"));
try_return( ntStatus = STATUS_DEVICE_NOT_READY);
}
// Grab our tree lock shared
//
- AFSDbgLogMsg( AFS_SUBSYSTEM_LOCK_PROCESSING,
+ AFSDbgTrace(( AFS_SUBSYSTEM_LOCK_PROCESSING,
AFS_TRACE_LEVEL_VERBOSE,
"AFSEnumerateConnection Acquiring GlobalRoot DirectoryNodeHdr.TreeLock lock %p SHARED %08lX\n",
AFSGlobalRoot->ObjectInformation.Specific.Directory.DirectoryNodeHdr.TreeLock,
- PsGetCurrentThread());
+ PsGetCurrentThread()));
AFSAcquireShared( AFSGlobalRoot->ObjectInformation.Specific.Directory.DirectoryNodeHdr.TreeLock,
TRUE);
lCount = InterlockedIncrement( &pShareDirEntry->DirOpenReferenceCount);
- AFSDbgLogMsg( AFS_SUBSYSTEM_DIRENTRY_REF_COUNTING,
+ AFSDbgTrace(( AFS_SUBSYSTEM_DIRENTRY_REF_COUNTING,
AFS_TRACE_LEVEL_VERBOSE,
"AFSEnumerateConnection1 Increment count on %wZ DE %p Ccb %p Cnt %d\n",
&pShareDirEntry->NameInformation.FileName,
pShareDirEntry,
NULL,
- lCount);
+ lCount));
AFSReleaseResource( AFSGlobalRoot->ObjectInformation.Specific.Directory.DirectoryNodeHdr.TreeLock);
//
// Setup the request to evaluate the entry
+ // On success, pTargetDirEntry has the DirOpenReferenceCount held
//
ntStatus = AFSEvaluateRootEntry( pShareDirEntry,
pDirEntry = (AFSDirectoryCB *)pDirEntry->ListEntry.fLink;
}
+ //
+ // Release the DirOpenReferenceCount obtained from AFSEvaluateRootEntry
+ //
+
lCount = InterlockedDecrement( &pTargetDirEntry->DirOpenReferenceCount);
- AFSDbgLogMsg( AFS_SUBSYSTEM_DIRENTRY_REF_COUNTING,
+ AFSDbgTrace(( AFS_SUBSYSTEM_DIRENTRY_REF_COUNTING,
AFS_TRACE_LEVEL_VERBOSE,
"AFSEnumerateConnection Decrement count on %wZ DE %p Ccb %p Cnt %d\n",
&pTargetDirEntry->NameInformation.FileName,
pTargetDirEntry,
NULL,
- lCount);
+ lCount));
ASSERT( lCount >= 0);
{
lCount = InterlockedDecrement( &pShareDirEntry->DirOpenReferenceCount);
- AFSDbgLogMsg( AFS_SUBSYSTEM_DIRENTRY_REF_COUNTING,
+ AFSDbgTrace(( AFS_SUBSYSTEM_DIRENTRY_REF_COUNTING,
AFS_TRACE_LEVEL_VERBOSE,
"AFSEnumerateConnection1 Decrement count on %wZ DE %p Ccb %p Cnt %d\n",
&pShareDirEntry->NameInformation.FileName,
pShareDirEntry,
NULL,
- lCount);
+ lCount));
ASSERT( lCount >= 0);
}
uniRemoteName.MaximumLength = uniRemoteName.Length + sizeof( WCHAR);
uniRemoteName.Buffer = (WCHAR *)ConnectCB->RemoteName;
+ if( ConnectCB->AuthenticationId.QuadPart == 0)
+ {
+
+ ConnectCB->AuthenticationId = AFSGetAuthenticationId();
+
+ if ( ConnectCB->AuthenticationId.QuadPart == 0)
+ {
+
+ AFSDbgTrace(( AFS_SUBSYSTEM_NETWORK_PROVIDER,
+ AFS_TRACE_LEVEL_ERROR,
+ "AFSGetConnectionInfo Unable to retrieve authentication id\n"));
+
+ return STATUS_ACCESS_DENIED;
+ }
+
+ AFSDbgTrace(( AFS_SUBSYSTEM_NETWORK_PROVIDER,
+ AFS_TRACE_LEVEL_VERBOSE,
+ "AFSGetConnectionInfo Retrieved authentication id %I64X\n",
+ ConnectCB->AuthenticationId.QuadPart));
+ }
+
if( ConnectCB->LocalName != L'\0')
{
- AFSDbgLogMsg( AFS_SUBSYSTEM_NETWORK_PROVIDER,
+ AFSDbgTrace(( AFS_SUBSYSTEM_NETWORK_PROVIDER,
AFS_TRACE_LEVEL_VERBOSE,
"AFSGetConnectionInfo remote name %wZ Local %C authentication id %I64X\n",
&uniRemoteName,
ConnectCB->LocalName,
- ConnectCB->AuthenticationId.QuadPart);
+ ConnectCB->AuthenticationId.QuadPart));
}
else
{
- AFSDbgLogMsg( AFS_SUBSYSTEM_NETWORK_PROVIDER,
+ AFSDbgTrace(( AFS_SUBSYSTEM_NETWORK_PROVIDER,
AFS_TRACE_LEVEL_VERBOSE,
"AFSGetConnectionInfo remote name %wZ Local (NULL) authentication id %I64X\n",
&uniRemoteName,
- ConnectCB->AuthenticationId.QuadPart);
+ ConnectCB->AuthenticationId.QuadPart));
}
if( AFSGlobalRoot == NULL)
{
- AFSDbgLogMsg( AFS_SUBSYSTEM_NETWORK_PROVIDER,
+ AFSDbgTrace(( AFS_SUBSYSTEM_NETWORK_PROVIDER,
AFS_TRACE_LEVEL_ERROR,
- "AFSGetConnectionInfo Global root not yet initialized\n");
+ "AFSGetConnectionInfo Global root not yet initialized\n"));
try_return( ntStatus = STATUS_DEVICE_NOT_READY);
}
uniFullName.Length -= sizeof( WCHAR);
}
- AFSDbgLogMsg( AFS_SUBSYSTEM_NETWORK_PROVIDER,
+ AFSDbgTrace(( AFS_SUBSYSTEM_NETWORK_PROVIDER,
AFS_TRACE_LEVEL_VERBOSE,
- "AFSGetConnectionInfo Processing name %wZ\n", &uniFullName);
+ "AFSGetConnectionInfo Processing name %wZ\n",
+ &uniFullName));
FsRtlDissectName( uniRemoteName,
&uniServerName,
if( uniRemainingPathLocal.Buffer == NULL)
{
- AFSDbgLogMsg( AFS_SUBSYSTEM_NETWORK_PROVIDER,
+ AFSDbgTrace(( AFS_SUBSYSTEM_NETWORK_PROVIDER,
AFS_TRACE_LEVEL_VERBOSE,
- "AFSGetConnectionInfo INSUFFICIENT_RESOURCES\n");
+ "AFSGetConnectionInfo INSUFFICIENT_RESOURCES\n"));
try_return( ntStatus = STATUS_INSUFFICIENT_RESOURCES);
}
uniRemainingPath.Length);
}
- AFSDbgLogMsg( AFS_SUBSYSTEM_LOCK_PROCESSING,
+ AFSDbgTrace(( AFS_SUBSYSTEM_LOCK_PROCESSING,
AFS_TRACE_LEVEL_VERBOSE,
"AFSGetConnectionInfo Acquiring AFSProviderListLock lock %p SHARED %08lX\n",
&pRDRDevExt->Specific.RDR.ProviderListLock,
- PsGetCurrentThread());
+ PsGetCurrentThread()));
AFSAcquireShared( &pRDRDevExt->Specific.RDR.ProviderListLock,
TRUE);
pConnection = pRDRDevExt->Specific.RDR.ProviderConnectionList;
- AFSDbgLogMsg( AFS_SUBSYSTEM_NETWORK_PROVIDER,
+ AFSDbgTrace(( AFS_SUBSYSTEM_NETWORK_PROVIDER,
AFS_TRACE_LEVEL_VERBOSE,
- "AFSGetConnectionInfo Searching for full name %wZ\n", &uniFullName);
+ "AFSGetConnectionInfo Searching for full name %wZ\n",
+ &uniFullName));
while( pConnection != NULL)
{
pBestMatch = pConnection;
- AFSDbgLogMsg( AFS_SUBSYSTEM_NETWORK_PROVIDER,
+ AFSDbgTrace(( AFS_SUBSYSTEM_NETWORK_PROVIDER,
AFS_TRACE_LEVEL_VERBOSE,
- "AFSGetConnectionInfo Found match for %wZ\n", &pConnection->RemoteName);
+ "AFSGetConnectionInfo Found match for %wZ\n",
+ &pConnection->RemoteName));
}
uniFullName.Length = usNameLen;
bEnumerationEntry = TRUE;
- AFSDbgLogMsg( AFS_SUBSYSTEM_NETWORK_PROVIDER,
+ AFSDbgTrace(( AFS_SUBSYSTEM_NETWORK_PROVIDER,
AFS_TRACE_LEVEL_VERBOSE,
- "AFSGetConnectionInfo Using best match for %wZ\n", &pConnection->RemoteName);
+ "AFSGetConnectionInfo Using best match for %wZ\n",
+ &pConnection->RemoteName));
}
if( pConnection == NULL)
UNICODE_STRING uniFullName;
AFSDirEnumEntry *pDirEnumEntry = NULL;
- AFSDbgLogMsg( AFS_SUBSYSTEM_NETWORK_PROVIDER,
+ AFSDbgTrace(( AFS_SUBSYSTEM_NETWORK_PROVIDER,
AFS_TRACE_LEVEL_VERBOSE,
- "AFSGetConnectionInfo No connection for full name %wZ\n", &uniFullName);
+ "AFSGetConnectionInfo No connection for full name %wZ\n",
+ &uniFullName));
//
// Drop the lock, we will pick it up again later
ntStatus = AFSEvaluateTargetByName( NULL,
&AFSGlobalRoot->ObjectInformation,
&uniShareName,
+ 0,
&pDirEnumEntry);
if( !NT_SUCCESS( ntStatus))
{
- AFSDbgLogMsg( AFS_SUBSYSTEM_NETWORK_PROVIDER,
+ AFSDbgTrace(( AFS_SUBSYSTEM_NETWORK_PROVIDER,
AFS_TRACE_LEVEL_VERBOSE,
"AFSGetConnectionInfo Evaluation Failed share name %wZ\n",
- uniShareName);
+ uniShareName));
try_return( ntStatus = STATUS_INVALID_PARAMETER);
if( uniFullName.Buffer == NULL)
{
- AFSDbgLogMsg( AFS_SUBSYSTEM_NETWORK_PROVIDER,
+ AFSDbgTrace(( AFS_SUBSYSTEM_NETWORK_PROVIDER,
AFS_TRACE_LEVEL_VERBOSE,
- "AFSGetConnectionInfo INSUFFICIENT_RESOURCES\n");
+ "AFSGetConnectionInfo INSUFFICIENT_RESOURCES\n"));
try_return( ntStatus = STATUS_INSUFFICIENT_RESOURCES);
}
AFSExFreePoolWithTag( uniFullName.Buffer, 0);
- AFSDbgLogMsg( AFS_SUBSYSTEM_LOCK_PROCESSING,
+ AFSDbgTrace(( AFS_SUBSYSTEM_LOCK_PROCESSING,
AFS_TRACE_LEVEL_VERBOSE,
"AFSGetConnectionInfo Acquiring AFSProviderListLock lock %p SHARED %08lX\n",
&pRDRDevExt->Specific.RDR.ProviderListLock,
- PsGetCurrentThread());
+ PsGetCurrentThread()));
AFSAcquireShared( &pRDRDevExt->Specific.RDR.ProviderListLock,
TRUE);
if( pConnection == NULL)
{
- AFSDbgLogMsg( AFS_SUBSYSTEM_NETWORK_PROVIDER,
+ AFSDbgTrace(( AFS_SUBSYSTEM_NETWORK_PROVIDER,
AFS_TRACE_LEVEL_ERROR,
- "AFSGetConnectionInfo Failed to locate entry for full name %wZ\n", &uniFullName);
+ "AFSGetConnectionInfo Failed to locate entry for full name %wZ\n",
+ &uniFullName));
AFSReleaseResource( &pRDRDevExt->Specific.RDR.ProviderListLock);
uniRemainingPath.Length)
{
- AFSDbgLogMsg( AFS_SUBSYSTEM_NETWORK_PROVIDER,
+ AFSDbgTrace(( AFS_SUBSYSTEM_NETWORK_PROVIDER,
AFS_TRACE_LEVEL_VERBOSE,
"AFSGetConnectionInfo Buffer too small for full name %wZ\n",
- &uniFullName);
+ &uniFullName));
AFSReleaseResource( &pRDRDevExt->Specific.RDR.ProviderListLock);
try_return( ntStatus = STATUS_BUFFER_OVERFLOW);
}
- AFSDbgLogMsg( AFS_SUBSYSTEM_NETWORK_PROVIDER,
+ AFSDbgTrace(( AFS_SUBSYSTEM_NETWORK_PROVIDER,
AFS_TRACE_LEVEL_VERBOSE,
"AFSGetConnectionInfo Returning entry Scope %08lX partial name %wZ full name %wZ\n",
- pConnection->Scope, &pConnection->RemoteName, &uniFullName);
+ pConnection->Scope, &pConnection->RemoteName, &uniFullName));
ConnectCB->RemoteNameLength = pConnection->RemoteName.Length;
ConnectCB->RemainingPathLength = uniRemainingPathLocal.Length;
- AFSDbgLogMsg( AFS_SUBSYSTEM_NETWORK_PROVIDER,
+ AFSDbgTrace(( AFS_SUBSYSTEM_NETWORK_PROVIDER,
AFS_TRACE_LEVEL_VERBOSE,
"AFSGetConnectionInfo Returning lengths: remote %u comment %u remaining %u\n",
ConnectCB->RemoteNameLength,
ConnectCB->CommentLength,
- ConnectCB->RemainingPathLength);
+ ConnectCB->RemainingPathLength));
if( ConnectCB->CommentLength > 0)
{