mirror of
https://github.com/libvirt/libvirt.git
synced 2026-10-02 12:20:06 -05:00
add 'driver' info to used_by
Specify which driver and which domain in used_by area to avoid conflict among different drivers. Signed-off-by: Chunyan Liu <cyliu@suse.com>
This commit is contained in:
1 parent
9194ccecf1
commit
de6fa535b0
11 files changed
+161
-73
No files matched your search
+3
-3
@@ -91,13 +91,13 @@ test2(const void *data ATTRIBUTE_UNUSED)
|
||||
if (!virSCSIDeviceIsAvailable(dev))
|
||||
goto cleanup;
|
||||
|
||||
if (virSCSIDeviceSetUsedBy(dev, "fc18") < 0)
|
||||
if (virSCSIDeviceSetUsedBy(dev, "QEMU", "fc18") < 0)
|
||||
goto cleanup;
|
||||
|
||||
if (virSCSIDeviceIsAvailable(dev))
|
||||
goto cleanup;
|
||||
|
||||
if (virSCSIDeviceSetUsedBy(dev, "fc20") < 0)
|
||||
if (virSCSIDeviceSetUsedBy(dev, "QEMU", "fc20") < 0)
|
||||
goto cleanup;
|
||||
|
||||
if (virSCSIDeviceIsAvailable(dev))
|
||||
@@ -117,7 +117,7 @@ test2(const void *data ATTRIBUTE_UNUSED)
|
||||
if (!virSCSIDeviceListFind(list, dev))
|
||||
goto cleanup;
|
||||
|
||||
virSCSIDeviceListDel(list, dev, "fc20");
|
||||
virSCSIDeviceListDel(list, dev, "QEMU", "fc20");
|
||||
|
||||
if (!virSCSIDeviceListFind(list, dev))
|
||||
goto cleanup;
|
||||
|
||||
Reference in new issue
Block a user