summaryrefslogtreecommitdiffstats
path: root/drivers/md/Kconfig
diff options
context:
space:
mode:
authorJosef Bacik2015-03-20 15:50:37 +0100
committerMike Snitzer2015-04-15 18:10:24 +0200
commit0e9cebe724597a76ab1b0ebc0a21e16f7db11b47 (patch)
tree8217c6cea86697a985a7f88ff4240bb93277db84 /drivers/md/Kconfig
parentdm table: use bool function return values of true/false not 1/0 (diff)
downloadkernel-qcow2-linux-0e9cebe724597a76ab1b0ebc0a21e16f7db11b47.tar.gz
kernel-qcow2-linux-0e9cebe724597a76ab1b0ebc0a21e16f7db11b47.tar.xz
kernel-qcow2-linux-0e9cebe724597a76ab1b0ebc0a21e16f7db11b47.zip
dm: add log writes target
Introduce a new target that is meant for file system developers to test file system integrity at particular points in the life of a file system. We capture all write requests and associated data and log them to a separate device for later replay. There is a userspace utility to do this replay. The idea behind this is to give file system developers a tool to verify that the file system is always consistent. Signed-off-by: Josef Bacik <jbacik@fb.com> Reviewed-by: Zach Brown <zab@zabbo.net> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/Kconfig')
-rw-r--r--drivers/md/Kconfig16
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/md/Kconfig b/drivers/md/Kconfig
index 109f9dcc9cab..6ddc983417d5 100644
--- a/drivers/md/Kconfig
+++ b/drivers/md/Kconfig
@@ -443,4 +443,20 @@ config DM_SWITCH
If unsure, say N.
+config DM_LOG_WRITES
+ tristate "Log writes target support"
+ depends on BLK_DEV_DM
+ ---help---
+ This device-mapper target takes two devices, one device to use
+ normally, one to log all write operations done to the first device.
+ This is for use by file system developers wishing to verify that
+ their fs is writing a consitent file system at all times by allowing
+ them to replay the log in a variety of ways and to check the
+ contents.
+
+ To compile this code as a module, choose M here: the module will
+ be called dm-log-writes.
+
+ If unsure, say N.
+
endif # MD