mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
qemu: Propagate shared_filesystems
virFileIsSharedFS() is the function that ultimately decides whether a filesystem should be considered shared, but the list of manually configured shared filesystems is part of the QEMU driver's configuration, so we need to pass the information through several layers in order to make use of it. Note that with this change the list is propagated all the way through, but its contents are still ignored, so the behavior remains the same for now. Signed-off-by: Andrea Bolognani <abologna@redhat.com> Reviewed-by: Stefan Berger <stefanb@linux.ibm.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
@@ -270,7 +270,7 @@ testSELinuxLabeling(const void *opaque)
|
||||
if (!(def = testSELinuxLoadDef(testname)))
|
||||
goto cleanup;
|
||||
|
||||
if (virSecurityManagerSetAllLabel(mgr, def, NULL, false, false) < 0)
|
||||
if (virSecurityManagerSetAllLabel(mgr, NULL, def, NULL, false, false) < 0)
|
||||
goto cleanup;
|
||||
|
||||
if (testSELinuxCheckLabels(files, nfiles) < 0)
|
||||
|
||||
@@ -313,7 +313,7 @@ testFileIsSharedFSType(const void *opaque G_GNUC_UNUSED)
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
actual = virFileIsSharedFS(data->filename);
|
||||
actual = virFileIsSharedFS(data->filename, NULL);
|
||||
|
||||
if (actual != data->expected) {
|
||||
fprintf(stderr, "Unexpected FS type. Expected %d got %d\n",
|
||||
|
||||
Reference in New Issue
Block a user