]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu_domain_namespace.c: Rename qemuDomainAttachDeviceMknodData
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 20 Jul 2020 18:01:54 +0000 (20:01 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 3 Aug 2020 17:40:35 +0000 (19:40 +0200)
This structure is going to be used from not only device attach
code, but also when building the namespace. Moreover, the code
lives in a separate file so the chances of clashing with another
name are minimal.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_namespace.c

index db38bc0e0de6c0c009a05a0bc28d7e653343be77..e78760df29dfa1266956b35a3e01cad105054e9b 100644 (file)
@@ -1098,7 +1098,7 @@ qemuDomainNamespaceAvailable(qemuDomainNamespace ns G_GNUC_UNUSED)
 }
 
 
-struct qemuDomainAttachDeviceMknodData {
+struct qemuNamespaceMkondData {
     virQEMUDriverPtr driver;
     virDomainObjPtr vm;
     const char *file;
@@ -1117,7 +1117,7 @@ static int
 qemuDomainAttachDeviceMknodHelper(pid_t pid G_GNUC_UNUSED,
                                   void *opaque)
 {
-    struct qemuDomainAttachDeviceMknodData *data = opaque;
+    struct qemuNamespaceMkondData *data = opaque;
     int ret = -1;
     bool delDevice = false;
     bool isLink = S_ISLNK(data->sb.st_mode);
@@ -1262,7 +1262,7 @@ qemuDomainAttachDeviceMknodRecursive(virQEMUDriverPtr driver,
                                      unsigned int ttl)
 {
     g_autoptr(virQEMUDriverConfig) cfg = NULL;
-    struct qemuDomainAttachDeviceMknodData data;
+    struct qemuNamespaceMkondData data;
     int ret = -1;
     g_autofree char *target = NULL;
     bool isLink;