mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-06 20:00:05 +00:00
qemu: hotplug: Export persistent reservations manager helper functions
Export qemuHotplugAttachManagedPR/qemuHotplugRemoveManagedPR for reuse in blockjob code. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
8e0591520f
commit
fc5b6ed091
@ -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)
|
||||
{
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user