1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-02-28 05:57:49 +03:00

When a scsi_debug modprobe fails, skip the test instead of failing it.

This commit is contained in:
Petr Rockai 2010-03-28 15:52:04 +00:00
parent 3318c41356
commit eb10fc962b

View File

@ -188,7 +188,7 @@ prepare_scsi_debug_dev()
local devs_before=`get_sd_devs_`
# NOTE: it will _never_ make sense to pass num_tgts param;
# last param wins.. so num_tgts=1 is imposed
modprobe scsi_debug dev_size_mb=$DEV_SIZE $SCSI_DEBUG_PARAMS num_tgts=1
modprobe scsi_debug dev_size_mb=$DEV_SIZE $SCSI_DEBUG_PARAMS num_tgts=1 || exit 200
sleep 2 # allow for async Linux SCSI device registration
local devs_after=`get_sd_devs_`