diff options
author | Joe Thornber <thornber@redhat.com> | 2002-01-21 16:05:23 +0000 |
---|---|---|
committer | Joe Thornber <thornber@redhat.com> | 2002-01-21 16:05:23 +0000 |
commit | cc282870ddab49f16c7477711baa770512e7ac8e (patch) | |
tree | f48ad93b52957bf41d3205574515f15b81582351 /tools/vgremove.c | |
parent | 751acb380099852d906252ca2366e8f2ba9d0178 (diff) | |
download | lvm2-cc282870ddab49f16c7477711baa770512e7ac8e.tar.gz lvm2-cc282870ddab49f16c7477711baa770512e7ac8e.tar.xz lvm2-cc282870ddab49f16c7477711baa770512e7ac8e.zip |
o Changed
struct pv_list {
struct list list;
struct physical_volume pv;
};
to
struct pv_list {
struct list list;
struct physical_volume *pv;
};
o New function in toollib 'create_pv_list', which creates a list of pv's
from a given command line array of pv's.
o Changed lvcreate/extend to use this (fixes lvextend [pv list] bug).
Diffstat (limited to 'tools/vgremove.c')
-rw-r--r-- | tools/vgremove.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/vgremove.c b/tools/vgremove.c index 8d9a4f1f..b7350495 100644 --- a/tools/vgremove.c +++ b/tools/vgremove.c @@ -58,7 +58,7 @@ static int vgremove_single(const char *vg_name) /* init physical volumes */ list_iterate(pvh, &vg->pvs) { - pv = &list_item(pvh, struct pv_list)->pv; + pv = list_item(pvh, struct pv_list)->pv; log_verbose("Removing physical volume %s from volume group %s", dev_name(pv->dev), vg_name); *pv->vg_name = '\0'; |