Convert qemu-img create to new bdrv_create
authorKevin Wolf <kwolf@redhat.com>
Mon, 18 May 2009 14:42:11 +0000 (16:42 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 22 May 2009 15:50:31 +0000 (10:50 -0500)
commit9ea2ea7146042d54fc3d17d0269ae865cbf55dcf
tree8e53587442bdd80f55b2ebf807ae8293c5938dc4
parent0e7e1989f7fced8e39f140e1958f0557b60d4532
Convert qemu-img create to new bdrv_create

This patch changes qemu-img to actually use the new bdrv_create interface. It
translates the old-style qemu-img options which have been bdrv_create2
parameters or flags so far to option structures. As the generic approach, it
introduces an -o option which accepts any parameter the driver knows.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
qemu-img.c