sed-opal: add support flag for SUM in status ioctl
authorLuca Boccassi <bluca@debian.org>
Fri, 10 Feb 2023 01:06:12 +0000 (01:06 +0000)
committerJens Axboe <axboe@kernel.dk>
Fri, 17 Feb 2023 13:15:53 +0000 (06:15 -0700)
commit9ec041ea40dbc6425c0ee6ae15786e5ab1d6aad6
tree116c9cc1afc8fb6545afebb6eda5adeeb66908d0
parent0aa2988e4fd23c0c8b33999d7b47dfbc5e6bf24b
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>
block/sed-opal.c
include/uapi/linux/sed-opal.h