block: sed-opal: ioctl for writing to shadow mbr
authorJonas Rabenstein <jonas.rabenstein@studium.uni-erlangen.de>
Tue, 21 May 2019 20:46:45 +0000 (22:46 +0200)
committerJens Axboe <axboe@kernel.dk>
Sat, 29 Jun 2019 16:33:57 +0000 (10:33 -0600)
commita9b25b4cf2b76d320afc999f881ccb805fecdd84
tree2137106246ef1e5ae9afdc4677a93c1df4ca22fa
parentc9888443413e4e06013e482fc484dbb9c559c145
block: sed-opal: ioctl for writing to shadow mbr

Allow modification of the shadow mbr. If the shadow mbr is not marked as
done, this data will be presented read only as the device content. Only
after marking the shadow mbr as done and unlocking a locking range the
actual content is accessible.

Co-authored-by: David Kozub <zub@linux.fjfi.cvut.cz>
Signed-off-by: Jonas Rabenstein <jonas.rabenstein@studium.uni-erlangen.de>
Signed-off-by: David Kozub <zub@linux.fjfi.cvut.cz>
Reviewed-by: Scott Bauer <sbauer@plzdonthack.me>
Reviewed-by: Jon Derrick <jonathan.derrick@intel.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/sed-opal.c
include/linux/sed-opal.h
include/uapi/linux/sed-opal.h