1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-27 01:55:10 +03:00

Fix lvs_in_vg_opened counting.

This commit is contained in:
Alasdair Kergon 2004-04-14 17:33:04 +00:00
parent d5d70df747
commit c8f601b30f

View File

@ -540,7 +540,7 @@ int lvs_in_vg_opened(struct volume_group *vg)
list_iterate(lvh, &vg->lvs) {
lv = list_item(lvh, struct lv_list)->lv;
count += (_lv_open_count(lv) == 1);
count += (_lv_open_count(lv) > 0);
}
return count;