Kevin Wolf 86fa8da837 qcow2: Fix corruption after error in update_refcount
After it is done with updating refcounts in the cache, update_refcount writes
all changed entries to disk. If a refcount block allocation fails, however,
there was no change yet and therefore first_index = last_index = -1. Don't
treat -1 as a normal sector index (resulting in a 512 byte write!) but return
without updating anything in this case.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2010-05-28 13:29:16 +02:00
..
2010-05-17 10:20:05 +02:00
2010-05-17 10:20:04 +02:00
2010-05-22 08:02:12 +00:00
2010-05-17 10:20:05 +02:00
2010-05-17 10:20:05 +02:00
2010-05-17 10:20:05 +02:00
2010-05-21 11:49:19 +02:00