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 <scott.bauer@intel.com>
Signed-off-by: Rafael Antognolli <Rafael.Antognolli@intel.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
This commit is contained in:
Scott Bauer
2017-02-03 12:50:31 -07:00
committed by Jens Axboe
parent 19641f2d76
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