1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-28 02:50:41 +03:00

vgchange: use NULL 'feature' of lv_info call

When NULL is passed for info the call itself
already does the same evaluation.
This commit is contained in:
Zdenek Kabelac 2014-09-24 10:01:14 +02:00
parent 5b70bdc104
commit 93fbef1a45

View File

@ -23,15 +23,13 @@ static int _monitor_lvs_in_vg(struct cmd_context *cmd,
{
struct lv_list *lvl;
struct logical_volume *lv;
struct lvinfo info;
int r = 1;
dm_list_iterate_items(lvl, &vg->lvs) {
lv = lvl->lv;
if (!lv_info(cmd, lv, lv_is_thin_pool(lv) ? 1 : 0,
&info, 0, 0) ||
!info.exists)
NULL, 0, 0))
continue;
/*
* FIXME: Need to consider all cases... PVMOVE, etc