]> git.proxmox.com Git - mirror_qemu.git/commit - block/qcow2.c
qcow2: Store exact backing format length
authorKevin Wolf <kwolf@redhat.com>
Thu, 26 Nov 2009 13:03:42 +0000 (14:03 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Thu, 3 Dec 2009 17:45:49 +0000 (11:45 -0600)
commite1c7f0e3f998866bedc9bdb53d247859b7beb5ce
treeb283a6bbc755d9e20be49635b48f440f919130d4
parentf35d68f0e79ed82d1c9a8a78a688d0ead8bf05f2
qcow2: Store exact backing format length

Currently qcow2 unnecessarily rounds up the length of the backing format string
to the next multiple of 8. At the same time, the array in BlockDriverState can
only hold 15 characters, so in effect backing formats with 9 characters or more
don't work (e.g. host_device).

Save the real string length and things start to work for all valid image format
names.

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