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,15 +250,13 @@ struct dm_list *lvm_vg_list_lvs(vg_t vg)
|
|||||||
dm_list_init(list);
|
dm_list_init(list);
|
||||||
|
|
||||||
dm_list_iterate_items(lvl, &vg->lvs) {
|
dm_list_iterate_items(lvl, &vg->lvs) {
|
||||||
if (lv_is_visible(lvl->lv)) {
|
if (!(lvs = dm_pool_zalloc(vg->vgmem, sizeof(*lvs)))) {
|
||||||
if (!(lvs = dm_pool_zalloc(vg->vgmem, sizeof(*lvs)))) {
|
log_errno(ENOMEM,
|
||||||
log_errno(ENOMEM,
|
"Memory allocation fail for lvm_lv_list.");
|
||||||
"Memory allocation fail for lvm_lv_list.");
|
return NULL;
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
lvs->lv = lvl->lv;
|
|
||||||
dm_list_add(list, &lvs->list);
|
|
||||||
}
|
}
|
||||||
|
lvs->lv = lvl->lv;
|
||||||
|
dm_list_add(list, &lvs->list);
|
||||||
}
|
}
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user