Home
last modified time | relevance | path

Searched hist:e24e49e6 (Results 1 – 2 of 2) sorted by relevance

/qemu/block/
H A Dqcow2.he24e49e6 Thu Feb 02 11:32:31 GMT 2012 Kevin Wolf <kwolf@redhat.com> qcow2: Update whole header at once

In order to switch the backing file, qcow2 issues multiple write
requests that only changed a part of the image header. Any failure after
the first one would leave the header in an corrupted state. With this
patch, the whole header is written at once, so we can't fail in the
middle.

At the same time, this gives us a reusable functions that updates all
fields of the qcow2 header and not only the backing file.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
H A Dqcow2.ce24e49e6 Thu Feb 02 11:32:31 GMT 2012 Kevin Wolf <kwolf@redhat.com> qcow2: Update whole header at once

In order to switch the backing file, qcow2 issues multiple write
requests that only changed a part of the image header. Any failure after
the first one would leave the header in an corrupted state. With this
patch, the whole header is written at once, so we can't fail in the
middle.

At the same time, this gives us a reusable functions that updates all
fields of the qcow2 header and not only the backing file.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>