sed-opal: add UID of Locking Table.
authorOndrej Kozina <okozina@redhat.com>
Fri, 6 Feb 2026 14:17:55 +0000 (15:17 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 9 Mar 2026 20:29:59 +0000 (14:29 -0600)
As described in ch. 6.3, Table 240 in TCG Storage
Architecture Core Specification document.

It's also referenced in TCG Storage Opal SSC Feature Set:
Single User Mode document, ch. 3.1.1.1 Reactivate method.

It will be used later in Reactivate method implemetation
for sed-opal interface.

Signed-off-by: Ondrej Kozina <okozina@redhat.com>
Reviewed-and-tested-by: Milan Broz <gmazyland@gmail.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/opal_proto.h
block/sed-opal.c

index d247a45..3dfba3d 100644 (file)
@@ -125,6 +125,7 @@ enum opal_uid {
        OPAL_LOCKING_INFO_TABLE,
        OPAL_ENTERPRISE_LOCKING_INFO_TABLE,
        OPAL_DATASTORE,
+       OPAL_LOCKING_TABLE,
        /* C_PIN_TABLE object ID's */
        OPAL_C_PIN_MSID,
        OPAL_C_PIN_SID,
index 3ded1ca..83bee47 100644 (file)
@@ -160,6 +160,8 @@ static const u8 opaluid[][OPAL_UID_LENGTH] = {
                { 0x00, 0x00, 0x08, 0x01, 0x00, 0x00, 0x00, 0x00 },
        [OPAL_DATASTORE] =
                { 0x00, 0x00, 0x10, 0x01, 0x00, 0x00, 0x00, 0x00 },
+       [OPAL_LOCKING_TABLE] =
+               { 0x00, 0x00, 0x08, 0x02, 0x00, 0x00, 0x00, 0x00 },
 
        /* C_PIN_TABLE object ID's */
        [OPAL_C_PIN_MSID] =