From 86c91b4ae0e2b47d51602d028da4d7b03a50ee72 Mon Sep 17 00:00:00 2001 From: Thomas Parrott Date: Wed, 31 Jul 2024 16:23:03 +0100 Subject: [PATCH] lxd/device/device/utils/disk: Use -o flag for xattr mode of virtiofsd To support more versions of virtiofsd. Signed-off-by: Thomas Parrott --- lxd/device/device_utils_disk.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lxd/device/device_utils_disk.go b/lxd/device/device_utils_disk.go index 68d51cb46e94..224e6f817056 100644 --- a/lxd/device/device_utils_disk.go +++ b/lxd/device/device_utils_disk.go @@ -505,7 +505,8 @@ func DiskVMVirtiofsdStart(kernelVersion version.DottedVersion, inst instance.Ins // Start the virtiofsd process in non-daemon mode. args := []string{ "--fd=3", - "--xattr", + // use -o flags for support in wider versions of virtiofsd. + "-o", "xattr", "-o", fmt.Sprintf("source=%s", sharePath), }