diff options
author | Greg Joyce <gjoyce@linux.vnet.ibm.com> | 2023-07-21 16:15:33 -0500 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-08-22 11:10:26 -0600 |
commit | 5c82efc1aee8eb0919aa67a0d2559de5a326bd7c (patch) | |
tree | d62d84572313018c391069dec40bda90f4db857a /block/opal_proto.h | |
parent | 9fb10726ecc5145550180aec4fd0adf0a7b1d634 (diff) | |
download | linux-stable-5c82efc1aee8eb0919aa67a0d2559de5a326bd7c.tar.gz linux-stable-5c82efc1aee8eb0919aa67a0d2559de5a326bd7c.tar.bz2 linux-stable-5c82efc1aee8eb0919aa67a0d2559de5a326bd7c.zip |
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>
Diffstat (limited to 'block/opal_proto.h')
-rw-r--r-- | block/opal_proto.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/block/opal_proto.h b/block/opal_proto.h index a4e56845dd82..dec7ce3a3edb 100644 --- a/block/opal_proto.h +++ b/block/opal_proto.h @@ -225,6 +225,10 @@ enum opal_parameter { OPAL_SUM_SET_LIST = 0x060000, }; +enum opal_revertlsp { + OPAL_KEEP_GLOBAL_RANGE_KEY = 0x060000, +}; + /* Packets derived from: * TCG_Storage_Architecture_Core_Spec_v2.01_r1.00 * Secion: 3.2.3 ComPackets, Packets & Subpackets |