summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2011-03-01 14:19:10 +1100
committerStephen Rothwell <sfr@canb.auug.org.au>2011-03-01 14:19:10 +1100
commitd075a9bbfc738da2606b61f9427f7cd9c3eff7d1 (patch)
treec8b6c95e73a86b41e0cb9e4c2b03e73319b25325 /Documentation
parentb99548a796a5650631742c3a7c2dd535c89ae9e5 (diff)
parentde0fe84496af2fb104d5623937b1b6c0605f8273 (diff)
Merge branch 'quilt/device-mapper'
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/device-mapper/dm-flakey.txt18
1 files changed, 18 insertions, 0 deletions
diff --git a/Documentation/device-mapper/dm-flakey.txt b/Documentation/device-mapper/dm-flakey.txt
new file mode 100644
index 000000000000..115cccaa17ef
--- /dev/null
+++ b/Documentation/device-mapper/dm-flakey.txt
@@ -0,0 +1,18 @@
+dm-flakey
+=========
+
+This target is the same as the linear target except that it returns I/O
+errors periodically. It's been found useful in simulating failing
+devices for testing purposes.
+
+Starting from the time the table is loaded, the device is available for
+<up interval> seconds, then returns errors for <down interval> seconds,
+and then this cycle repeats.
+
+Parameters: <dev path> <offset> <up interval> <down interval>
+ <dev path>: Full pathname to the underlying block-device, or a
+ "major:minor" device-number.
+ <offset>: Starting sector within the device.
+ <up interval>: Number of seconds device is available.
+ <down interval>: Number of seconds device returns errors.
+