diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2016-03-02 20:59:03 +0100 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2016-03-03 10:17:03 +0100 |
commit | e04a0184cb046c28428c65e52afc28ec591c50cf (patch) | |
tree | 9f00897c9430997019857da15eabf0a6371d38b8 /tools/vgreduce.c | |
parent | a975dc530e31fec883bbf6e2db7a6b48cb3b789d (diff) | |
download | lvm2-e04a0184cb046c28428c65e52afc28ec591c50cf.tar.gz |
cleanup: use lv_is_partial
Check for PARTIAL_LV flag in standard way.
Diffstat (limited to 'tools/vgreduce.c')
-rw-r--r-- | tools/vgreduce.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/vgreduce.c b/tools/vgreduce.c index 41b5b83ca..e7c66fe4f 100644 --- a/tools/vgreduce.c +++ b/tools/vgreduce.c @@ -51,7 +51,7 @@ static int _consolidate_vg(struct cmd_context *cmd, struct volume_group *vg) int r = 1; dm_list_iterate_items(lvl, &vg->lvs) - if (lvl->lv->status & PARTIAL_LV) { + if (lv_is_partial(lvl->lv)) { log_warn("WARNING: Partial LV %s needs to be repaired " "or removed. ", lvl->lv->name); r = 0; @@ -88,7 +88,7 @@ static int _make_vg_consistent(struct cmd_context *cmd, struct volume_group *vg) lv = lvl->lv; /* Are any segments of this LV on missing PVs? */ - if (lv->status & PARTIAL_LV) { + if (lv_is_partial(lv)) { if (seg_is_raid(first_seg(lv))) { if (!lv_raid_remove_missing(lv)) return_0; |