diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2014-09-24 10:01:14 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2014-09-24 10:54:47 +0200 |
commit | 93fbef1a45948c1f97fe484b4dd65179afa5051d (patch) | |
tree | 87e59821a48bf5b90b8bbba5c38cf617c1e0a851 | |
parent | 5b70bdc104991056a9e1c3f97c07b6f0ba3ae998 (diff) | |
download | lvm2-93fbef1a45948c1f97fe484b4dd65179afa5051d.tar.gz |
vgchange: use NULL 'feature' of lv_info call
When NULL is passed for info the call itself
already does the same evaluation.
-rw-r--r-- | tools/vgchange.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/vgchange.c b/tools/vgchange.c index e81791075..350d8a381 100644 --- a/tools/vgchange.c +++ b/tools/vgchange.c @@ -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 |