]> sourceware.org Git - lvm2.git/commit
tests: add error_dev aux
authorZdenek Kabelac <zkabelac@redhat.com>
Sat, 1 Dec 2012 16:09:18 +0000 (17:09 +0100)
committerZdenek Kabelac <zkabelac@redhat.com>
Sun, 2 Dec 2012 16:55:49 +0000 (17:55 +0100)
commitc5e2f08cf9134ebf2d377ad050a707c0268d1444
treedb2c88859092a4bae5f47c7383af5a24cf88bb94
parent0dc6ba8309300b576f56e28dc71fba760b3e52df
tests: add error_dev aux

Aux function to replace PV with specifically damaged device.
Usage:

   aux error_dev "$dev1" 8:32 96:8

Replaces from 8 sector 32 error 512b sectors
and from 96 sector next 8 sectors will fail on rw.
Rest of device is preserved.

For testing:
dd if="$dev1" of=x bs=512 count=104 conv=sync,noerror iflag=direct
test/lib/aux.sh
This page took 0.037825 seconds and 5 git commands to generate.