[gnome-boxes/drop-system-importer: 2/3] 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: 2/3] libvirt-machine: Only consider "local" volumes managed by Boxes
- Date: Mon, 29 Apr 2019 12:18:08 +0000 (UTC)
commit 6d03cde85b9bb28d77021e0b2a57cd2a0e2c6f64
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]