[lxc-devel] [lxd/master] lxd/storage/cephfs: Properly handle root path

stgraber on Github lxc-bot at linuxcontainers.org
Thu Nov 21 16:26:49 UTC 2019


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 370 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20191121/51c953bb/attachment.bin>
-------------- next part --------------
From 0b49d9e1db0e43e729abc0f59174b30fff546ca6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Thu, 21 Nov 2019 11:26:18 -0500
Subject: [PATCH] lxd/storage/cephfs: Properly handle root path
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Closes #6477

Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
---
 lxd/storage/drivers/driver_cephfs.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lxd/storage/drivers/driver_cephfs.go b/lxd/storage/drivers/driver_cephfs.go
index 8fbcc0f2c3..4ed2b258a5 100644
--- a/lxd/storage/drivers/driver_cephfs.go
+++ b/lxd/storage/drivers/driver_cephfs.go
@@ -264,7 +264,7 @@ func (d *cephfs) Mount() (bool, error) {
 	// Parse the namespace / path.
 	fields := strings.SplitN(d.config["cephfs.path"], "/", 2)
 	fsName := fields[0]
-	fsPath := "/"
+	fsPath := ""
 	if len(fields) > 1 {
 		fsPath = fields[1]
 	}


More information about the lxc-devel mailing list