diff options
author | Joe Thornber <thornber@redhat.com> | 2002-01-21 14:28:12 +0000 |
---|---|---|
committer | Joe Thornber <thornber@redhat.com> | 2002-01-21 14:28:12 +0000 |
commit | e586401ecbc401731ee482192fa55704a2fdf48d (patch) | |
tree | 61f11043ec99bad42b069a22ed1fb9b82421d42f /tools/pvchange.c | |
parent | 752e80cd5a92a662ea833c2123528791609c5441 (diff) | |
download | lvm2-e586401ecbc401731ee482192fa55704a2fdf48d.tar.gz lvm2-e586401ecbc401731ee482192fa55704a2fdf48d.tar.xz lvm2-e586401ecbc401731ee482192fa55704a2fdf48d.zip |
o Changed find_pv_in_vg, and find_lv_in_vg to return a struct pv_list * and
struct lv_list * respectively.
Diffstat (limited to 'tools/pvchange.c')
-rw-r--r-- | tools/pvchange.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/pvchange.c b/tools/pvchange.c index 959eb92d..9c5842d7 100644 --- a/tools/pvchange.c +++ b/tools/pvchange.c @@ -82,7 +82,7 @@ int pvchange(int argc, char **argv) int pvchange_single(struct physical_volume *pv) { struct volume_group *vg = NULL; - struct list *pvh; + struct pv_list *pvl; const char *pv_name = dev_name(pv->dev); @@ -97,12 +97,12 @@ int pvchange_single(struct physical_volume *pv) log_error("Unable to find volume group of %s", pv_name); return 0; } - if (!(pvh = find_pv_in_vg(vg, pv_name))) { + if (!(pvl = find_pv_in_vg(vg, pv_name))) { log_error("Unable to find %s in volume group %s", pv_name, vg->name); return 0; } - pv = &list_item(pvh, struct pv_list)->pv; + pv = &pvl->pv; if (!archive(vg)) return 0; } |