selftests: ublk: add test for UBLK_F_QUIESCE
authorMing Lei <ming.lei@redhat.com>
Thu, 22 May 2025 16:35:21 +0000 (00:35 +0800)
committerJens Axboe <axboe@kernel.dk>
Fri, 23 May 2025 15:42:12 +0000 (09:42 -0600)
commit533c87e2ed742454957f14d7bef9f48d5a72e72d
tree0c5cadc75a37dcc133a4508ee953dcc117e847aa
parentb465ae7b2524170cb14fa25dbcb84923bfb1a0a9
selftests: ublk: add test for UBLK_F_QUIESCE

Add test generic_11 for covering new control command of
UBLK_U_CMD_QUIESCE_DEV.

Add 'quiesce -n dev_id' sub-command on ublk utility for transitioning
device state to quiesce states, then verify the feature via generic_10
by doing quiesce and recovery.

Cc: Yoav Cohen <yoav@nvidia.com>
Link: https://lore.kernel.org/linux-block/DM4PR12MB632807AB7CDCE77D1E5AB7D0A9B92@DM4PR12MB6328.namprd12.prod.outlook.com/
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20250522163523.406289-4-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
tools/testing/selftests/ublk/Makefile
tools/testing/selftests/ublk/kublk.c
tools/testing/selftests/ublk/test_common.sh
tools/testing/selftests/ublk/test_generic_04.sh
tools/testing/selftests/ublk/test_generic_05.sh
tools/testing/selftests/ublk/test_generic_11.sh [new file with mode: 0755]