The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/3457
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 #3456. Signed-off-by: Christian Brauner <christian.brau...@ubuntu.com>
From 259893861365887c67ac8e3c22df04414bedc5ab Mon Sep 17 00:00:00 2001 From: Christian Brauner <christian.brau...@ubuntu.com> Date: Tue, 27 Jun 2017 19:14:46 +0200 Subject: [PATCH] lvm: allow non-empty VGs when thinpool exists Closes #3456. Signed-off-by: Christian Brauner <christian.brau...@ubuntu.com> --- lxd/storage_lvm.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lxd/storage_lvm.go b/lxd/storage_lvm.go index 8bd6098e8..13b3abf3b 100644 --- a/lxd/storage_lvm.go +++ b/lxd/storage_lvm.go @@ -260,11 +260,11 @@ func (s *storageLvm) StoragePoolCreate() error { } empty := true - if count > 1 || count == 1 && !s.useThinpool { + if count >= 1 && !s.useThinpool { empty = false } - if count == 1 && s.useThinpool { + if s.useThinpool { ok, err := storageLVMThinpoolExists(poolName, s.thinPoolName) if err != nil { logger.Errorf("failed to determine whether thinpool \"%s\" exists in volume group \"%s\": %s", poolName, s.thinPoolName, err)
_______________________________________________ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel