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

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) ===
Fixes #3795 
From 0d028ea28c9ee6cf0e61a768e277c09fb9f41f12 Mon Sep 17 00:00:00 2001
From: Alberto Donato <alberto.don...@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.don...@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)
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to