diff options
author | Kevin Wolf <kwolf@redhat.com> | 2020-04-24 14:54:41 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2020-04-30 17:51:07 +0200 |
commit | 8c6242b6f383e43fd11d2c50f8bcdd2bba1100fc (patch) | |
tree | 8e3791944b953844a3edc2f2aed4afd7e9068158 /block/vpc.c | |
parent | 7b8e4857426f2e2de2441749996c6161b550bada (diff) | |
download | qemu-8c6242b6f383e43fd11d2c50f8bcdd2bba1100fc.zip qemu-8c6242b6f383e43fd11d2c50f8bcdd2bba1100fc.tar.gz qemu-8c6242b6f383e43fd11d2c50f8bcdd2bba1100fc.tar.bz2 |
block-backend: Add flags to blk_truncate()
Now that node level interface bdrv_truncate() supports passing request
flags to the block driver, expose this on the BlockBackend level, too.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Message-Id: <20200424125448.63318-4-kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block/vpc.c')
-rw-r--r-- | block/vpc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/vpc.c b/block/vpc.c index d8141b5..2d1eade 100644 --- a/block/vpc.c +++ b/block/vpc.c @@ -898,7 +898,7 @@ static int create_fixed_disk(BlockBackend *blk, uint8_t *buf, /* Add footer to total size */ total_size += HEADER_SIZE; - ret = blk_truncate(blk, total_size, false, PREALLOC_MODE_OFF, errp); + ret = blk_truncate(blk, total_size, false, PREALLOC_MODE_OFF, 0, errp); if (ret < 0) { return ret; } |