Skip to content

Commit

Permalink
mantle/platform/qemu: use cache=never for virtiofsd
Browse files Browse the repository at this point in the history
Still trying to figure out data corruption from
#3728
  • Loading branch information
dustymabe committed Feb 14, 2024
1 parent 40b14dd commit 9ed1b14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mantle/platform/qemu.go
Original file line number Diff line number Diff line change
Expand Up @@ -1620,7 +1620,7 @@ func (builder *QemuBuilder) VirtioJournal(config *conf.Conf, queryArguments stri

// createVirtiofsCmd returns a new command instance configured to launch virtiofsd.
func createVirtiofsCmd(directory, socketPath string) exec.Cmd {
args := []string{"--sandbox", "none", "--socket-path", socketPath, "--shared-dir", "."}
args := []string{"--sandbox=none", "--cache=never", "--socket-path", socketPath, "--shared-dir", "."}
// Work around https://gitlab.com/virtio-fs/virtiofsd/-/merge_requests/197
if os.Getuid() == 0 {
args = append(args, "--modcaps=-mknod:-setfcap")
Expand Down

0 comments on commit 9ed1b14

Please sign in to comment.