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/pvchange.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/pvchange.c')
-rw-r--r-- | tools/pvchange.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/pvchange.c b/tools/pvchange.c index 9c5842d7..d5c876b0 100644 --- a/tools/pvchange.c +++ b/tools/pvchange.c @@ -69,7 +69,7 @@ int pvchange(int argc, char **argv) list_iterate(pvh, pvs) { total++; done += pvchange_single( - &list_item(pvh, struct pv_list)->pv); + list_item(pvh, struct pv_list)->pv); } } @@ -102,7 +102,7 @@ int pvchange_single(struct physical_volume *pv) pv_name, vg->name); return 0; } - pv = &pvl->pv; + pv = pvl->pv; if (!archive(vg)) return 0; } |