From 1f72bbcaa7763d8882af273e1a250f3eb488403f Mon Sep 17 00:00:00 2001 From: Dave Wysochanski Date: Wed, 13 Jun 2007 22:16:27 +0000 Subject: [PATCH] Convert pv->pe_start to get_pv_pe_start --- tools/pvresize.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/pvresize.c b/tools/pvresize.c index 5f44d6d5d..a93181768 100644 --- a/tools/pvresize.c +++ b/tools/pvresize.c @@ -125,9 +125,9 @@ static int _pvresize_single(struct cmd_context *cmd, return ECMD_FAILED; } - if (size < pv->pe_start) { + if (size < get_pv_pe_start(pv)) { log_error("%s: Size must exceed physical extent start of " - "%" PRIu64 " sectors.", pv_name, pv->pe_start); + "%" PRIu64 " sectors.", pv_name, get_pv_pe_start(pv)); unlock_vg(cmd, vg_name); return ECMD_FAILED; } @@ -135,7 +135,7 @@ static int _pvresize_single(struct cmd_context *cmd, pv->size = size; if (vg) { - pv->size -= pv->pe_start; + pv->size -= get_pv_pe_start(pv); new_pe_count = pv->size / vg->extent_size; if (!new_pe_count) { -- 2.43.5