From: Joe Thornber Subject: dm: nest targets used for testing under DM_TEST_TARGETS 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 Signed-off-by: Mike Snitzer --- drivers/md/Kconfig | 36 +++++++++++++++++++++--------------- 1 file changed, 21 insertions(+), 15 deletions(-) Index: linux/drivers/md/Kconfig =================================================================== --- linux.orig/drivers/md/Kconfig +++ linux/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