From 0c9dda75774afaba195cd8b9d0617e8d09b88fde Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Sat, 8 Sep 2012 04:43:07 +0000 Subject: [PATCH] scst: Document CONFIG_SCST_DEBUG_SYSFS_EAGAIN Signed-off-by: Bart Van Assche git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4509 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/README | 6 ++++++ scst/src/Makefile | 1 + 2 files changed, 7 insertions(+) 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