]> git.proxmox.com Git - mirror_qemu.git/commit - block/qcow2.h
qcow2: fix wrong value of L1E_OFFSET_MASK, L2E_OFFSET_MASK and REFT_OFFSET_MASK
authorHu Tao <hutao@cn.fujitsu.com>
Tue, 21 Jan 2014 03:30:02 +0000 (11:30 +0800)
committerKevin Wolf <kwolf@redhat.com>
Fri, 24 Jan 2014 13:33:00 +0000 (14:33 +0100)
commit46bae927134468d27f5e2508c3ced67ff58fa45b
tree3439cd8ae538777408ee56642da1c2af7105aaa9
parent385c04d0b66917457b6a12fc2cfd99a6a40b2d89
qcow2: fix wrong value of L1E_OFFSET_MASK, L2E_OFFSET_MASK and REFT_OFFSET_MASK

Accoring to qcow spec, the offset fields in l1e, l2e and ref table entry
start at bit 9. The offset is cluster offset, and the smallest possible
cluster size is 512 bytes.

Signed-off-by: Hu Tao <hutao@cn.fujitsu.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/qcow2.h