[lxc-devel] [lxd/master] btrfs: remove unused variable

brauner on Github lxc-bot at linuxcontainers.org
Fri Apr 28 20:21:45 UTC 2017


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 364 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20170428/2d8cf50c/attachment.bin>
-------------- next part --------------
From c98943f87690ef8ae0d0b4c5e5288b2eb28d7e13 Mon Sep 17 00:00:00 2001
From: Christian Brauner <christian.brauner at ubuntu.com>
Date: Fri, 28 Apr 2017 22:21:04 +0200
Subject: [PATCH] btrfs: remove unused variable

Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>
---
 lxd/storage_btrfs.go | 1 -
 1 file changed, 1 deletion(-)

diff --git a/lxd/storage_btrfs.go b/lxd/storage_btrfs.go
index 15ff9c3..ae74adb 100644
--- a/lxd/storage_btrfs.go
+++ b/lxd/storage_btrfs.go
@@ -286,7 +286,6 @@ func (s *storageBtrfs) StoragePoolDelete() error {
 		msg := ""
 		if err == nil {
 			msg = fmt.Sprintf("Removing disk device %s with UUID: %s.", diskPath, source)
-			diskPath = fmt.Sprintf("/dev/%s", strings.Trim(diskPath, "../../"))
 		} else {
 			msg = fmt.Sprintf("Failed to lookup disk device with UUID: %s: %s.", source, err)
 		}


More information about the lxc-devel mailing list