The wnbd driver currently ignores IRP_MN_QUERY_REMOVE_DEVICE calls, expecting the rest of the Windows storage stack to prevent the disk removal if there are pending operations or unflushed data.
As a precaution, we'll add a check at the wnbd driver level, signaling that the disk is not ready to be removed if there are pending requests in our queues.
The wnbd driver currently ignores IRP_MN_QUERY_REMOVE_DEVICE calls, expecting the rest of the Windows storage stack to prevent the disk removal if there are pending operations or unflushed data.
As a precaution, we'll add a check at the wnbd driver level, signaling that the disk is not ready to be removed if there are pending requests in our queues.
Signed-off-by: Lucian Petrut lpetrut@cloudbasesolutions.com