runtime: Fix virtiofs fd leak

The kata runtime invokes removeStaleVirtiofsShareMounts after
a container is stopped to clean up the stale virtiofs file caches.

Fixes: #6455
Signed-off-by: Feng Wang <fwang@confluent.io>
This commit is contained in:
Feng Wang
2023-04-26 15:38:08 -07:00
parent 509bc8b6c8
commit 205909fbed
12 changed files with 521 additions and 311 deletions

View File

@@ -302,6 +302,7 @@ func TestMountSharedDirMounts(t *testing.T) {
sandbox := &Sandbox{
ctx: context.Background(),
id: "foobar",
agent: newMockAgent(),
hypervisor: &mockHypervisor{},
config: &SandboxConfig{
HypervisorConfig: HypervisorConfig{