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> --- block/vpc.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-)