[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20221109155950.3536976-1-haowenchao@huawei.com>
Date: Wed, 9 Nov 2022 10:59:45 -0500
From: Wenchao Hao <haowenchao@...wei.com>
To: "James E . J . Bottomley" <jejb@...ux.ibm.com>,
"Martin K . Petersen" <martin.petersen@...cle.com>,
Doug Gilbert <dgilbert@...erlog.com>
CC: <linux-scsi@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
Wenchao Hao <haowenchao@...wei.com>
Subject: [RFC PATCH 0/5] scsi:scsi_debug:Add error injection for single lun
The original error injection mechanism was based on scsi_host which
could not inject fault for a single SCSI device.
This patchset provides the ability to inject errors for a single
SCSI device. Now we supports inject timeout errors, queuecommand
errors, and hostbyte, driverbyte, statusbyte, and sense data for
specific SCSI Command
The first patch add an sysfs interface to add and inquiry single
device's error injection info; the second patch defined how to remove
an injection which has been added. The following 3 patches use the
injection info and generate the related error type.
Wenchao Hao (5):
scsi:scsi_debug: Add sysfs interface to manager single devices' error inject
scsi:scsi_debug: Add interface to remove injection which has been added
scsi:scsi_debug: make command timeout if timeout error is injected
scsi:scsi_debug: Return failed value for specific command's queuecommand
scsi:scsi_debug: fail specific scsi command with result and sense data
drivers/scsi/scsi_debug.c | 295 ++++++++++++++++++++++++++++++++++++++
1 file changed, 295 insertions(+)
--
2.35.3
Powered by blists - more mailing lists