1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

tests: show some more device info

When passdown is not there, look for possible reason.
This commit is contained in:
Zdenek Kabelac 2016-09-20 22:47:14 +02:00
parent 994df22b60
commit 9f6b006272

View File

@ -29,7 +29,12 @@ lvcreate -L10M -T $vg/pool
# Check change operations on a thin-pool without any thin LV # Check change operations on a thin-pool without any thin LV
# #
# discards_ARG (default is passdown) # 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 lvchange -vvvv --discards nopassdown $vg/pool
check grep_dmsetup table $vg-pool " no_discard_passdown" check grep_dmsetup table $vg-pool " no_discard_passdown"
check grep_dmsetup status $vg-pool " no_discard_passdown" check grep_dmsetup status $vg-pool " no_discard_passdown"