From 9f6b0062727e9ef33610880444eaee857de1ab92 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Tue, 20 Sep 2016 22:47:14 +0200 Subject: [PATCH] tests: show some more device info When passdown is not there, look for possible reason. --- test/shell/lvchange-thin.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/shell/lvchange-thin.sh b/test/shell/lvchange-thin.sh index f2b33b778..f94340109 100644 --- a/test/shell/lvchange-thin.sh +++ b/test/shell/lvchange-thin.sh @@ -29,7 +29,12 @@ lvcreate -L10M -T $vg/pool # Check change operations on a thin-pool without any thin LV # # discards_ARG (default is passdown) -check grep_dmsetup status $vg-pool " discard_passdown" +check grep_dmsetup status $vg-pool " discard_passdown" || { + # trace device layout + grep -r "" /sys/block/* + die "Device was expected to support passdown" +} + lvchange -vvvv --discards nopassdown $vg/pool check grep_dmsetup table $vg-pool " no_discard_passdown" check grep_dmsetup status $vg-pool " no_discard_passdown"