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

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) ===
Patch for https://github.com/lxc/lxd/issues/7062
From 2968fb4b3c489ae0cd36aa5b19b4aa9663999a2a Mon Sep 17 00:00:00 2001
From: monkz <g...@monkz.de>
Date: Fri, 20 Mar 2020 12:26:51 +0100
Subject: [PATCH] btrfs quota to simulate total disk size

Patch for https://github.com/lxc/lxd/issues/7062
---
 lxd/storage/drivers/driver_btrfs_volumes.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lxd/storage/drivers/driver_btrfs_volumes.go 
b/lxd/storage/drivers/driver_btrfs_volumes.go
index 5a1a7b012d..af17496ff4 100644
--- a/lxd/storage/drivers/driver_btrfs_volumes.go
+++ b/lxd/storage/drivers/driver_btrfs_volumes.go
@@ -501,7 +501,7 @@ func (d *btrfs) SetVolumeQuota(vol Volume, size string, op 
*operations.Operation
        // Modify the limit.
        if sizeBytes > 0 {
                // Apply the limit.
-               _, err := shared.RunCommand("btrfs", "qgroup", "limit", "-e", 
fmt.Sprintf("%d", sizeBytes), volPath)
+               _, err := shared.RunCommand("btrfs", "qgroup", "limit", 
fmt.Sprintf("%d", sizeBytes), volPath)
                if err != nil {
                        return err
                }
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to