]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu: hotplug: Export persistent reservations manager helper functions
authorPeter Krempa <pkrempa@redhat.com>
Tue, 4 Feb 2025 16:51:57 +0000 (17:51 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 5 Feb 2025 18:29:38 +0000 (19:29 +0100)
Export qemuHotplugAttachManagedPR/qemuHotplugRemoveManagedPR for reuse
in blockjob code.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_hotplug.c
src/qemu/qemu_hotplug.h

index 5a7e6c3b1218b7bdc70e3f59d0cd1c920dd70b00..6c224c979325eedec8ae7f317fac3bc9383acf28 100644 (file)
@@ -419,7 +419,7 @@ qemuHotplugRemoveDBusVMState(virDomainObj *vm,
  *
  * Returns: 0 on success, -1 on error.
  */
-static int
+int
 qemuHotplugAttachManagedPR(virDomainObj *vm,
                            virStorageSource *src,
                            virDomainAsyncJob asyncJob)
@@ -469,7 +469,7 @@ qemuHotplugAttachManagedPR(virDomainObj *vm,
  * Removes the managed PR object from @vm if the configuration does not require
  * it any more.
  */
-static int
+int
 qemuHotplugRemoveManagedPR(virDomainObj *vm,
                            virDomainAsyncJob asyncJob)
 {
index c6cea0fe69c113fb4d4c9402f6dd88a43fb4484b..d51f649bac8bbed22bd7db6e95d3e22c9402762e 100644 (file)
@@ -125,3 +125,11 @@ qemuHotplugAttachDBusVMState(virQEMUDriver *driver,
 int
 qemuHotplugRemoveDBusVMState(virDomainObj *vm,
                              virDomainAsyncJob asyncJob);
+
+int
+qemuHotplugAttachManagedPR(virDomainObj *vm,
+                           virStorageSource *src,
+                           virDomainAsyncJob asyncJob);
+int
+qemuHotplugRemoveManagedPR(virDomainObj *vm,
+                           virDomainAsyncJob asyncJob);