[lxc-devel] [lxd/master] lxd/storage/btrfs: Fix StorageEntitySetQuota

stgraber on Github lxc-bot at linuxcontainers.org
Mon Nov 25 19:48:10 UTC 2019


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 354 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20191125/5c31c1ed/attachment.bin>
-------------- next part --------------
From a9a459beed4a7ff25503df120af4199daee9179f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Mon, 25 Nov 2019 14:47:51 -0500
Subject: [PATCH] lxd/storage/btrfs: Fix StorageEntitySetQuota
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

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

diff --git a/lxd/storage_btrfs.go b/lxd/storage_btrfs.go
index d800f931e3..cda37f1f7e 100644
--- a/lxd/storage_btrfs.go
+++ b/lxd/storage_btrfs.go
@@ -2705,6 +2705,7 @@ func (s *storageBtrfs) StorageEntitySetQuota(volumeType int, size int64, data in
 	var subvol string
 	switch volumeType {
 	case storagePoolVolumeTypeContainer:
+		c = data.(instance.Instance)
 		subvol = driver.GetContainerMountPoint(c.Project(), s.pool.Name, c.Name())
 	case storagePoolVolumeTypeCustom:
 		subvol = driver.GetStoragePoolVolumeMountPoint(s.pool.Name, s.volume.Name)


More information about the lxc-devel mailing list