diff options
author | Dave Wysochanski <dwysocha@redhat.com> | 2007-10-12 14:29:32 +0000 |
---|---|---|
committer | Dave Wysochanski <dwysocha@redhat.com> | 2007-10-12 14:29:32 +0000 |
commit | 1b8de4cb25dcf69b7242cecfee90775bd7e1f15e (patch) | |
tree | 9fbc0406b7a3e4632e1113d30aaf5d2b60e001f1 /tools/vgreduce.c | |
parent | 70d9f98ed351fd98816acd7befa0fa7321168941 (diff) | |
download | lvm2-1b8de4cb25dcf69b7242cecfee90775bd7e1f15e.tar.gz lvm2-1b8de4cb25dcf69b7242cecfee90775bd7e1f15e.tar.xz lvm2-1b8de4cb25dcf69b7242cecfee90775bd7e1f15e.zip |
Add pv_dev_name() to access PV device name.
Patch by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>
Diffstat (limited to 'tools/vgreduce.c')
-rw-r--r-- | tools/vgreduce.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/vgreduce.c b/tools/vgreduce.c index 8b079f83..4bf60c43 100644 --- a/tools/vgreduce.c +++ b/tools/vgreduce.c @@ -365,7 +365,7 @@ static int _vgreduce_single(struct cmd_context *cmd, struct volume_group *vg, void *handle __attribute((unused))) { struct pv_list *pvl; - const char *name = dev_name(pv_dev(pv)); + const char *name = pv_dev_name(pv); if (pv_pe_alloc_count(pv)) { log_error("Physical volume \"%s\" still in use", name); @@ -392,7 +392,7 @@ static int _vgreduce_single(struct cmd_context *cmd, struct volume_group *vg, pv->status = ALLOCATABLE_PV; if (!dev_get_size(pv_dev(pv), &pv->size)) { - log_error("%s: Couldn't get size.", dev_name(pv_dev(pv))); + log_error("%s: Couldn't get size.", pv_dev_name(pv)); return ECMD_FAILED; } |