]> xenbits.xensource.com Git - libvirt.git/commit
storage: Round up capacity for LVM volume creation
authorOsier Yang <jyang@redhat.com>
Thu, 27 Jan 2011 08:28:19 +0000 (16:28 +0800)
committerDaniel Veillard <veillard@redhat.com>
Thu, 27 Jan 2011 08:28:19 +0000 (16:28 +0800)
commit6002e0406c338668ea0ecbfeb6c1ef20a8b67efe
treed7d3ad8f2750120f2336f7e4d261859d1f7d05b1
parent28eae66a3affc17ce917b78a3ee300448e285bba
storage: Round up capacity for LVM volume creation

If vol->capacity is odd, the capacity will be rounded down
by devision, this patch is to round it up instead of rounding
down, to be safer in case of one writes to the volume with the
size he used to create.

- src/storage/storage_backend_logical.c: make sure size is not rounded down
src/storage/storage_backend_logical.c