diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2013-04-21 12:53:04 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2013-04-21 23:07:00 +0200 |
commit | 24f8daa13d82869fbe088f7edf3c95c11660b186 (patch) | |
tree | 1403dd87d65616ced6e3edf0552782ed6b89abff /lib | |
parent | 9e24d563c6e281a582bf1a98673305ce88d6cd05 (diff) | |
download | lvm2-24f8daa13d82869fbe088f7edf3c95c11660b186.tar.gz |
raid: test for target_pvs
If target_pvs is NULL do not call lv_is_on_pvs()
Diffstat (limited to 'lib')
-rw-r--r-- | lib/metadata/raid_manip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/metadata/raid_manip.c b/lib/metadata/raid_manip.c index 38ea2c283..f9d3861fa 100644 --- a/lib/metadata/raid_manip.c +++ b/lib/metadata/raid_manip.c @@ -934,7 +934,7 @@ static int _raid_extract_images(struct logical_volume *lv, uint32_t new_count, seg_metalv(seg, s)->name, seg_lv(seg, s)->name); } else { /* Conditions for second pass */ - if (!lv_is_on_pvs(seg_lv(seg, s), target_pvs) || + if (!target_pvs || !lv_is_on_pvs(seg_lv(seg, s), target_pvs) || !lv_is_on_pvs(seg_metalv(seg, s), target_pvs)) continue; |