mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-18 21:26:31 +00:00
Replace in cases, where sporadic failures are possible, HARDWARE ERROR
by INTERNAL TARGET FAILURE, which is retriable (some OS'es don't retry HARDWARE ERROR) Reported and suggested by Shahar Salzman <shahar.salzman@kaminario.com> git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5940 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
+1
-1
@@ -209,7 +209,7 @@ static int do_exec(struct vdisk_cmd *vcmd)
|
||||
|
||||
#ifdef DEBUG_SENSE
|
||||
if ((random() % 100000) == 75) {
|
||||
set_cmd_error(vcmd, SCST_LOAD_SENSE(scst_sense_hardw_error));
|
||||
set_cmd_error(vcmd, SCST_LOAD_SENSE(scst_sense_internal_failure));
|
||||
goto out;
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user