]> git.ipfire.org Git - thirdparty/linux.git/commit
block: sed-opal: Implement IOC_OPAL_REVERT_LSP
authorGreg Joyce <gjoyce@linux.vnet.ibm.com>
Fri, 21 Jul 2023 21:15:33 +0000 (16:15 -0500)
committerJens Axboe <axboe@kernel.dk>
Tue, 22 Aug 2023 17:10:26 +0000 (11:10 -0600)
commit5c82efc1aee8eb0919aa67a0d2559de5a326bd7c
treed62d84572313018c391069dec40bda90f4db857a
parent9fb10726ecc5145550180aec4fd0adf0a7b1d634
block: sed-opal: Implement IOC_OPAL_REVERT_LSP

This is used in conjunction with IOC_OPAL_REVERT_TPR to return a drive to
Original Factory State without erasing the data. If IOC_OPAL_REVERT_LSP
is called with opal_revert_lsp.options bit OPAL_PRESERVE set prior
to calling IOC_OPAL_REVERT_TPR, the drive global locking range will not
be erased.

Signed-off-by: Greg Joyce <gjoyce@linux.vnet.ibm.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jonathan Derrick <jonathan.derrick@linux.dev>
Acked-by: Jarkko Sakkinen <jarkko@kernel.org>
Link: https://lore.kernel.org/r/20230721211534.3437070-3-gjoyce@linux.vnet.ibm.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/opal_proto.h
block/sed-opal.c
include/linux/sed-opal.h
include/uapi/linux/sed-opal.h