The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/8116
This e-mail was sent by the LXC bot, direct replies will not reach the author unless they happen to be subscribed to this list. === Description (from pull-request) === Signed-off-by: Thomas Parrott <thomas.parr...@canonical.com>
From a15e4c882fc7062d356bce3e1b1c1b2670615605 Mon Sep 17 00:00:00 2001 From: Thomas Parrott <thomas.parr...@canonical.com> Date: Tue, 3 Nov 2020 16:28:46 +0000 Subject: [PATCH] lxd/instance/drivers/driver/qemu: Call MountInstanceSnapshot when mounting vm snapshots Signed-off-by: Thomas Parrott <thomas.parr...@canonical.com> --- lxd/instance/drivers/driver_qemu.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lxd/instance/drivers/driver_qemu.go b/lxd/instance/drivers/driver_qemu.go index a05c27b9cd..7bcc0a60a2 100644 --- a/lxd/instance/drivers/driver_qemu.go +++ b/lxd/instance/drivers/driver_qemu.go @@ -413,6 +413,15 @@ func (vm *qemu) mount() (bool, error) { return false, err } + if vm.IsSnapshot() { + ourMount, err := pool.MountInstanceSnapshot(vm, nil) + if err != nil { + return false, err + } + + return ourMount, nil + } + ourMount, err := pool.MountInstance(vm, nil) if err != nil { return false, err
_______________________________________________ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel