Closed joemarshall closed 1 year ago
When you open a raw disk, right now it tries to do FSCTL_LOCK_VOLUME on the disk itself. That doesn't work, you have to lock the volume object. This PR locks the volumes when they are dismounted, and then unlocks them when the drive is closed.
Sorry I broke the PR by incorrect branching.
When you open a raw disk, right now it tries to do FSCTL_LOCK_VOLUME on the disk itself. That doesn't work, you have to lock the volume object. This PR locks the volumes when they are dismounted, and then unlocks them when the drive is closed.