qcow2: Simplify preallocation code
commitc5e86ebc113407dce87b813d68ff3abe9496f422
authorKevin Wolf <kwolf@redhat.com>
Thu, 21 Feb 2019 14:48:11 +0000 (21 15:48 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 8 Mar 2019 11:26:45 +0000 (8 12:26 +0100)
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 <kwolf@redhat.com>
block/qcow2.c