Skip to content

Commit

Permalink
Device: Use -o flag for xattr mode of virtiofsd for disk device (#1…
Browse files Browse the repository at this point in the history
…3845)

To support more versions of virtiofsd.

Follows from #13828
  • Loading branch information
tomponline authored Aug 1, 2024
2 parents d371eb7 + 86c91b4 commit 2a2bead
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lxd/device/device_utils_disk.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
}

Expand Down

0 comments on commit 2a2bead

Please sign in to comment.