mirror of https://gitee.com/openkylin/libvirt.git
virt-aa-helper: Ignore open errors again
virt-aa-helper used to ignore errors when opening files.
Commit a885334499
refactored
the related code and changed this behavior. virt-aa-helper
didn't ignore open errors anymore and virt-aa-helper-test
fails.
Make sure that virt-aa-helper ignores open errors again.
This commit is contained in:
parent
80f7a45c8d
commit
05c9a41336
|
@ -844,9 +844,13 @@ get_files(vahControl * ctl)
|
|||
}
|
||||
|
||||
for (i = 0; i < ctl->def->ndisks; i++) {
|
||||
/* XXX passing ignoreOpenFailure = true to get back to the behavior
|
||||
* from before using virDomainDiskDefForeachPath. actually we should
|
||||
* be passing ignoreOpenFailure = false and handle open errors more
|
||||
* careful than just ignoring them */
|
||||
int ret = virDomainDiskDefForeachPath(ctl->def->disks[i],
|
||||
ctl->allowDiskFormatProbing,
|
||||
false,
|
||||
true,
|
||||
add_file_path,
|
||||
&buf);
|
||||
if (ret != 0)
|
||||
|
|
Loading…
Reference in New Issue