[lxc-devel] [lxd/master] lxd/storage/zfs: Fix setting quotas on project
stgraber on Github
lxc-bot at linuxcontainers.org
Sun Dec 2 23:17:49 UTC 2018
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/20181202/a7225b00/attachment.bin>
-------------- next part --------------
From aea1c72ff2ecb6c68875cc2a1201fd98a5e19562 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at 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 <stgraber at 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)
}
More information about the lxc-devel
mailing list