mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-08 08:58:50 +03:00
tests: discard update
This commit is contained in:
parent
cbfdb87358
commit
96f303eb08
@ -30,8 +30,12 @@ lvcreate -L10M -T $vg/pool
|
||||
# tests for checking thin-pool discard passdown are skipped
|
||||
pvmajor=$(get pv_field "$dev1" major)
|
||||
pvminor=$(get pv_field "$dev1" minor)
|
||||
test "$(< "/sys/dev/block/$pvmajor:$pvminor/queue/discard_granularity")" -ne 0 || \
|
||||
no_discard=1
|
||||
|
||||
if test "$(< "/sys/dev/block/$pvmajor:$pvminor/queue/discard_granularity")" -eq 0 ; then
|
||||
no_discard=1
|
||||
else
|
||||
no_discard=
|
||||
fi
|
||||
|
||||
#
|
||||
# Check change operations on a thin-pool without any thin LV
|
||||
|
Loading…
x
Reference in New Issue
Block a user