master - filter: filter-usable: consider snapshot and origin LV as unusable if its component is suspended
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=1e6a926e857d8df767415c6ff91d4dd1de74f363 Commit: 1e6a926e857d8df767415c6ff91d4dd1de74f363 Parent: a9bc53d5f33afd5c4c3ad36450146f753c568a7c Author: Peter Rajnoha <[email protected]> AuthorDate: Wed Jun 17 13:37:53 2015 +0200 Committer: Peter Rajnoha <[email protected]> CommitterDate: Wed Jun 17 13:37:53 2015 +0200
filter: filter-usable: consider snapshot and origin LV as unusable if its component is suspended
Note that this is just a quick fix and it needs more robust fix to encompass any combination, not just the (old) snapshot one!
This started with this report:
https://bugzilla.redhat.com/show_bug.cgi?id=1219222
If we have devices/ignore_suspended_devices=1 set based on which we filter out suspended devices as unusable (or if we ignore suspended devices by force, e.g. during lvconvert called from dmeventd) and when we have snapshot and snapshot origin devices in the play, we need to look at their components unerneath (*-real and *-cow) to check if they're not suspended. If they are, the snapshot/snapshot origin is not usable as well and hence it needs to be filtered out by filter-usable.c code which does suspended device filtering.
Not going into much details here, more details are in the bugzilla mentioned above. However, this is a quick fix since snapshot and this exact situation is not the only one. So this is something that needs to be revisited and fixed properly with full dm tree and checking the whole stack to state whether the device at the very top is usable or not.
--- WHATS_NEW | 1 + lib/activate/dev_manager.c | 96 ++++++++++++++++++++++++++++++++++++++++--- 2 files changed, 90 insertions(+), 7 deletions(-)
WHATS_NEW +1 -0
@@ -1,5 +1,6 @@ Version 2.02.122 - ================================= + Consider snapshot and origin LV as unusable if its component is suspended. Fix lvmconfig segfault on settings with undefined default value (2.02.120). Version 2.02.121 - 12th June 2015
lib/activate/dev_manager.c +89 -7
110 lines not on this page · raw message