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

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) ===
As the man page suggests, xfs_growfs should take the mount point, not
the dev path.

Signed-off-by: Thomas Hipp <thomas.h...@canonical.com>
From ede67e44900219b6ba5cc72759bd7b31b6241443 Mon Sep 17 00:00:00 2001
From: Thomas Hipp <thomas.h...@canonical.com>
Date: Tue, 28 Jan 2020 18:42:35 +0100
Subject: [PATCH] lxd/storage/drivers: Pass mountPath to xfs_growfs

As the man page suggests, xfs_growfs should take the mount point, not
the dev path.

Signed-off-by: Thomas Hipp <thomas.h...@canonical.com>
---
 lxd/storage/drivers/utils.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lxd/storage/drivers/utils.go b/lxd/storage/drivers/utils.go
index 67320151b5..0a8a3aaa91 100644
--- a/lxd/storage/drivers/utils.go
+++ b/lxd/storage/drivers/utils.go
@@ -472,7 +472,7 @@ func growFileSystem(fsType string, devPath string, vol 
Volume) error {
                case "ext4":
                        msg, err = shared.TryRunCommand("resize2fs", devPath)
                case "xfs":
-                       msg, err = shared.TryRunCommand("xfs_growfs", devPath)
+                       msg, err = shared.TryRunCommand("xfs_growfs", mountPath)
                case "btrfs":
                        msg, err = shared.TryRunCommand("btrfs", "filesystem", 
"resize", "max", mountPath)
                default:
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to