Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Opal: print descriptive error if format locks the drive.
Some chipsets will set write-protection for the *full* drive even if only small locking range is used. As LUKS header expect to be writable ehen Opal LR is locked, this is incompatible with LUKS. Moreover, device need to be PSID reset and reconnected to clear the flag. (And kernel lies about write protection so we cannot get BLROGET ioctl to detect it.) At least print some warning when LUKS2 header cannot be written after Opal LR setup. This applies for all USB adapters/firmware with RTL9210 chipset. (Need experimental patch to enable Opal through USB.)
- Loading branch information