mirror of
https://github.com/aljazceru/kata-containers.git
synced 2025-12-18 14:54:19 +01:00
virtcontainers: 9p: shares multiple devices with only one export
Use 'remap' behaviour to deal with multiple devices being shared with a 9p export. Fixes the following warning: ``` 9p: Multiple devices detected in same VirtFS export, which might lead to file ID collisions and severe misbehaviours on guest! You should either use a separate export for each device shared from host or use virtfs option 'multidevs=remap'! ``` fixes #378 Signed-off-by: Julio Montes <julio.montes@intel.com>
This commit is contained in:
@@ -460,6 +460,7 @@ func generic9PVolume(volume types.Volume, nestedRun bool) govmmQemu.FSDevice {
|
||||
MountTag: volume.MountTag,
|
||||
SecurityModel: govmmQemu.None,
|
||||
DisableModern: nestedRun,
|
||||
Multidev: govmmQemu.Remap,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user