Hu Tao 7c2bbf4aa6 qcow2: check for NULL l2meta
In the case of a metadata preallocation with a large cluster size,
qcow2_alloc_cluster_offset() can allocate nothing and returns a
NULL l2meta. This patch checks for it and link2 l2 with only valid
l2meta.

Replace 9 and 512 with BDRV_SECTOR_BITS, BDRV_SECTOR_SIZE
respectively while at the function.

Signed-off-by: Hu Tao <hutao@cn.fujitsu.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Benoit Canet <benoit@irqsave.net>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2014-02-09 09:12:39 +01:00
2014-02-09 09:12:39 +01:00
2014-02-08 15:57:51 +00:00
2014-02-08 13:12:50 +00:00
2014-02-07 16:42:13 +00:00
2014-02-07 16:42:13 +00:00
2014-01-31 11:13:08 +00:00
2014-02-01 13:45:20 +04:00
2014-02-09 09:12:38 +01:00
2014-02-09 09:12:38 +01:00
2014-02-05 16:37:26 +00:00
2014-01-24 17:40:03 +01:00
2014-02-01 13:46:06 +04:00

Read the documentation in qemu-doc.html or on http://wiki.qemu-project.org

- QEMU team
Description
No description provided
Readme 404 MiB
Languages
C 82.6%
C++ 6.5%
Python 3.4%
Dylan 2.9%
Shell 1.6%
Other 2.8%