qemu-e2k/block
Stefan Hajnoczi 01979a98d7 qed: Consistency check support
This patch adds support for the qemu-img check command.  It also
introduces a dirty bit in the qed header to mark modified images as
needing a check.  This bit is cleared when the image file is closed
cleanly.

If an image file is opened and it has the dirty bit set, a consistency
check will run and try to fix corrupted table offsets.  These
corruptions may occur if there is power loss while an allocating write
is performed.  Once the image is fixed it opens as normal again.

Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2010-12-17 16:11:04 +01:00
..
blkdebug.c block: Allow bdrv_flush to return errors 2010-11-04 12:52:16 +01:00
blkverify.c block: avoid a warning on 64 bit hosts with long as int64_t 2010-11-04 13:54:37 +01:00
bochs.c bochs: use qemu block API 2010-05-17 10:20:05 +02:00
cloop.c cloop: use qemu block API 2010-05-17 10:20:04 +02:00
cow.c block: Allow bdrv_flush to return errors 2010-11-04 12:52:16 +01:00
curl.c Fix %lld or %llx printf format use 2010-05-22 08:02:12 +00:00
dmg.c dmg: use qemu block API 2010-05-17 10:20:05 +02:00
nbd.c nbd: correctly manage default port 2010-09-21 15:39:42 +02:00
parallels.c parallels: use qemu block API 2010-05-17 10:20:05 +02:00
qcow.c block: Remove unused s->hd in various drivers 2010-11-24 17:31:06 +01:00
qcow2-cluster.c qcow2: Invalidate cache after failed read 2010-11-04 13:54:37 +01:00
qcow2-refcount.c qcow2: Invalidate cache after failed read 2010-11-04 13:54:37 +01:00
qcow2-snapshot.c Copy snapshots out of QCOW2 disk 2010-10-22 14:49:35 +02:00
qcow2.c block: Allow bdrv_flush to return errors 2010-11-04 12:52:16 +01:00
qcow2.h block: Remove unused s->hd in various drivers 2010-11-24 17:31:06 +01:00
qed-check.c qed: Consistency check support 2010-12-17 16:11:04 +01:00
qed-cluster.c qed: Table, L2 cache, and cluster functions 2010-12-17 16:11:04 +01:00
qed-gencb.c qed: Table, L2 cache, and cluster functions 2010-12-17 16:11:04 +01:00
qed-l2-cache.c qed: Table, L2 cache, and cluster functions 2010-12-17 16:11:04 +01:00
qed-table.c qed: Table, L2 cache, and cluster functions 2010-12-17 16:11:04 +01:00
qed.c qed: Consistency check support 2010-12-17 16:11:04 +01:00
qed.h qed: Consistency check support 2010-12-17 16:11:04 +01:00
raw-posix-aio.h Remove aio_ctx from paio_* interface 2009-10-30 08:39:34 -05:00
raw-posix.c raw-posix: add discard support 2010-12-17 16:11:03 +01:00
raw-win32.c Fix win32 build 2010-11-07 15:10:40 +00:00
raw.c block: add discard support 2010-12-17 16:11:03 +01:00
rbd.c ceph/rbd block driver for qemu-kvm 2010-12-14 15:44:21 +01:00
rbd_types.h ceph/rbd block driver for qemu-kvm 2010-12-14 15:44:21 +01:00
sheepdog.c sheepdog: remove unnecessary includes 2010-08-30 18:29:22 +02:00
vdi.c block: Remove unused s->hd in various drivers 2010-11-24 17:31:06 +01:00
vmdk.c block: Remove unused s->hd in various drivers 2010-11-24 17:31:06 +01:00
vpc.c block: Remove unused s->hd in various drivers 2010-11-24 17:31:06 +01:00
vvfat.c block/vvfat: Fix compiler warning in debug code 2010-10-03 06:40:54 +00:00