]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Stop recursive detection of image chains when an image is missing
authorPeter Krempa <pkrempa@redhat.com>
Wed, 21 Nov 2012 10:57:22 +0000 (11:57 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 22 Nov 2012 15:04:17 +0000 (16:04 +0100)
commit58a54dc37340113f83da587387a297d05d5342cf
treed94e5b47ab9a0877173ae6b005d5a0cbaeacf0b3
parent03cd6e4ae8d86682986249f05f7de8eb405a12da
qemu: Stop recursive detection of image chains when an image is missing

Commit e0c469e58b93f852a72265919703cb6abd3779f8 that fixes the detection
of image chain wasn't complete. Iteration through the backing image
chain has to stop at the last existing image if some of the images are
missing otherwise the backing chain that is cached contains entries with
paths being set to NULL resulting to:

error: Unable to allow access for disk path (null): Bad address

Fortunately stat() is kind enough not to crash when it's presented with
a NULL argument. At least on Linux.
src/util/storage_file.c