1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00

Use vg_size in vg_set_extent_size.

Author: Dave Wysochanski <dwysocha@redhat.com>
This commit is contained in:
Dave Wysochanski 2009-07-26 12:41:36 +00:00
parent 483a7cb6d5
commit 8b3755a679

View File

@ -758,7 +758,7 @@ int vg_set_extent_size(vg_t *vg, uint32_t new_size)
} }
if (new_size > vg->extent_size) { if (new_size > vg->extent_size) {
if ((uint64_t) vg->extent_size * vg->extent_count % new_size) { if ((uint64_t) vg_size(vg) % new_size) {
/* FIXME Adjust used PV sizes instead */ /* FIXME Adjust used PV sizes instead */
log_error("New extent size is not a perfect fit"); log_error("New extent size is not a perfect fit");
return 0; return 0;