cow: make reads go at a decent speed
commit276cbc7f2fc1bd3810887995dbc9cbb739c975bf
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 4 Sep 2013 17:00:18 +0000 (4 19:00 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 6 Sep 2013 13:25:08 +0000 (6 15:25 +0200)
tree1c6cbb1d11063a1e53f1047e4d01d9ec27f993de
parent0ca0b0d5f8a87dbc6daa5095771d036d0e6dc5b4
cow: make reads go at a decent speed

Do not do two reads for each sector; load each sector of the bitmap
and use bitmap operations to process it.

Writes are still dog slow!

Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/cow.c