mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-24 05:01:03 +02:00
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>
This commit is contained in:
committed by
Jens Axboe
parent
0aa2988e4f
commit
9ec041ea40
@@ -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;
|
||||
|
Reference in New Issue
Block a user