Skip to contentSkip to conversation

Request for input on new options for scsi_debug driver

DISCUSSION Laurence Oberman 1 participant 1 message Feb 3, 2018 SCSI

lore
Share & tools
lore
#0 lore raw

Hello

During various fault injection scenarios it would be useful to be able to pick a specific starting sector and number of follow on sectors where a MEDIUM ERROR for reads would be returned against a scsi-debug device.

Right now this only works against sector 0x1234 and OPT_MEDIUM_ERR_NUM follow on sectors.
However during testing of md-raid and other scenarios I wanted more flexibility.

The idea is add 2 new parameters:
medium_error_start
medium_error_count

If medium_error_start is set then we don't use the default of OPT_MEDIUM_ERR_ADDR, but use that set value.
If medium_error_count is set we use that value otherwise default to OPT_MEDIUM_ERR_NUM.

Should I send a patch for this, wanted to find out if this would be acceptable before I waste anybody's time having to review.

Regards
Laurence Oberman