Windows: do not panic if afsredir not ready during shutdown

Change-Id: I0de6ad0f799e2acf1c02c6d53cfd9b1b437328fc
Reviewed-on: http://gerrit.openafs.org/6630
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@secure-endpoints.com>
Tested-by: Jeffrey Altman <jaltman@secure-endpoints.com>
This commit is contained in:
Jeffrey Altman 2012-01-29 14:41:06 -05:00 committed by Jeffrey Altman
parent 5e08628da2
commit 7b3f5df6dc

View File

@ -1309,10 +1309,12 @@ RDR_ProcessRequest( AFSCommRequest *RequestBuffer)
osi_Log1(afsd_logp, "%S", osi_LogSaveStringW(afsd_logp, wchBuffer));
}
sprintf( pBuffer,
"Failed to post IOCTL_AFS_PROCESS_IRP_RESULT gle %X",
GetLastError());
osi_panic(pBuffer, __FILE__, __LINE__);
if (gle != ERROR_NOT_READY) {
sprintf( pBuffer,
"Failed to post IOCTL_AFS_PROCESS_IRP_RESULT gle %X",
GetLastError());
osi_panic(pBuffer, __FILE__, __LINE__);
}
}
}
@ -1364,7 +1366,8 @@ RDR_ProcessRequest( AFSCommRequest *RequestBuffer)
dwResultBufferLength);
}
if (gle != ERROR_GEN_FAILURE) {
if (gle != ERROR_GEN_FAILURE &&
gle != ERROR_NOT_READY) {
sprintf( pBuffer,
"Failed to post IOCTL_AFS_SET_FILE_EXTENTS gle %X",
gle);
@ -1417,10 +1420,12 @@ RDR_ProcessRequest( AFSCommRequest *RequestBuffer)
}
// TODO - instead of a panic we should release the locks
sprintf( pBuffer,
"Failed to post IOCTL_AFS_SET_BYTE_RANGE_LOCKS gle %X", gle);
osi_panic(pBuffer, __FILE__, __LINE__);
if (gle != ERROR_NOT_READY) {
// TODO - instead of a panic we should release the locks
sprintf( pBuffer,
"Failed to post IOCTL_AFS_SET_BYTE_RANGE_LOCKS gle %X", gle);
osi_panic(pBuffer, __FILE__, __LINE__);
}
}
free(SetByteRangeLockResultCB);