Lines Matching +full:bypass +full:- +full:enable
1 dm-dust
5 locations, and the ability to enable the emulation of the failures
27 With dm-dust, the user can use the "addbadblock" and "removebadblock"
29 "enable" and "disable" messages to modulate the state of whether the
31 This allows the pre-writing of test data and metadata prior to
35 ----------------
51 ------------------
53 First, find the size (in 512-byte sectors) of the device to be used::
55 $ sudo blockdev --getsz /dev/vdb1
58 Create the dm-dust device:
63 $ sudo dmsetup create dust1 --table '0 33552384 dust /dev/vdb1 0 512'
69 $ sudo dmsetup create dust1 --table '0 33552384 dust /dev/vdb1 0 4096'
71 Check the status of the read behavior ("bypass" indicates that all I/O
76 0 33552384 dust 252:17 bypass verbose
87 ------------------------------
94 kernel: device-mapper: dust: badblock added at block 60
97 kernel: device-mapper: dust: badblock added at block 67
100 kernel: device-mapper: dust: badblock added at block 72
103 While the device is in "bypass" mode, reads and writes will succeed::
106 0 33552384 dust 252:17 bypass
109 ----------------------------
111 To enable the "fail read on bad block" behavior, send the "enable" message::
113 $ sudo dmsetup message dust1 0 enable
114 kernel: device-mapper: dust: enabling read failures on bad sectors
135 kernel: device-mapper: dust: block 60 removed from badblocklist by write
136 kernel: device-mapper: dust: block 67 removed from badblocklist by write
137 kernel: device-mapper: dust: block 72 removed from badblocklist by write
138 kernel: device-mapper: dust: block 87 removed from badblocklist by write
141 -----------------------------------
147 device-mapper: message ioctl on dust1 failed: Invalid argument
148 kernel: device-mapper: dust: block 88 already in badblocklist
154 device-mapper: message ioctl on dust1 failed: Invalid argument
155 kernel: device-mapper: dust: block 87 not found in badblocklist
158 -------------------------------------------------------
171 --------------------------------
189 or having to "enable" the bad block emulation.
192 ---------------------------
210 --------------------------
226 ---------------------
245 enable
249 --------------
256 ----------
283 -------------
290 dm-flakey fails all I/O from all block locations at a specified time