dmflakey: support multiple dm targets for a dm-flakey device
authorHou Tao <houtao1@huawei.com>
Thu, 11 Jan 2018 06:49:30 +0000 (14:49 +0800)
committerEryu Guan <eguan@redhat.com>
Fri, 12 Jan 2018 03:40:39 +0000 (11:40 +0800)
commit976c9ca6561ce5fc4a62c6cab1ecad0a92a98511
tree76f67b864191d3f9ee29aa6f8f49d81bc7266582
parent2931de473cc18a8f866fa0a08805d50ed0f4079b
dmflakey: support multiple dm targets for a dm-flakey device

dm-flakey can be used to emulate IO write error, however, when we
also need to prevent the IO error for a specific range of the block
device (eg., the log region of a XFS), we need to specify multiple
dm targets for the dm device.

Option --table can not accommodate the multiple dm targets case, so
let dmsetup get the possible-multiple-targets table from standard
input.

Signed-off-by: Hou Tao <houtao1@huawei.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
common/dmflakey