1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-02 01:18:26 +03:00

Revert "lvm2app: lvm_vg_list_lvs filter hidden LVs"

This reverts commit a2b5147600.

The function has behaved like this for a long time so let's
not change this part of the API.
This commit is contained in:
Alasdair G Kergon 2013-07-24 01:49:18 +01:00
parent 5597dc3652
commit cf09cf0cd3

View File

@ -250,15 +250,13 @@ struct dm_list *lvm_vg_list_lvs(vg_t vg)
dm_list_init(list);
dm_list_iterate_items(lvl, &vg->lvs) {
if (lv_is_visible(lvl->lv)) {
if (!(lvs = dm_pool_zalloc(vg->vgmem, sizeof(*lvs)))) {
log_errno(ENOMEM,
"Memory allocation fail for lvm_lv_list.");
return NULL;
}
lvs->lv = lvl->lv;
dm_list_add(list, &lvs->list);
if (!(lvs = dm_pool_zalloc(vg->vgmem, sizeof(*lvs)))) {
log_errno(ENOMEM,
"Memory allocation fail for lvm_lv_list.");
return NULL;
}
lvs->lv = lvl->lv;
dm_list_add(list, &lvs->list);
}
return list;
}