[lxc-devel] [lxd/master] lxd/storage/lvm: Call wipesignatures

stgraber on Github lxc-bot at linuxcontainers.org
Fri Feb 15 23:45:46 UTC 2019


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 370 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20190215/ae826b3f/attachment.bin>
-------------- next part --------------
From ad37977fea555104afb8bae79db31d0a938cb2f5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Fri, 15 Feb 2019 18:45:15 -0500
Subject: [PATCH] lxd/storage/lvm: Call wipesignatures
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Closes #5482

Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
---
 lxd/storage_lvm_utils.go | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lxd/storage_lvm_utils.go b/lxd/storage_lvm_utils.go
index e73fc0cffa..6788171233 100644
--- a/lxd/storage_lvm_utils.go
+++ b/lxd/storage_lvm_utils.go
@@ -229,6 +229,8 @@ func (s *storageLvm) createSnapshotLV(project, vgName string, origLvName string,
 		args = append(args, "-prw")
 	}
 
+	args = append(args, []string{"--wipesignatures", "y"}...)
+
 	output, err = shared.TryRunCommand("lvcreate", args...)
 	if err != nil {
 		logger.Errorf("Could not create LV snapshot: %s to %s: %s", origLvName, lvName, output)


More information about the lxc-devel mailing list