block: Add Sed-opal library

This patch implements the necessary logic to bring an Opal
enabled drive out of a factory-enabled into a working
Opal state.

This patch set also enables logic to save a password to
be replayed during a resume from suspend.

Signed-off-by: Scott Bauer <[email protected]>
Signed-off-by: Rafael Antognolli <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
This commit is contained in:
Scott Bauer 2017-02-03 12:50:31 -07:00 • committed by Jens Axboe
commit 455a7b238c
6 changed files with 3074 additions and 0 deletions

2448
block/sed-opal.c Normal file

File diff suppressed because it is too large Load diff