vpc: Fix size in fixed image creation
commit3f3f20dcd34fc2fcf6dea2fe4e9b45d1c4d67288
authorKevin Wolf <kwolf@redhat.com>
Wed, 11 Feb 2015 16:19:57 +0000 (11 17:19 +0100)
committerKevin Wolf <kwolf@redhat.com>
Mon, 9 Mar 2015 10:11:59 +0000 (9 11:11 +0100)
treeb746ac7b76df5f160f39c522023bde3a47527812
parent7c2eed3efa86c19436bc33372bfa9d7fbb6fda2c
vpc: Fix size in fixed image creation

If total_sectors is rounded to match the geometry, total_size needs to
be changed as well. Otherwise we end up with an image whose geometry
describes a disk larger than the image file, which doesn't end well.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
block/vpc.c