maxpat78 / FATtools

Facilities to access (ex)FAT filesystems and disk images with Python 3
39 stars 4 forks source link

locked any mounted volumes on disk before opening raw disk #10

Closed joemarshall closed 1 year ago

joemarshall commented 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.

joemarshall commented 1 year ago

Sorry I broke the PR by incorrect branching.