qed: Add support for zero clusters
authorAnthony Liguori <aliguori@us.ibm.com>
Fri, 17 Dec 2010 15:58:22 +0000 (15:58 +0000)
committerKevin Wolf <kwolf@redhat.com>
Wed, 13 Apr 2011 10:06:41 +0000 (12:06 +0200)
commit16e371ea596c3e96084bc7029fad8f4bebcabd9f
tree142793b8ae8e6fef8b1aa412cf39e2340091fdf9
parentbb66e276ef7023d8eebe81879f5e6e8281395eb2
qed: Add support for zero clusters

Zero clusters are similar to unallocated clusters except instead of reading
their value from a backing file when one is available, the cluster is always
read as zero.

This implements read support only.  At this stage, QED will never write a
zero cluster.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/qed-check.c
block/qed-cluster.c
block/qed.c
block/qed.h