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/pvscan.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/pvscan.c')
-rw-r--r-- | tools/pvscan.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/pvscan.c b/tools/pvscan.c index 41ac2a5a..86bf9923 100644 --- a/tools/pvscan.c +++ b/tools/pvscan.c @@ -63,7 +63,7 @@ int pvscan(int argc, char **argv) /* eliminate exported/new if required */ list_iterate(pvh, pvs) { pvl = list_item(pvh, struct pv_list); - pv = &pvl->pv; + pv = pvl->pv; if ((arg_count(exported_ARG) && !(pv->status & EXPORTED_VG)) || (arg_count(novolumegroup_ARG) && (*pv->vg_name))) { @@ -96,7 +96,7 @@ int pvscan(int argc, char **argv) /* find maximum pv name length */ pv_max_name_len = vg_max_name_len = 0; list_iterate(pvh, pvs) { - pv = &list_item(pvh, struct pv_list)->pv; + pv = list_item(pvh, struct pv_list)->pv; len = strlen(dev_name(pv->dev)); if (pv_max_name_len < len) pv_max_name_len = len; @@ -108,7 +108,7 @@ int pvscan(int argc, char **argv) vg_max_name_len += 2; list_iterate(pvh, pvs) - pvscan_display_single(&list_item(pvh, struct pv_list)->pv); + pvscan_display_single(list_item(pvh, struct pv_list)->pv); if (!pvs_found) { log_print("No matching physical volumes found"); |