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:
parent
5597dc3652
commit
cf09cf0cd3
@ -250,7 +250,6 @@ 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.");
|
||||
@ -259,7 +258,6 @@ struct dm_list *lvm_vg_list_lvs(vg_t vg)
|
||||
lvs->lv = lvl->lv;
|
||||
dm_list_add(list, &lvs->list);
|
||||
}
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user