+185
−52
Loading
This patch removes exit(1) from error(), and properly releases resources such as a block driver and an allocated memory. For testing the Sheepdog block driver with qemu-iotests, it is necessary to call bdrv_delete() before the program exits. Because the driver releases the lock of VM images in the close handler. Signed-off-by:MORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp> Signed-off-by:
Kevin Wolf <kwolf@redhat.com>