[lxc-devel] [lxd/master] storage/zfs: use "referenced" property when zfs.use_refquota=true

albertodonato on Github lxc-bot at linuxcontainers.org
Mon Sep 18 09:05:19 UTC 2017


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 313 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20170918/d72f4a86/attachment.bin>
-------------- next part --------------
From 0d028ea28c9ee6cf0e61a768e277c09fb9f41f12 Mon Sep 17 00:00:00 2001
From: Alberto Donato <alberto.donato at canonical.com>
Date: Mon, 18 Sep 2017 11:03:54 +0200
Subject: [PATCH] storage/zfs: use "referenced" property when
 zfs.use_refquota=true

Signed-off-by: Alberto Donato <alberto.donato at canonical.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 594d0f2ad..a2f6445f3 100644
--- a/lxd/storage_zfs.go
+++ b/lxd/storage_zfs.go
@@ -1493,7 +1493,7 @@ func (s *storageZfs) ContainerGetUsage(container container) (int64, error) {
 	}
 
 	if shared.IsTrue(zfsUseRefquota) {
-		property = "usedbydataset"
+		property = "referenced"
 	}
 
 	value, err := zfsFilesystemEntityPropertyGet(s.getOnDiskPoolName(), fs, property)


More information about the lxc-devel mailing list