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 <groug@kaod.org>
This commit is contained in:
Greg Kurz 2023-09-06 17:43:17 +02:00
parent aa85e0b3ec
commit 81536f21af

View File

@ -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