Discussion:
[lxc-devel] [lxd/master] lxd/storage/zfs: Fix setting quotas on project
stgraber on Github
2018-12-02 23:17:50 UTC
Permalink
From aea1c72ff2ecb6c68875cc2a1201fd98a5e19562 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <***@ubuntu.com>
Date: Sun, 2 Dec 2018 18:16:31 -0500
Subject: [PATCH] lxd/storage/zfs: Fix setting quotas on project
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Stéphane Graber <***@ubuntu.com>
---
lxd/storage_zfs.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lxd/storage_zfs.go b/lxd/storage_zfs.go
index a8d8a5033d..97a8a59a00 100644
--- a/lxd/storage_zfs.go
+++ b/lxd/storage_zfs.go
@@ -2893,7 +2893,7 @@ func (s *storageZfs) StorageEntitySetQuota(volumeType int, size int64, data inte
switch volumeType {
case storagePoolVolumeTypeContainer:
c = data.(container)
- fs = fmt.Sprintf("containers/%s", c.Name())
+ fs = fmt.Sprintf("containers/%s", projectPrefix(c.Project(), c.Name()))
case storagePoolVolumeTypeCustom:
fs = fmt.Sprintf("custom/%s", s.volume.Name)
}

Loading...