diff options
author | Greg Joyce <gjoyce@linux.vnet.ibm.com> | 2023-07-22 00:15:33 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-08-22 20:10:26 +0300 |
commit | 5c82efc1aee8eb0919aa67a0d2559de5a326bd7c (patch) | |
tree | d62d84572313018c391069dec40bda90f4db857a /include/linux/sed-opal.h | |
parent | 9fb10726ecc5145550180aec4fd0adf0a7b1d634 (diff) | |
download | linux-5c82efc1aee8eb0919aa67a0d2559de5a326bd7c.tar.xz |
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 'include/linux/sed-opal.h')
-rw-r--r-- | include/linux/sed-opal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/sed-opal.h b/include/linux/sed-opal.h index ef65f589fbeb..2f189546e133 100644 --- a/include/linux/sed-opal.h +++ b/include/linux/sed-opal.h @@ -48,6 +48,7 @@ static inline bool is_sed_ioctl(unsigned int cmd) case IOC_OPAL_GET_LR_STATUS: case IOC_OPAL_GET_GEOMETRY: case IOC_OPAL_DISCOVERY: + case IOC_OPAL_REVERT_LSP: return true; } return false; |