|
|
fbe740 |
From 448ed3bee3e5b3a12a7bd0acd40ca0729214fba3 Mon Sep 17 00:00:00 2001
|
|
|
fbe740 |
Message-Id: <448ed3bee3e5b3a12a7bd0acd40ca0729214fba3@dist-git>
|
|
|
fbe740 |
From: Peter Krempa <pkrempa@redhat.com>
|
|
|
fbe740 |
Date: Tue, 4 Feb 2020 15:07:55 +0100
|
|
|
fbe740 |
Subject: [PATCH] qemu: domain: Remove unused qemuDomainDiskNodeFormatLookup
|
|
|
fbe740 |
MIME-Version: 1.0
|
|
|
fbe740 |
Content-Type: text/plain; charset=UTF-8
|
|
|
fbe740 |
Content-Transfer-Encoding: 8bit
|
|
|
fbe740 |
|
|
|
fbe740 |
The function has no users now and there's no need for it as the common
|
|
|
fbe740 |
pattern is to look up the whole disk object anyways.
|
|
|
fbe740 |
|
|
|
fbe740 |
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
|
|
|
fbe740 |
Reviewed-by: Eric Blake <eblake@redhat.com>
|
|
|
fbe740 |
(cherry picked from commit 180b3422e9a3391a0ee59d0076730ba85778fc7a)
|
|
|
fbe740 |
|
|
|
fbe740 |
https://bugzilla.redhat.com/show_bug.cgi?id=1207659
|
|
|
fbe740 |
Message-Id: <b6ab98ea54aced2d9aeb9abdca30fc4669b92bbe.1580824112.git.pkrempa@redhat.com>
|
|
|
fbe740 |
Reviewed-by: Ján Tomko <jtomko@redhat.com>
|
|
|
fbe740 |
---
|
|
|
fbe740 |
src/qemu/qemu_domain.c | 14 --------------
|
|
|
fbe740 |
src/qemu/qemu_domain.h | 3 ---
|
|
|
fbe740 |
2 files changed, 17 deletions(-)
|
|
|
fbe740 |
|
|
|
fbe740 |
diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c
|
|
|
fbe740 |
index be9de75909..94efcdf9b1 100644
|
|
|
fbe740 |
--- a/src/qemu/qemu_domain.c
|
|
|
fbe740 |
+++ b/src/qemu/qemu_domain.c
|
|
|
fbe740 |
@@ -12092,20 +12092,6 @@ qemuDomainDiskChangeSupported(virDomainDiskDefPtr disk,
|
|
|
fbe740 |
}
|
|
|
fbe740 |
|
|
|
fbe740 |
|
|
|
fbe740 |
-/* Return the format node name for a given disk of an online guest */
|
|
|
fbe740 |
-const char *
|
|
|
fbe740 |
-qemuDomainDiskNodeFormatLookup(virDomainObjPtr vm,
|
|
|
fbe740 |
- const char *disk)
|
|
|
fbe740 |
-{
|
|
|
fbe740 |
- size_t i;
|
|
|
fbe740 |
-
|
|
|
fbe740 |
- for (i = 0; i < vm->def->ndisks; i++) {
|
|
|
fbe740 |
- if (STREQ(vm->def->disks[i]->dst, disk))
|
|
|
fbe740 |
- return vm->def->disks[i]->src->nodeformat;
|
|
|
fbe740 |
- }
|
|
|
fbe740 |
- return NULL;
|
|
|
fbe740 |
-}
|
|
|
fbe740 |
-
|
|
|
fbe740 |
bool
|
|
|
fbe740 |
qemuDomainDiskBlockJobIsActive(virDomainDiskDefPtr disk)
|
|
|
fbe740 |
{
|
|
|
fbe740 |
diff --git a/src/qemu/qemu_domain.h b/src/qemu/qemu_domain.h
|
|
|
fbe740 |
index d1ab5da2c7..cdcb6ecc7a 100644
|
|
|
fbe740 |
--- a/src/qemu/qemu_domain.h
|
|
|
fbe740 |
+++ b/src/qemu/qemu_domain.h
|
|
|
fbe740 |
@@ -865,9 +865,6 @@ int qemuDomainDetermineDiskChain(virQEMUDriverPtr driver,
|
|
|
fbe740 |
bool qemuDomainDiskChangeSupported(virDomainDiskDefPtr disk,
|
|
|
fbe740 |
virDomainDiskDefPtr orig_disk);
|
|
|
fbe740 |
|
|
|
fbe740 |
-const char *qemuDomainDiskNodeFormatLookup(virDomainObjPtr vm,
|
|
|
fbe740 |
- const char *disk);
|
|
|
fbe740 |
-
|
|
|
fbe740 |
void qemuDomainGetImageIds(virQEMUDriverConfigPtr cfg,
|
|
|
fbe740 |
virDomainObjPtr vm,
|
|
|
fbe740 |
virStorageSourcePtr src,
|
|
|
fbe740 |
--
|
|
|
fbe740 |
2.25.0
|
|
|
fbe740 |
|