]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests: ublk: kublk: use ioctl-encoded opcodes
authorUday Shankar <ushankar@purestorage.com>
Tue, 1 Apr 2025 20:49:08 +0000 (14:49 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 1 Apr 2025 20:52:38 +0000 (14:52 -0600)
commit53c959295bc3cccc1d9eec6711a5fcdd28602fc5
treed0bcb2683a7e025f7e5b851372f6f05849b2924f
parentfcfd94d6967a98e88b834c9fd81e73c5f04d83dc
selftests: ublk: kublk: use ioctl-encoded opcodes

There are a couple of places in the kublk selftests ublk server which
use the legacy ublk opcodes. These operations fail (with -EOPNOTSUPP) on
a kernel compiled without CONFIG_BLKDEV_UBLK_LEGACY_OPCODES set. We
could easily require it to be set as a prerequisite for these selftests,
but since new applications should not be using the legacy opcodes, use
the ioctl-encoded opcodes everywhere in kublk.

Signed-off-by: Uday Shankar <ushankar@purestorage.com>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20250401-ublk_selftests-v1-1-98129c9bc8bb@purestorage.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
tools/testing/selftests/ublk/kublk.c