Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.5:Update
kubevirt.33205
0005-Use-compat-cmdline-options-for-virtiofsd.p...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0005-Use-compat-cmdline-options-for-virtiofsd.patch of Package kubevirt.33205
From 88ee3b32d14192108b8e4d238505a37e62c4f517 Mon Sep 17 00:00:00 2001 From: Vasiliy Ulyanov <vulyanov@suse.de> Date: Tue, 25 Jul 2023 08:39:28 +0200 Subject: [PATCH] Use compat cmdline options for virtiofsd Signed-off-by: Vasiliy Ulyanov <vulyanov@suse.de> --- pkg/virt-controller/services/virtiofs.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/virt-controller/services/virtiofs.go b/pkg/virt-controller/services/virtiofs.go index fb5d60788..4b560156f 100644 --- a/pkg/virt-controller/services/virtiofs.go +++ b/pkg/virt-controller/services/virtiofs.go @@ -156,19 +156,19 @@ func virtioFSMountPoint(volume *v1.Volume) string { func generateContainerFromVolume(volume *v1.Volume, image string, resources k8sv1.ResourceRequirements) k8sv1.Container { socketPathArg := fmt.Sprintf("--socket-path=%s", virtiofs.VirtioFSSocketPath(volume.Name)) - sourceArg := fmt.Sprintf("--shared-dir=%s", virtioFSMountPoint(volume)) - args := []string{socketPathArg, sourceArg, "--cache=auto"} + sourceArg := fmt.Sprintf("source=%s", virtioFSMountPoint(volume)) + args := []string{socketPathArg, "-o", sourceArg, "-o", "cache=auto"} securityProfile := restricted sandbox := "none" if virtiofs.RequiresRootPrivileges(volume) { securityProfile = privileged sandbox = "chroot" - args = append(args, "--xattr") + args = append(args, "-o", "xattr", "-o", "xattrmap=:map::user.virtiofsd.:") } - sandboxArg := fmt.Sprintf("--sandbox=%s", sandbox) - args = append(args, sandboxArg) + sandboxArg := fmt.Sprintf("sandbox=%s", sandbox) + args = append(args, "-o", sandboxArg) volumeMounts := []k8sv1.VolumeMount{ // This is required to pass socket to compute -- 2.42.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor