diff --git a/block.c b/block.c index 6a805ff0ea8b703a0c2048a533d1f42caf343956..be7dc5d3e9e27a04f834b564248a8e9fa44fba6a 100644 --- a/block.c +++ b/block.c @@ -4918,6 +4918,7 @@ static void bdrv_reopen_commit(BDRVReopenState *reopen_state) qdict_del(bs->options, "backing"); bdrv_refresh_limits(bs, NULL, NULL); + bdrv_refresh_total_sectors(bs, bs->total_sectors); } /*