mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 13:38:01 +00:00
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:
parent
5e08628da2
commit
7b3f5df6dc
@ -1309,10 +1309,12 @@ RDR_ProcessRequest( AFSCommRequest *RequestBuffer)
|
|||||||
osi_Log1(afsd_logp, "%S", osi_LogSaveStringW(afsd_logp, wchBuffer));
|
osi_Log1(afsd_logp, "%S", osi_LogSaveStringW(afsd_logp, wchBuffer));
|
||||||
}
|
}
|
||||||
|
|
||||||
sprintf( pBuffer,
|
if (gle != ERROR_NOT_READY) {
|
||||||
"Failed to post IOCTL_AFS_PROCESS_IRP_RESULT gle %X",
|
sprintf( pBuffer,
|
||||||
GetLastError());
|
"Failed to post IOCTL_AFS_PROCESS_IRP_RESULT gle %X",
|
||||||
osi_panic(pBuffer, __FILE__, __LINE__);
|
GetLastError());
|
||||||
|
osi_panic(pBuffer, __FILE__, __LINE__);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -1364,7 +1366,8 @@ RDR_ProcessRequest( AFSCommRequest *RequestBuffer)
|
|||||||
dwResultBufferLength);
|
dwResultBufferLength);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (gle != ERROR_GEN_FAILURE) {
|
if (gle != ERROR_GEN_FAILURE &&
|
||||||
|
gle != ERROR_NOT_READY) {
|
||||||
sprintf( pBuffer,
|
sprintf( pBuffer,
|
||||||
"Failed to post IOCTL_AFS_SET_FILE_EXTENTS gle %X",
|
"Failed to post IOCTL_AFS_SET_FILE_EXTENTS gle %X",
|
||||||
gle);
|
gle);
|
||||||
@ -1417,10 +1420,12 @@ RDR_ProcessRequest( AFSCommRequest *RequestBuffer)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// TODO - instead of a panic we should release the locks
|
if (gle != ERROR_NOT_READY) {
|
||||||
sprintf( pBuffer,
|
// TODO - instead of a panic we should release the locks
|
||||||
"Failed to post IOCTL_AFS_SET_BYTE_RANGE_LOCKS gle %X", gle);
|
sprintf( pBuffer,
|
||||||
osi_panic(pBuffer, __FILE__, __LINE__);
|
"Failed to post IOCTL_AFS_SET_BYTE_RANGE_LOCKS gle %X", gle);
|
||||||
|
osi_panic(pBuffer, __FILE__, __LINE__);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
free(SetByteRangeLockResultCB);
|
free(SetByteRangeLockResultCB);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user