@@ -13,13 +13,13 @@ DESCRIPTION="stress device hotplugging"
TIMED=1
requires() {
- _have_module scsi_debug
- _have_driver sd_mod
+ _have_scsi_debug
+ _have_kernel_option BLK_DEV_SD
_have_driver sr_mod
}
stress_scsi_debug() {
- if ! _init_scsi_debug "$@"; then
+ if ! _configure_scsi_debug "$@"; then
return
fi
@@ -13,13 +13,13 @@ QUICK=1
requires() {
_have_blktrace
- _have_module scsi_debug
+ _have_scsi_debug
}
test() {
echo "Running ${TEST_NAME}"
- if ! _init_scsi_debug delay=0; then
+ if ! _configure_scsi_debug delay=0; then
return 1
fi
@@ -20,12 +20,12 @@ CAN_BE_ZONED=1
requires() {
_have_cgroup2_controller io
- _have_module scsi_debug
+ _have_scsi_debug
_have_fio
}
scsi_debug_stress_remove() {
- if ! _init_scsi_debug "$@"; then
+ if ! _configure_scsi_debug "$@"; then
return
fi