summaryrefslogtreecommitdiffstats
path: root/tools/pvscan.c
diff options
context:
space:
mode:
authorAlasdair Kergon <agk@redhat.com>2008-11-03 22:14:30 +0000
committerAlasdair Kergon <agk@redhat.com>2008-11-03 22:14:30 +0000
commit2c44337bd5ff7aa217a39003460cba4742a1b867 (patch)
tree96e88ac95f4a573f099338ec48df36c9c55ff926 /tools/pvscan.c
parent28f60ff82f7c13236475129295a88a01d61838c7 (diff)
downloadlvm2-2c44337bd5ff7aa217a39003460cba4742a1b867.tar.gz
lvm2-2c44337bd5ff7aa217a39003460cba4742a1b867.tar.xz
lvm2-2c44337bd5ff7aa217a39003460cba4742a1b867.zip
Right, a simple build (without options) is working again.
Diffstat (limited to 'tools/pvscan.c')
-rw-r--r--tools/pvscan.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/pvscan.c b/tools/pvscan.c
index 519720fc..494af3d9 100644
--- a/tools/pvscan.c
+++ b/tools/pvscan.c
@@ -103,7 +103,7 @@ int pvscan(struct cmd_context *cmd, int argc __attribute((unused)),
int new_pvs_found = 0;
int pvs_found = 0;
- struct list *pvslist;
+ struct dm_list *pvslist;
struct pv_list *pvl;
struct physical_volume *pv;
@@ -139,13 +139,13 @@ int pvscan(struct cmd_context *cmd, int argc __attribute((unused)),
}
/* eliminate exported/new if required */
- list_iterate_items(pvl, pvslist) {
+ dm_list_iterate_items(pvl, pvslist) {
pv = pvl->pv;
if ((arg_count(cmd, exported_ARG)
&& !(pv_status(pv) & EXPORTED_VG))
|| (arg_count(cmd, novolumegroup_ARG) && (!is_orphan(pv)))) {
- list_del(&pvl->list);
+ dm_list_del(&pvl->list);
continue;
}
@@ -171,7 +171,7 @@ int pvscan(struct cmd_context *cmd, int argc __attribute((unused)),
/* find maximum pv name length */
pv_max_name_len = vg_max_name_len = 0;
- list_iterate_items(pvl, pvslist) {
+ dm_list_iterate_items(pvl, pvslist) {
pv = pvl->pv;
len = strlen(pv_dev_name(pv));
if (pv_max_name_len < len)
@@ -183,7 +183,7 @@ int pvscan(struct cmd_context *cmd, int argc __attribute((unused)),
pv_max_name_len += 2;
vg_max_name_len += 2;
- list_iterate_items(pvl, pvslist)
+ dm_list_iterate_items(pvl, pvslist)
_pvscan_display_single(cmd, pvl->pv, NULL);
if (!pvs_found) {