diff options
Diffstat (limited to 'block/commit.c')
-rw-r--r-- | block/commit.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/block/commit.c b/block/commit.c index 4c3822080e..91d2c344f6 100644 --- a/block/commit.c +++ b/block/commit.c @@ -335,6 +335,7 @@ void commit_start(const char *job_id, BlockDriverState *bs, if (commit_top_bs == NULL) { goto fail; } + commit_top_bs->total_sectors = top->total_sectors; bdrv_set_aio_context(commit_top_bs, bdrv_get_aio_context(top)); bdrv_set_backing_hd(commit_top_bs, top, &local_err); |