cloudbase / wnbd

Windows Ceph RBD NBD driver
GNU Lesser General Public License v2.1
58 stars 26 forks source link

driver: handle IRP_MN_QUERY_REMOVE_DEVICE #81

Closed petrutlucian94 closed 1 year ago

petrutlucian94 commented 1 year ago

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