From 4679aa77124978548bb30627209c85d76786dcbc Mon Sep 17 00:00:00 2001 From: Greg Kurz Date: Wed, 6 Sep 2023 17:43:17 +0200 Subject: [PATCH] runtime/qemu: Pass "--xattr" to virtiofsd instead of "-o xattr" The "-o" syntax belongs to the legacy C virtiofsd. It is deprecated with the rust implementation. Signed-off-by: Greg Kurz (cherry picked from commit 81536f21af71e0fa0d24754006f9ac395fabee9e) Signed-off-by: Greg Kurz --- src/runtime/virtcontainers/qemu.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/virtcontainers/qemu.go b/src/runtime/virtcontainers/qemu.go index a3c14b25c9..e650a9cc32 100644 --- a/src/runtime/virtcontainers/qemu.go +++ b/src/runtime/virtcontainers/qemu.go @@ -513,7 +513,7 @@ func (q *qemu) createVirtiofsDaemon(sharedPath string) (VirtiofsDaemon, error) { // in virtiofs if SELinux on the guest side is enabled. if !q.config.DisableGuestSeLinux { q.Logger().Info("Set the xattr option for virtiofsd") - q.config.VirtioFSExtraArgs = append(q.config.VirtioFSExtraArgs, "-o", "xattr") + q.config.VirtioFSExtraArgs = append(q.config.VirtioFSExtraArgs, "--xattr") } // default use virtiofsd