diff options
author | Kevin Wolf <kwolf@redhat.com> | 2017-02-16 18:39:03 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2017-02-24 16:09:23 +0100 |
commit | 52cdbc5869a3fbbe4d91c83e97dffb212af28ce3 (patch) | |
tree | 73198d7c2deb39b1d04d7b4d29729198aa1a62f7 /block/blkdebug.c | |
parent | becc347e1ca6884b4bc74a0572d3206bee7fec13 (diff) |
block: Pass BdrvChild to bdrv_truncate()
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'block/blkdebug.c')
-rw-r--r-- | block/blkdebug.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blkdebug.c b/block/blkdebug.c index d8eee1b9b4..6117ce5fca 100644 --- a/block/blkdebug.c +++ b/block/blkdebug.c @@ -663,7 +663,7 @@ static int64_t blkdebug_getlength(BlockDriverState *bs) static int blkdebug_truncate(BlockDriverState *bs, int64_t offset) { - return bdrv_truncate(bs->file->bs, offset); + return bdrv_truncate(bs->file, offset); } static void blkdebug_refresh_filename(BlockDriverState *bs, QDict *options) |