dmflakey: support error_writes feature for dm-flakey
authorHou Tao <houtao1@huawei.com>
Thu, 11 Jan 2018 06:49:31 +0000 (14:49 +0800)
committerEryu Guan <eguan@redhat.com>
Fri, 12 Jan 2018 03:40:39 +0000 (11:40 +0800)
commitb237e01b12881d1ad02ba387b8fa32e89e44376b
tree857bea03d232518522fcd63f4e432c3c102bdbef
parent976c9ca6561ce5fc4a62c6cab1ecad0a92a98511
dmflakey: support error_writes feature for dm-flakey

Add _require_flakey_with_error_writes() to check the availability of
dm-flakey target and its error_writes feature, and support for
enabling FLAKEY_TABLE_ERROR table by passing FLAKEY_ERROR_WRITES to
_load_flakey_table().

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