]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
sed-opal: refactor (split) IOC_OPAL_LR_SETUP internals.
authorOndrej Kozina <okozina@redhat.com>
Fri, 6 Feb 2026 14:17:59 +0000 (15:17 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 9 Mar 2026 20:29:59 +0000 (14:29 -0600)
commit8ff71e6b961beea2ab25850b285287a3350bce92
treeb613a0fc56a88599ca4e154464005bb8db92d78c
parentaca086ff27c3f67e81617e4b063d1126544a4f19
sed-opal: refactor (split) IOC_OPAL_LR_SETUP internals.

IOC_OPAL_LR_SETUP is used to set up a locking range entirely under a
single authority (usually Admin1), but for Single User Mode (SUM),
the permissions for attributes (RangeStart, RangeLength)
and (ReadLockEnable, WriteLockEnable, ReadLocked, WriteLocked)
may be split between two different authorities. Typically, it is Admin1
for the former and the User associated with the LockingRange in SUM
for the latter.

This commit only splits the internals in preparation for the introduction
of separate ioctls for setting RangeStart, RangeLength and the rest
using new ioctl calls.

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