]> git.proxmox.com Git - mirror_qemu.git/commit - block/qcow2.c
qcow2: Handle full/falloc preallocation in qcow2_co_create()
authorKevin Wolf <kwolf@redhat.com>
Thu, 11 Jan 2018 13:38:34 +0000 (14:38 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 9 Mar 2018 14:17:47 +0000 (15:17 +0100)
commite4b5dad8269b1b629c52be25e6da50644293abf7
treefdd4507e10c4daf08cf99d3233856002806215e0
parent60900b7bd930e0b9acad118ead4fabf4610066a8
qcow2: Handle full/falloc preallocation in qcow2_co_create()

Once qcow2_co_create() can be called directly on an already existing
node, we must provide the 'full' and 'falloc' preallocation modes
outside of creating the image on the protocol layer. Fortunately, we
have preallocated truncate now which can provide this functionality.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
block/qcow2.c