]> git.proxmox.com Git - mirror_qemu.git/commit
block: vpc - use block layer ops in vpc_create, instead of posix calls
authorJeff Cody <jcody@redhat.com>
Wed, 23 Jul 2014 21:23:00 +0000 (17:23 -0400)
committerKevin Wolf <kwolf@redhat.com>
Fri, 15 Aug 2014 13:07:15 +0000 (15:07 +0200)
commitfef6070eff233400015cede968b0afe46c80bb0f
treed0d3f1a761a262aa7c310a93dd06d98ea6831ac8
parentdddc7750d68c3ea86d88b060a77acb60d2eeb4a7
block: vpc - use block layer ops in vpc_create, instead of posix calls

Use the block layer to create, and write to, the image file in the VPC
.bdrv_create() operation.

This has a couple of benefits: Images can now be created over protocols,
and hacks such as NOCOW are not needed in the image format driver, and
the underlying file protocol appropriate for the host OS can be relied
upon.

Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Jeff Cody <jcody@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/vpc.c