diff options
Diffstat (limited to 'block/vmdk.c')
-rw-r--r-- | block/vmdk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/vmdk.c b/block/vmdk.c index f000d2a613..0b1c586727 100644 --- a/block/vmdk.c +++ b/block/vmdk.c @@ -440,7 +440,7 @@ static int vmdk_add_extent(BlockDriverState *bs, } else { extent->end_sector = extent->sectors; } - bs->total_sectors = extent->end_sector; + bdrv_setlength(bs, BDRV_SECTOR_SIZE * extent->end_sector); if (new_extent) { *new_extent = extent; } |