The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/6506

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) ===
Signed-off-by: Stéphane Graber <stgra...@ubuntu.com>
From a9a459beed4a7ff25503df120af4199daee9179f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgra...@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 <stgra...@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)
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to