]> sourceware.org Git - lvm2.git/commitdiff
Convert pv->pe_start to get_pv_pe_start
authorDave Wysochanski <dwysocha@redhat.com>
Wed, 13 Jun 2007 22:16:27 +0000 (22:16 +0000)
committerDave Wysochanski <dwysocha@redhat.com>
Wed, 13 Jun 2007 22:16:27 +0000 (22:16 +0000)
tools/pvresize.c

index 5f44d6d5d354966f58a1cf2cb9b8d13b9b2b19d6..a93181768d5230bc51a7e6c3d7c27e1d75ff38b6 100644 (file)
@@ -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) {
This page took 0.033586 seconds and 5 git commands to generate.