mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
virt-aa-helper: Use proper check for empty disk in 'get_files'
'virDomainDiskGetSource' returns src->path effectively. Checking whether a disk is empty is done via 'virStorageSourceIsEmpty'. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
parent
2e87a99ff7
commit
679c937746
@ -933,7 +933,7 @@ get_files(vahControl * ctl)
|
||||
for (i = 0; i < ctl->def->ndisks; i++) {
|
||||
virDomainDiskDefPtr disk = ctl->def->disks[i];
|
||||
|
||||
if (!virDomainDiskGetSource(disk))
|
||||
if (virStorageSourceIsEmpty(disk->src))
|
||||
continue;
|
||||
/* XXX - if we knew the qemu user:group here we could send it in
|
||||
* so that the open could be re-tried as that user:group.
|
||||
|
Loading…
x
Reference in New Issue
Block a user