[libvirt] [dbus PATCH 09/15] Implement StorageVolLookupByName method for StoragePool Interface

Ján Tomko jtomko at redhat.com
Thu Jun 14 12:57:27 UTC 2018


On Tue, Jun 12, 2018 at 11:00:22AM +0200, Katerina Koukiou wrote:
>Signed-off-by: Katerina Koukiou <kkoukiou at redhat.com>
>---
> data/org.libvirt.StoragePool.xml |  6 ++++++
> src/storagepool.c                | 34 ++++++++++++++++++++++++++++++++++
> 2 files changed, 40 insertions(+)
>
>diff --git a/src/storagepool.c b/src/storagepool.c
>index c3fd0bf..55077ed 100644
>--- a/src/storagepool.c
>+++ b/src/storagepool.c
>@@ -401,6 +401,39 @@ virtDBusStoragePoolStorageVolCreateXML(GVariant *inArgs,
>     *outArgs = g_variant_new("(o)", path);
> }
>
>+static void
>+virtDBusStoragePoolStorageVolLookupByName(GVariant *inArgs,
>+                                          GUnixFDList *inFDs G_GNUC_UNUSED,
>+                                          const gchar *objectPath G_GNUC_UNUSED,

objectPath is actually used.

>+                                          gpointer userData,
>+                                          GVariant **outArgs,
>+                                          GUnixFDList **outFDs G_GNUC_UNUSED,
>+                                          GError **error)
>+{
>+    virtDBusConnect *connect = userData;
>+    g_autoptr(virStoragePool) storagePool = NULL;
>+    g_autoptr(virStorageVol) storageVol = NULL;
>+    g_autofree gchar *path = NULL;
>+    const gchar *name;
>+

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20180614/3cb74457/attachment-0001.sig>


More information about the libvir-list mailing list