cloudbase / wnbd

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

driver: fix missing disk number #54

Closed petrutlucian94 closed 3 years ago

petrutlucian94 commented 3 years ago

When receiving IRP_MN_START_DEVICE, we check if the device count is nonzero. The issue is that this counter is incremented after storport gets notified that a new device has been created.

In some cases, we skip fetching the disk number because of that. It happens on WS2016 VMs for every attached disk.

We'll drop this unnecessary device counter check.

Signed-off-by: Lucian Petrut lpetrut@cloudbasesolutions.com