Lines Matching +full:512 +full:- +full:bytes
1 dm-dust
27 With dm-dust, the user can use the "addbadblock" and "removebadblock"
31 This allows the pre-writing of test data and metadata prior to
35 ----------------
46 Block size in bytes
48 (minimum 512, maximum 1073741824, must be a power of 2)
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:
59 (For a device with a block size of 512 bytes)
63 $ sudo dmsetup create dust1 --table '0 33552384 dust /dev/vdb1 0 512'
65 (For a device with a block size of 4096 bytes)
69 $ sudo dmsetup create dust1 --table '0 33552384 dust /dev/vdb1 0 4096'
78 $ sudo dd if=/dev/mapper/dust1 of=/dev/null bs=512 count=128 iflag=direct
82 $ sudo dd if=/dev/zero of=/dev/mapper/dust1 bs=512 count=128 oflag=direct
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
109 ----------------------------
114 kernel: device-mapper: dust: enabling read failures on bad sectors
122 $ sudo dd if=/dev/mapper/dust1 of=/dev/null bs=512 count=1 skip=67 iflag=direct
126 0 bytes copied, 0.00040651 s, 0.0 kB/s
131 $ sudo dd if=/dev/zero of=/dev/mapper/dust1 bs=512 count=128 oflag=direct
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 --------------------------------
192 ---------------------------
210 --------------------------
226 ---------------------
249 --------------
256 ----------
283 -------------
290 dm-flakey fails all I/O from all block locations at a specified time