[lxc-devel] [lxd/master] init: Enable compression on new zfs pools

stgraber on Github lxc-bot at linuxcontainers.org
Wed Sep 14 20:18:53 UTC 2016


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/20160914/ddd30552/attachment.bin>
-------------- next part --------------
From f75a9136daac62aabfd209f3a6121ef13e23a8d5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Wed, 14 Sep 2016 16:17:04 -0400
Subject: [PATCH] init: Enable compression on new zfs pools
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/main.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lxd/main.go b/lxd/main.go
index 2283e66..9ae1c73 100644
--- a/lxd/main.go
+++ b/lxd/main.go
@@ -945,7 +945,7 @@ they otherwise would.
 			output, err := exec.Command(
 				"zpool",
 				"create", storagePool, storageDevice,
-				"-f", "-m", "none").CombinedOutput()
+				"-f", "-m", "none", "-O", "compression=on").CombinedOutput()
 			if err != nil {
 				return fmt.Errorf("Failed to create the ZFS pool: %s", output)
 			}


More information about the lxc-devel mailing list