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

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) ===

From cdfe9f8c7994ca9b518afab599856a5de0b94456 Mon Sep 17 00:00:00 2001
From: Thomas Parrott <thomas.parr...@canonical.com>
Date: Fri, 1 Nov 2019 10:04:49 +0000
Subject: [PATCH] lxd/storage/drivers/driver/dir: Adds warnings of ext4 project
 quota not supported

Signed-off-by: Thomas Parrott <thomas.parr...@canonical.com>
---
 lxd/storage/drivers/driver_dir.go | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lxd/storage/drivers/driver_dir.go 
b/lxd/storage/drivers/driver_dir.go
index bafb1fb06f..f50ee8ceef 100644
--- a/lxd/storage/drivers/driver_dir.go
+++ b/lxd/storage/drivers/driver_dir.go
@@ -16,6 +16,7 @@ import (
        "github.com/lxc/lxd/shared"
        "github.com/lxc/lxd/shared/api"
        "github.com/lxc/lxd/shared/ioprogress"
+       log "github.com/lxc/lxd/shared/log15"
        "github.com/lxc/lxd/shared/units"
 )
 
@@ -683,6 +684,7 @@ func (d *dir) initQuota(path string, volID int64) error {
        ok, err := quota.Supported(path)
        if err != nil || !ok {
                // Skipping quota as underlying filesystem doesn't suppport 
project quotas.
+               d.logger.Warn("The backing filesystem doesn't support quotas, 
skipping quota", log.Ctx{"path": path})
                return nil
        }
 
@@ -713,6 +715,7 @@ func (d *dir) setQuota(path string, volID int64, size 
string) error {
        ok, err := quota.Supported(path)
        if err != nil || !ok {
                // Skipping quota as underlying filesystem doesn't suppport 
project quotas.
+               d.logger.Warn("The backing filesystem doesn't support quotas, 
skipping quota", log.Ctx{"path": path})
                return nil
        }
 
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to