mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-07-31 14:07:16 +00:00
Fix build with apparmor
Recent storage patches changed signature of virStorageFileGetMetadata and replaced chain with backingChain in virDomainDiskDef.
This commit is contained in:
parent
1e7cd39511
commit
0111b409a3
@ -924,10 +924,12 @@ get_files(vahControl * ctl)
|
|||||||
/* XXX - if we knew the qemu user:group here we could send it in
|
/* 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.
|
* so that the open could be re-tried as that user:group.
|
||||||
*/
|
*/
|
||||||
disk->chain = virStorageFileGetMetadata(disk->src, disk->format,
|
if (!disk->backingChain) {
|
||||||
-1, -1,
|
bool probe = ctl->allowDiskFormatProbing;
|
||||||
ctl->allowDiskFormatProbing,
|
disk->backingChain = virStorageFileGetMetadata(disk->src,
|
||||||
NULL);
|
disk->format,
|
||||||
|
-1, -1, probe);
|
||||||
|
}
|
||||||
|
|
||||||
/* XXX passing ignoreOpenFailure = true to get back to the behavior
|
/* XXX passing ignoreOpenFailure = true to get back to the behavior
|
||||||
* from before using virDomainDiskDefForeachPath. actually we should
|
* from before using virDomainDiskDefForeachPath. actually we should
|
||||||
|
Loading…
Reference in New Issue
Block a user