Hi,
After playing VDDK for a while, I found a strange behavior. Once a VixDiskLib_Read() is failed to read a snapshot of a disk in ESX/ESXi, due to VIX_E_HOST_NETWORK_CONN_REFUSED. Later on, after I delete the snapshot, the VM with the deleted snapshot attached always promotes me for doing consolidation. If I follow the instruction to do so, I then get resource locked problem. The current workaround, is to disconnect the whole host and reconnect, then all locks are gone and I'll be able to do the consolidation.
But it is bit annoying. Just wonder, anyone has the same experience? And any suggestions on 1) either how to reduce VIX_E_HOST_NETWORK_CONN_REFUSED; 2) or how to properly close disk handle when a VIX_E_HOST_NETWORK_CONN_REFUSED happened?
Thanks.