]> git.proxmox.com Git - qemu.git/commit
qemu-iotests: add 039 qcow2 lazy refcounts test
authorStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Fri, 27 Jul 2012 08:05:24 +0000 (09:05 +0100)
committerKevin Wolf <kwolf@redhat.com>
Mon, 6 Aug 2012 20:39:14 +0000 (22:39 +0200)
commitdc68afe0f3e8be913a0eb639afc9196e0abab261
treeb452be0d910607310c5ce7147a7d89fa8ee564bb
parente01c30d3e20eb8cf068b08af46c532f99975527a
qemu-iotests: add 039 qcow2 lazy refcounts test

This tests establishes the basic post-conditions of the qcow2 lazy
refcounts features:

  1. If the image was closed normally, it is marked clean.

  2. If an allocating write was performed and the image was not closed
     normally, then it is marked dirty.

     a. Written data can be read back successfully.
     b. The image file can be repaired and will be marked clean again.
     c. The image file is automatically repaired when opened read/write.

Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
tests/qemu-iotests/039 [new file with mode: 0755]
tests/qemu-iotests/039.out [new file with mode: 0644]
tests/qemu-iotests/group