forked from rpms/libvirt
53 lines
1.9 KiB
Diff
53 lines
1.9 KiB
Diff
From 92ec9a02d57b18eac3abc33e0807cd70c6bb46c5 Mon Sep 17 00:00:00 2001
|
|
Message-Id: <92ec9a02d57b18eac3abc33e0807cd70c6bb46c5@dist-git>
|
|
From: Peter Krempa <pkrempa@redhat.com>
|
|
Date: Tue, 4 Feb 2020 15:08:03 +0100
|
|
Subject: [PATCH] qemuMigrationCookieNBD: Extract embedded struct
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
Extract the struct so that it's type has a name.
|
|
|
|
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
|
|
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
|
|
(cherry picked from commit 3093822d1d8e3bbd01ea59f35a9fea1228f9268f)
|
|
|
|
https://bugzilla.redhat.com/show_bug.cgi?id=1793263
|
|
Message-Id: <e05be367f0869dbbf726cea7e91925fc48bb683f.1580824112.git.pkrempa@redhat.com>
|
|
Reviewed-by: Ján Tomko <jtomko@redhat.com>
|
|
---
|
|
src/qemu/qemu_migration_cookie.h | 10 ++++++----
|
|
1 file changed, 6 insertions(+), 4 deletions(-)
|
|
|
|
diff --git a/src/qemu/qemu_migration_cookie.h b/src/qemu/qemu_migration_cookie.h
|
|
index 20e1ed60ca..1e88684589 100644
|
|
--- a/src/qemu/qemu_migration_cookie.h
|
|
+++ b/src/qemu/qemu_migration_cookie.h
|
|
@@ -84,16 +84,18 @@ struct _qemuMigrationCookieNetwork {
|
|
qemuMigrationCookieNetDataPtr net;
|
|
};
|
|
|
|
+struct qemuMigrationCookieNBDDisk {
|
|
+ char *target; /* Disk target */
|
|
+ unsigned long long capacity; /* And its capacity */
|
|
+};
|
|
+
|
|
typedef struct _qemuMigrationCookieNBD qemuMigrationCookieNBD;
|
|
typedef qemuMigrationCookieNBD *qemuMigrationCookieNBDPtr;
|
|
struct _qemuMigrationCookieNBD {
|
|
int port; /* on which port does NBD server listen for incoming data */
|
|
|
|
size_t ndisks; /* Number of items in @disk array */
|
|
- struct {
|
|
- char *target; /* Disk target */
|
|
- unsigned long long capacity; /* And its capacity */
|
|
- } *disks;
|
|
+ struct qemuMigrationCookieNBDDisk *disks;
|
|
};
|
|
|
|
typedef struct _qemuMigrationCookieCaps qemuMigrationCookieCaps;
|
|
--
|
|
2.25.0
|
|
|