treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / Documentation / admin-guide / device-mapper / delay.rst
blob917ba8c333591b53f34b7a2cb0e97b8a811fce75
1 ========
2 dm-delay
3 ========
5 Device-Mapper's "delay" target delays reads and/or writes
6 and maps them to different devices.
8 Parameters::
10     <device> <offset> <delay> [<write_device> <write_offset> <write_delay>
11                                [<flush_device> <flush_offset> <flush_delay>]]
13 With separate write parameters, the first set is only used for reads.
14 Offsets are specified in sectors.
15 Delays are specified in milliseconds.
17 Example scripts
18 ===============
22         #!/bin/sh
23         # Create device delaying rw operation for 500ms
24         echo "0 `blockdev --getsz $1` delay $1 0 500" | dmsetup create delayed
28         #!/bin/sh
29         # Create device delaying only write operation for 500ms and
30         # splitting reads and writes to different devices $1 $2
31         echo "0 `blockdev --getsz $1` delay $1 0 0 $2 0 500" | dmsetup create delayed