diff options
author | Dave Wysochanski <dwysocha@redhat.com> | 2008-06-24 20:10:32 +0000 |
---|---|---|
committer | Dave Wysochanski <dwysocha@redhat.com> | 2008-06-24 20:10:32 +0000 |
commit | 15db00b53e8f2e136d3f3c0c7fc68fcc48ba0b06 (patch) | |
tree | 91277c0dfc323d87c64720a0150006c1d5594fa0 /tools | |
parent | 274788b4a5452460fb6c55b523d7d67c3eaff0b2 (diff) | |
download | lvm2-15db00b53e8f2e136d3f3c0c7fc68fcc48ba0b06.tar.gz lvm2-15db00b53e8f2e136d3f3c0c7fc68fcc48ba0b06.tar.xz lvm2-15db00b53e8f2e136d3f3c0c7fc68fcc48ba0b06.zip |
Refactor pv_create() to take cmd_context - no functional change.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/pvcreate.c | 2 | ||||
-rw-r--r-- | tools/vgconvert.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/pvcreate.c b/tools/pvcreate.c index 5661e2ee..8e771406 100644 --- a/tools/pvcreate.c +++ b/tools/pvcreate.c @@ -225,7 +225,7 @@ static int pvcreate_single(struct cmd_context *cmd, const char *pv_name, } list_init(&mdas); - if (!(pv = pv_create(cmd->fmt, dev, idp, size, pe_start, + if (!(pv = pv_create(cmd, dev, idp, size, pe_start, extent_count, extent_size, pvmetadatacopies, pvmetadatasize, &mdas))) { log_error("Failed to setup physical volume \"%s\"", pv_name); diff --git a/tools/vgconvert.c b/tools/vgconvert.c index 87036323..6c261f3a 100644 --- a/tools/vgconvert.c +++ b/tools/vgconvert.c @@ -112,7 +112,7 @@ static int vgconvert_single(struct cmd_context *cmd, const char *vg_name, + pe_start - 1; list_init(&mdas); - if (!(pv = pv_create(cmd->fmt, pv_dev(existing_pv), + if (!(pv = pv_create(cmd, pv_dev(existing_pv), &existing_pv->id, size, pe_start, pv_pe_count(existing_pv), pv_pe_size(existing_pv), pvmetadatacopies, |