diff options
author | Dave Wysochanski <dwysocha@redhat.com> | 2007-06-13 23:53:38 +0000 |
---|---|---|
committer | Dave Wysochanski <dwysocha@redhat.com> | 2007-06-13 23:53:38 +0000 |
commit | 7f5f9b02e235c012d76c595d8ebc8205cea32264 (patch) | |
tree | e61cb2d6e5f2597d167ee6714038eb3420fb9d0c /tools/pvresize.c | |
parent | c29f3efd43302fcc9fdd0928fccf7dea71a05892 (diff) | |
download | lvm2-7f5f9b02e235c012d76c595d8ebc8205cea32264.tar.gz lvm2-7f5f9b02e235c012d76c595d8ebc8205cea32264.tar.xz lvm2-7f5f9b02e235c012d76c595d8ebc8205cea32264.zip |
Convert pv->vg_name to get_pv_vg_name
Diffstat (limited to 'tools/pvresize.c')
-rw-r--r-- | tools/pvresize.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/pvresize.c b/tools/pvresize.c index b2164772..eabcaaf3 100644 --- a/tools/pvresize.c +++ b/tools/pvresize.c @@ -41,7 +41,7 @@ static int _pvresize_single(struct cmd_context *cmd, params->total++; - if (!*pv->vg_name) { + if (!*get_pv_vg_name(pv)) { vg_name = ORPHAN; if (!lock_vol(cmd, vg_name, LCK_VG_WRITE)) { @@ -66,7 +66,7 @@ static int _pvresize_single(struct cmd_context *cmd, vg_name = pv->vg_name; if (!lock_vol(cmd, vg_name, LCK_VG_WRITE)) { - log_error("Can't get lock for %s", pv->vg_name); + log_error("Can't get lock for %s", get_pv_vg_name(pv)); return ECMD_FAILED; } @@ -158,9 +158,9 @@ static int _pvresize_single(struct cmd_context *cmd, pv_name, get_pv_size(pv)); log_verbose("Updating physical volume \"%s\"", pv_name); - if (*pv->vg_name) { + if (*get_pv_vg_name(pv)) { if (!vg_write(vg) || !vg_commit(vg)) { - unlock_vg(cmd, pv->vg_name); + unlock_vg(cmd, get_pv_vg_name(pv)); log_error("Failed to store physical volume \"%s\" in " "volume group \"%s\"", pv_name, vg->name); return ECMD_FAILED; |