[gnome-boxes/drop-system-importer: 225/225] 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: 225/225] libvirt-machine: Only consider "local" volumes managed by Boxes
- Date: Wed, 11 Dec 2019 10:49:23 +0000 (UTC)
commit bfe52e805c04c8fd2214e35101a68e93db971d8a
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 d9d27e96..e747594d 100644
--- a/src/libvirt-machine.vala
+++ b/src/libvirt-machine.vala
@@ -87,8 +87,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]