[gnome-boxes/drop-system-importer: 3/4] libvirt-machine: Only consider "local" volumes managed by Boxes
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes/drop-system-importer: 3/4] libvirt-machine: Only consider "local" volumes managed by Boxes
- Date: Mon, 29 Apr 2019 06:58:43 +0000 (UTC)
commit d8421d1b38f4017a4aa9bfd9158086c7d12063f2
Author: Felipe Borges <felipeborges gnome org>
Date: Wed Apr 24 17:39:46 2019 +0200
libvirt-machine: Only consider "local" volumes managed by Boxes
All libvirt VMs that don't have volumes managed by Boxes, e.g. not
stored in Boxes' DATADIR, should be consider "Remote". They can be
available in the users' filesystem or remotely.
src/libvirt-machine.vala | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/libvirt-machine.vala b/src/libvirt-machine.vala
index 0f1b8290..1c8e4830 100644
--- a/src/libvirt-machine.vala
+++ b/src/libvirt-machine.vala
@@ -51,8 +51,8 @@
public override bool is_local {
get {
- // If the URI is prefixed by "qemu" or "qemu+unix" and the domain is "system" of "session" then
it is local.
- if (/^qemu(\+unix)?:\/\/\/(system|session)/i.match (source.uri))
+ /* get_domain_disk () will return NULL for volumes that aren't managed by Boxes. */
+ if (get_domain_disk () != null)
return true;
return base.is_local;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]