diff --git a/virtcontainers/virtiofsd.go b/virtcontainers/virtiofsd.go index 9b87c6bf9a..d15b5ca15a 100644 --- a/virtcontainers/virtiofsd.go +++ b/virtcontainers/virtiofsd.go @@ -126,9 +126,11 @@ func (v *virtiofsd) args() ([]string, error) { args := []string{ "-f", - "-o", "vhost_user_socket=" + v.socketPath, + "-o", "cache=" + v.cache, + "-o", "no_posix_lock", "-o", "source=" + v.sourcePath, - "-o", "cache=" + v.cache} + "-o", "vhost_user_socket=" + v.socketPath, + } if len(v.extraArgs) != 0 { args = append(args, v.extraArgs...)