summaryrefslogtreecommitdiffstats
path: root/tools/pvresize.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/pvresize.c')
-rw-r--r--tools/pvresize.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/pvresize.c b/tools/pvresize.c
index eabcaaf3..531dd338 100644
--- a/tools/pvresize.c
+++ b/tools/pvresize.c
@@ -63,7 +63,7 @@ static int _pvresize_single(struct cmd_context *cmd,
return ECMD_FAILED;
}
} else {
- vg_name = pv->vg_name;
+ vg_name = get_pv_vg_name(pv);
if (!lock_vol(cmd, vg_name, LCK_VG_WRITE)) {
log_error("Can't get lock for %s", get_pv_vg_name(pv));