summaryrefslogtreecommitdiffstats
path: root/tools/pvchange.c
diff options
context:
space:
mode:
authorJoe Thornber <thornber@redhat.com>2001-10-31 12:47:01 +0000
committerJoe Thornber <thornber@redhat.com>2001-10-31 12:47:01 +0000
commit1b9fcf48b1132fa382820c55048d13b5d83621b9 (patch)
treec75de9a39b6867409f1b454d602380b5549e9f25 /tools/pvchange.c
parentb892f8ecb64d60667dbb679867f885d72e537e1a (diff)
downloadlvm2-1b9fcf48b1132fa382820c55048d13b5d83621b9.tar.gz
lvm2-1b9fcf48b1132fa382820c55048d13b5d83621b9.tar.xz
lvm2-1b9fcf48b1132fa382820c55048d13b5d83621b9.zip
o LGPL list implementation
Diffstat (limited to 'tools/pvchange.c')
-rw-r--r--tools/pvchange.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/pvchange.c b/tools/pvchange.c
index 7fbdc4ce..94dae99a 100644
--- a/tools/pvchange.c
+++ b/tools/pvchange.c
@@ -31,7 +31,7 @@ int pvchange(int argc, char **argv)
struct physical_volume *pv;
char *pv_name;
- struct list_head *pvh, *pvs;
+ struct list *pvh, *pvs;
if (arg_count(allocation_ARG) == 0) {
log_error("Please give the x option");
@@ -66,10 +66,10 @@ int pvchange(int argc, char **argv)
return ECMD_FAILED;
}
- list_for_each(pvh, pvs) {
+ list_iterate(pvh, pvs) {
total++;
- done += pvchange_single(&list_entry(pvh, struct pv_list,
- list)->pv);
+ done += pvchange_single(
+ &list_item(pvh, struct pv_list)->pv);
}
}
@@ -87,7 +87,7 @@ int pvchange(int argc, char **argv)
int pvchange_single(struct physical_volume *pv)
{
struct volume_group *vg = NULL;
- struct list_head *pvh;
+ struct list *pvh;
const char *pv_name = dev_name(pv->dev);
@@ -107,7 +107,7 @@ int pvchange_single(struct physical_volume *pv)
pv_name, vg->name);
return 0;
}
- pv = &list_entry(pvh, struct pv_list, list)->pv;
+ pv = &list_item(pvh, struct pv_list)->pv;
}
/* change allocatability for a PV */