[lxc-devel] [lxd/master] lxd/storage: Allow size limits on dir volumes

stgraber on Github lxc-bot at linuxcontainers.org
Thu Jul 11 20:07:47 UTC 2019


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/20190711/3cc155ee/attachment.bin>
-------------- next part --------------
From 56494adbb81fa4607c07c8bba0185b04acee2de2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Thu, 11 Jul 2019 16:07:27 -0400
Subject: [PATCH] lxd/storage: Allow size limits on dir volumes
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_volumes_config.go | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/lxd/storage_volumes_config.go b/lxd/storage_volumes_config.go
index 792b8a0b0d..51e497d154 100644
--- a/lxd/storage_volumes_config.go
+++ b/lxd/storage_volumes_config.go
@@ -67,18 +67,21 @@ var changeableStoragePoolVolumeProperties = map[string][]string{
 
 	"dir": {
 		"security.unmapped",
+		"size",
 	},
 
 	"lvm": {
 		"block.mount_options",
 		"security.unmapped",
-		"size"},
+		"size",
+	},
 
 	"zfs": {
 		"security.unmapped",
 		"size",
 		"zfs.remove_snapshots",
-		"zfs.use_refquota"},
+		"zfs.use_refquota",
+	},
 }
 
 // btrfs, ceph, cephfs, dir, lvm, zfs


More information about the lxc-devel mailing list