Skip to contentSkip to conversation

scsi_debug fault-injection question

DISCUSSION Randy Dunlap 2 participants 2 messages Jun 11, 2007 SCSI

lore
Share & tools
lore
#0 lore raw

Hi Doug,

scsi_debug.c says:

MODULE_PARM_DESC(every_nth, "timeout every nth command(def=100)");

I don't see where the default of 100 is set.

#define DEF_EVERY_NTH 0
...
static int scsi_debug_every_nth = DEF_EVERY_NTH;

Can you clarify for me, please?

Thanks.
---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***

#1 lore raw
Quoted 6 lines · Randy Dunlap

Hi Doug,

scsi_debug.c says:

MODULE_PARM_DESC(every_nth, "timeout every nth command(def=100)");

Quoted 8 lines

I don't see where the default of 100 is set.

#define DEF_EVERY_NTH 0
...
static int scsi_debug_every_nth = DEF_EVERY_NTH;

Can you clarify for me, please?

Randy,
s/100/0/

The string in MODULE_PARM_DESC is wrong. The support web page, http://www.torque.net/sg/sdebug26.html
is accurate stating the default is 0 and notes:
"for error injection: 0 -> off".

Doug Gilbert