Merge pull request #3230 from liubin/backport/3220

stable-2.3 | runtime: only call stopVirtiofsd when shared_fs is virtio-fs
This commit is contained in:
Julio Montes 2021-12-08 08:32:04 -06:00 committed by GitHub
commit 25ee73ceb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -992,8 +992,10 @@ func (q *qemu) StopVM(ctx context.Context, waitOnly bool) error {
} }
} }
if err := q.stopVirtiofsd(ctx); err != nil { if q.config.SharedFS == config.VirtioFS {
return err if err := q.stopVirtiofsd(ctx); err != nil {
return err
}
} }
return nil return nil