Windows: AFSQueueFlushExtents permit NULL AuthGroup

If the AuthGroup is NULL, search for an AuthGroup to use when
queuing the flush extents request.

Reviewed-on: http://gerrit.openafs.org/7318
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@secure-endpoints.com>
Tested-by: Jeffrey Altman <jaltman@secure-endpoints.com>
(cherry picked from commit 0fb70aab0e)

Change-Id: I4f9ffd4b75413a0bbdd1cfd2eb0de3f9aa0b6a4f
Reviewed-on: http://gerrit.openafs.org/7344
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@secure-endpoints.com>
This commit is contained in:
Jeffrey Altman 2012-05-02 18:04:23 -04:00 committed by Jeffrey Altman
parent 71b52dca2b
commit b95f16bda5

View File

@ -2183,9 +2183,23 @@ AFSQueueFlushExtents( IN AFSFcb *Fcb,
pWorkItem->RequestType = AFS_WORK_FLUSH_FCB;
RtlCopyMemory( &pWorkItem->AuthGroup,
AuthGroup,
sizeof( GUID));
if ( AuthGroup == NULL)
{
RtlZeroMemory( &pWorkItem->AuthGroup,
sizeof( GUID));
ntStatus = AFSRetrieveValidAuthGroup( Fcb,
NULL,
TRUE,
&pWorkItem->AuthGroup);
}
else
{
RtlCopyMemory( &pWorkItem->AuthGroup,
AuthGroup,
sizeof( GUID));
}
pWorkItem->Specific.Fcb.Fcb = Fcb;