open-source-firmware / go-tcg-storage

Go library for interfacing TCG Storage functions on storage devices
BSD 3-Clause "New" or "Revised" License
21 stars 10 forks source link

Unlock on SSC Enterprise fails with INVALID_PARAMETER #29

Open bluecmd opened 3 years ago

bluecmd commented 3 years ago

Not sure about this one right now, so filing an issue:

$ sedlockctl  /dev/sde unlock-all
2021/05/31 19:05:13 Read unlock range 0 failed: method returned status INVALID_PARAMETER
2021/05/31 19:05:13 Write unlock range 0 failed: method returned status INVALID_PARAMETER
2021/05/31 19:05:13 Read unlock range 1 failed: method returned status NOT_AUTHORIZED
2021/05/31 19:05:13 Write unlock range 1 failed: method returned status NOT_AUTHORIZED
2021/05/31 19:05:13 Read unlock range 2 failed: method returned status NOT_AUTHORIZED
2021/05/31 19:05:13 Write unlock range 2 failed: method returned status NOT_AUTHORIZED
2021/05/31 19:05:13 Read unlock range 3 failed: method returned status NOT_AUTHORIZED
...

The only other Set I have is the MBRControl which my SSC Enterprise disk does not implement, so can't use it to check if the Set() is generically bad for Enterprise or specifically for MBRControl.