FS/XFS testing framework
 help / color / mirror / Atom feed
* [PATCH 1/2] dmflakey: support multiple dm targets for a dm-flakey device
@ 2017-10-26  7:37 Hou Tao
  2017-10-26  7:37 ` [PATCH 2/2] xfs: test for umount hang caused by the pending dquota log item in AIL Hou Tao
  0 siblings, 1 reply; 8+ messages in thread
From: Hou Tao @ 2017-10-26  7:37 UTC (permalink / raw)
  To: fstests; +Cc: linux-xfs, darrick.wong, cmaiolino

dm-flakey is used to emulate IO 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>
---
 common/dmflakey | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/dmflakey b/common/dmflakey
index 4434307..16b82d2 100644
--- a/common/dmflakey
+++ b/common/dmflakey
@@ -77,7 +77,7 @@ _load_flakey_table()
 	$DMSETUP_PROG suspend $suspend_opt flakey-test
 	[ $? -ne 0 ] && _fatal "failed to suspend flakey-test"
 
-	$DMSETUP_PROG load flakey-test --table "$table"
+	echo -e "$table" | $DMSETUP_PROG load flakey-test
 	[ $? -ne 0 ] && _fatal "failed to load table into flakey-test"
 
 	$DMSETUP_PROG resume flakey-test
-- 
2.7.5


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-11-07 10:38 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-26  7:37 [PATCH 1/2] dmflakey: support multiple dm targets for a dm-flakey device Hou Tao
2017-10-26  7:37 ` [PATCH 2/2] xfs: test for umount hang caused by the pending dquota log item in AIL Hou Tao
2017-10-31  6:46   ` Eryu Guan
2017-10-31 12:34     ` Hou Tao
2017-10-31 14:00       ` Eryu Guan
2017-11-07 10:37         ` Hou Tao
2017-10-31  7:00   ` Eryu Guan
2017-10-31 12:37     ` Hou Tao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox