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:
Vladislav Bolkhovitin
2014-12-19 03:55:14 +00:00
parent d9c9a8b8a2
commit 94d1c2fc6c
10 changed files with 35 additions and 32 deletions
+1 -1
View File
@@ -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