mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
qemu: block: Remove unused qemuBlockStorageSourceDetachOneBlockdev
The only caller was converted to use the common blockdev infrastructure thus this function is no longer needed. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
e534d19b5d
commit
734e4e9783
@ -1942,40 +1942,6 @@ qemuBlockStorageSourceChainDetach(qemuMonitor *mon,
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* qemuBlockStorageSourceDetachOneBlockdev:
|
||||
* @driver: qemu driver object
|
||||
* @vm: domain object
|
||||
* @asyncJob: currently running async job
|
||||
* @src: storage source to detach
|
||||
*
|
||||
* Detaches one virStorageSource using blockdev-del. Note that this does not
|
||||
* detach any authentication/encryption objects. This function enters the
|
||||
* monitor internally.
|
||||
*/
|
||||
int
|
||||
qemuBlockStorageSourceDetachOneBlockdev(virDomainObj *vm,
|
||||
virDomainAsyncJob asyncJob,
|
||||
virStorageSource *src)
|
||||
{
|
||||
int ret;
|
||||
|
||||
if (qemuDomainObjEnterMonitorAsync(vm, asyncJob) < 0)
|
||||
return -1;
|
||||
|
||||
ret = qemuMonitorBlockdevDel(qemuDomainGetMonitor(vm),
|
||||
qemuBlockStorageSourceGetFormatNodename(src));
|
||||
|
||||
if (ret == 0)
|
||||
ret = qemuMonitorBlockdevDel(qemuDomainGetMonitor(vm),
|
||||
qemuBlockStorageSourceGetStorageNodename(src));
|
||||
|
||||
qemuDomainObjExitMonitor(vm);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
qemuBlockSnapshotAddBlockdev(virJSONValue *actions,
|
||||
virDomainDiskDef *disk,
|
||||
|
@ -149,11 +149,6 @@ void
|
||||
qemuBlockStorageSourceAttachRollback(qemuMonitor *mon,
|
||||
qemuBlockStorageSourceAttachData *data);
|
||||
|
||||
int
|
||||
qemuBlockStorageSourceDetachOneBlockdev(virDomainObj *vm,
|
||||
virDomainAsyncJob asyncJob,
|
||||
virStorageSource *src);
|
||||
|
||||
struct _qemuBlockStorageSourceChainData {
|
||||
qemuBlockStorageSourceAttachData **srcdata;
|
||||
size_t nsrcdata;
|
||||
|
Loading…
x
Reference in New Issue
Block a user