]> sourceware.org Git - lvm2.git/commit
thin: fix forbidden discards checks
authorZdenek Kabelac <zkabelac@redhat.com>
Sat, 2 Feb 2013 11:48:52 +0000 (12:48 +0100)
committerZdenek Kabelac <zkabelac@redhat.com>
Tue, 5 Feb 2013 13:38:16 +0000 (14:38 +0100)
commita5b9b4bf02b42baf1f1c033eaa98c5fe23951b43
treed85eddac5cbdfdee0f63d2333ad82c7e2fc5022f
parent11eaf1c98c3fac8524f227956f57c3d486740a1a
thin: fix forbidden discards checks

Instead of check for lv_is_active() for thin pool LV,
query the whole pool via new  pool_is_active().

Fixes a problem when we cannot change discards settings
for active pool device where the actual layer for pool
device was inactive, but thin volumes using thin pool
have been active.
WHATS_NEW
test/shell/discards-thin.sh
tools/lvchange.c
This page took 0.036228 seconds and 5 git commands to generate.