[dm-devel] [PATCH 01/24] dm: nest targets used for testing under DM_TEST_TARGETS
Mike Snitzer
snitzer at redhat.com
Thu Oct 24 18:30:14 UTC 2013
From: Joe Thornber <ejt at redhat.com>
Both the flakey and delay targets are generally used for testing. Other
test targets (and cache policies) will be introduced in the future.
Signed-off-by: Joe Thornber <ejt at redhat.com>
Signed-off-by: Mike Snitzer <snitzer at redhat.com>
---
drivers/md/Kconfig | 36 +++++++++++++++++++++---------------
1 file changed, 21 insertions(+), 15 deletions(-)
diff --git a/drivers/md/Kconfig b/drivers/md/Kconfig
index 30b426e..816e023 100644
--- a/drivers/md/Kconfig
+++ b/drivers/md/Kconfig
@@ -371,27 +371,12 @@ config DM_MULTIPATH_ST
If unsure, say N.
-config DM_DELAY
- tristate "I/O delaying target"
- depends on BLK_DEV_DM
- ---help---
- A target that delays reads and/or writes and can send
- them to different devices. Useful for testing.
-
- If unsure, say N.
-
config DM_UEVENT
bool "DM uevents"
depends on BLK_DEV_DM
---help---
Generate udev events for DM events.
-config DM_FLAKEY
- tristate "Flakey target"
- depends on BLK_DEV_DM
- ---help---
- A target that intermittently fails I/O for debugging purposes.
-
config DM_VERITY
tristate "Verity target support"
depends on BLK_DEV_DM
@@ -426,4 +411,25 @@ config DM_SWITCH
If unsure, say N.
+config DM_TEST_TARGETS
+ bool "DM test targets"
+ depends on BLK_DEV_DM
+ ---help---
+ Targets that are only useful for testing.
+
+config DM_FLAKEY
+ tristate "Flakey target (EXPERIMENTAL)"
+ depends on DM_TEST_TARGETS
+ ---help---
+ A target that intermittently fails I/O for debugging purposes.
+
+config DM_DELAY
+ tristate "I/O delaying target (EXPERIMENTAL)"
+ depends on DM_TEST_TARGETS
+ ---help---
+ A target that delays reads and/or writes and can send
+ them to different devices. Useful for testing.
+
+ If unsure, say N.
+
endif # MD
--
1.8.1.4
More information about the dm-devel
mailing list