mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-19 14:04:17 +03:00
Fix lvs_in_vg_opened counting.
This commit is contained in:
parent
d5d70df747
commit
c8f601b30f
@ -540,7 +540,7 @@ int lvs_in_vg_opened(struct volume_group *vg)
|
|||||||
|
|
||||||
list_iterate(lvh, &vg->lvs) {
|
list_iterate(lvh, &vg->lvs) {
|
||||||
lv = list_item(lvh, struct lv_list)->lv;
|
lv = list_item(lvh, struct lv_list)->lv;
|
||||||
count += (_lv_open_count(lv) == 1);
|
count += (_lv_open_count(lv) > 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
return count;
|
return count;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user