]> git.ipfire.org Git - thirdparty/qemu.git/commit
block/gluster: Use URI parsing code from glib
authorThomas Huth <thuth@redhat.com>
Mon, 4 Mar 2024 12:49:38 +0000 (13:49 +0100)
committerThomas Huth <thuth@redhat.com>
Tue, 14 May 2024 10:46:46 +0000 (12:46 +0200)
commit3413c6628b71c865da354590c3b05aa1f55a0729
tree59274a24621be2f118c33dc0a2a6801787ddcccf
parent82fe5d08fd8b83173e506d266e614d0dca5f2088
block/gluster: Use URI parsing code from glib

Since version 2.66, glib has useful URI parsing functions, too.
Use those instead of the QEMU-internal ones to be finally able
to get rid of the latter.

Since g_uri_get_path() returns a const pointer, we also need to
tweak the parameter of parse_volume_options() (where we use the
result of g_uri_get_path() as input).

Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20240418101056.302103-10-thuth@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
block/gluster.c