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

View File

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