The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/5459
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) === Closes #5457 Signed-off-by: Stéphane Graber <stgra...@ubuntu.com>
From d87a9bc643059e66caa06fbf85431f969ac628b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgra...@ubuntu.com> Date: Sun, 3 Feb 2019 11:12:42 +0100 Subject: [PATCH] lxd/storage/lvm: Use right VG name for exports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #5457 Signed-off-by: Stéphane Graber <stgra...@ubuntu.com> --- lxd/storage_lvm.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lxd/storage_lvm.go b/lxd/storage_lvm.go index b2df2b938d..91b1f9f413 100644 --- a/lxd/storage_lvm.go +++ b/lxd/storage_lvm.go @@ -1673,6 +1673,8 @@ func (s *storageLvm) ContainerSnapshotCreateEmpty(snapshotContainer container) e } func (s *storageLvm) ContainerBackupCreate(backup backup, source container) error { + poolName := s.getOnDiskPoolName() + // Start storage ourStart, err := source.StorageStart() if err != nil { @@ -1748,13 +1750,13 @@ func (s *storageLvm) ContainerBackupCreate(backup backup, source container) erro } defer os.RemoveAll(tmpContainerMntPoint) - _, err = s.createSnapshotLV(source.Project(), s.pool.Name, source.Name(), + _, err = s.createSnapshotLV(source.Project(), poolName, source.Name(), storagePoolVolumeAPIEndpointContainers, containerNameToLVName(sourceLvmDatasetSnapshot), storagePoolVolumeAPIEndpointContainers, false, s.useThinpool) if err != nil { return err } - defer removeLV(source.Project(), s.pool.Name, storagePoolVolumeAPIEndpointContainers, + defer removeLV(source.Project(), poolName, storagePoolVolumeAPIEndpointContainers, containerNameToLVName(sourceLvmDatasetSnapshot)) // Mount the temporary snapshot
_______________________________________________ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel