summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLuca Boccassi <bluca@debian.org>2023-02-10 02:06:12 +0100
committerJens Axboe <axboe@kernel.dk>2023-02-17 14:15:53 +0100
commit9ec041ea40dbc6425c0ee6ae15786e5ab1d6aad6 (patch)
tree116c9cc1afc8fb6545afebb6eda5adeeb66908d0 /include
parentbrd: use radix_tree_maybe_preload instead of radix_tree_preload (diff)
downloadlinux-9ec041ea40dbc6425c0ee6ae15786e5ab1d6aad6.tar.xz
linux-9ec041ea40dbc6425c0ee6ae15786e5ab1d6aad6.zip
sed-opal: add support flag for SUM in status ioctl
Not every OPAL drive supports SUM (Single User Mode), so report this information to userspace via the get-status ioctl so that we can adjust the formatting options accordingly. Tested on a kingston drive (which supports it) and a samsung one (which does not). Signed-off-by: Luca Boccassi <bluca@debian.org> Link: https://lore.kernel.org/r/20230210010612.28729-1-luca.boccassi@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include')
-rw-r--r--include/uapi/linux/sed-opal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/sed-opal.h b/include/uapi/linux/sed-opal.h
index 1fed3c9294fc..d7a1524023db 100644
--- a/include/uapi/linux/sed-opal.h
+++ b/include/uapi/linux/sed-opal.h
@@ -144,6 +144,7 @@ struct opal_read_write_table {
#define OPAL_FL_LOCKED 0x00000008
#define OPAL_FL_MBR_ENABLED 0x00000010
#define OPAL_FL_MBR_DONE 0x00000020
+#define OPAL_FL_SUM_SUPPORTED 0x00000040
struct opal_status {
__u32 flags;