]> Git Repo - qemu.git/commit - block/qcow2.c
qcow2: Simplify preallocation code
authorKevin Wolf <[email protected]>
Thu, 21 Feb 2019 14:48:11 +0000 (15:48 +0100)
committerKevin Wolf <[email protected]>
Fri, 8 Mar 2019 11:26:45 +0000 (12:26 +0100)
commitc5e86ebc113407dce87b813d68ff3abe9496f422
treeb6c4656f7913c4be79f7b3a8259b92dbee635813
parent97f94cb4f842ff43e21e990e59a3ca01708e76d0
qcow2: Simplify preallocation code

Image creation already involves a bdrv_co_truncate() call, which allows
to specify a preallocation mode. Just pass the right mode there and
remove the code that is made redundant by this.

Signed-off-by: Kevin Wolf <[email protected]>
block/qcow2.c
This page took 0.024682 seconds and 4 git commands to generate.