]> sourceware.org Git - lvm2.git/commitdiff
Change pvscan to show total of usable device size (instead of free data space).
authorAlasdair Kergon <agk@redhat.com>
Tue, 9 Dec 2003 22:32:47 +0000 (22:32 +0000)
committerAlasdair Kergon <agk@redhat.com>
Tue, 9 Dec 2003 22:32:47 +0000 (22:32 +0000)
tools/pvscan.c

index d862d58e7f4081dc8a93155c52a918083f393efe..126259ea44016a130c8216ed117da8be23509e05 100644 (file)
@@ -167,8 +167,7 @@ int pvscan(struct cmd_context *cmd, int argc, char **argv)
                        size_new += pv->size;
                        size_total += pv->size;
                } else
-                       size_total += (pv->pe_count - pv->pe_alloc_count)
-                           * pv->pe_size;
+                       size_total += pv->pe_count * pv->pe_size;
        }
 
        /* find maximum pv name length */
This page took 0.040897 seconds and 5 git commands to generate.