diff --git a/scst/README b/scst/README index b5bd7c81d..c167fa1c7 100644 --- a/scst/README +++ b/scst/README @@ -289,6 +289,12 @@ in/out in Makefile: circle around ABORTs and RESETs code. Needs CONFIG_SCST_DEBUG turned on. + - CONFIG_SCST_DEBUG_SYSFS_EAGAIN - if defined, makes three out of four + reads of sysfs attributes fail with -EAGAIN and also makes every sysfs + write fail with -EAGAIN. This is useful to test -EAGAIN handling in user + space tools like e.g. scstadmin. See also the documentation of the + last_sysfs_mgmt_res sysfs attribute for more information. + - CONFIG_SCST_STRICT_SERIALIZING - if defined, makes SCST send all commands to underlying SCSI device synchronously, one after one. This makes task management more reliable, with cost of some performance penalty. This diff --git a/scst/src/Makefile b/scst/src/Makefile index de37b8d62..878dfd89b 100644 --- a/scst/src/Makefile +++ b/scst/src/Makefile @@ -142,6 +142,7 @@ EXTRA_CFLAGS += -DCONFIG_SCST_DEBUG -g -fno-inline -fno-inline-functions #EXTRA_CFLAGS += -DCONFIG_SCST_DEBUG_RETRY #EXTRA_CFLAGS += -DCONFIG_SCST_DEBUG_OOM #EXTRA_CFLAGS += -DCONFIG_SCST_DEBUG_SN +#EXTRA_CFLAGS += -DCONFIG_SCST_DEBUG_SYSFS_EAGAIN #EXTRA_CFLAGS += -DCONFIG_SCST_MEASURE_LATENCY