]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Properly mark auto-added 'terminator' virStorageSource
authorPeter Krempa <pkrempa@redhat.com>
Tue, 16 May 2023 08:18:55 +0000 (10:18 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 20 Jul 2023 12:58:35 +0000 (14:58 +0200)
commitc90c97a734d680da9e9d78e8d61fdc6020ff31d5
treecede14edb252372235765a4cb035841ce907866c
parent49aca0a845774cc46f6b8c44d40f88c7d471b2bf
Properly mark auto-added 'terminator' virStorageSource

All backing chain members which were auto-added by image detection,
including the terminating element, should have the 'detected' property
set to true. This is needed to properly strip the detected elements in
some cases, e.g. for the status XML where we could treat some images as
manually terminated even when it was auto-detected.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_domain.c
src/storage_file/storage_source.c