Windows check mount support

This commit is contained in:
AlexSSD7 2023-08-31 21:01:45 +01:00
commit 433deeab5e
3 changed files with 27 additions and 3 deletions

View file

@ -222,7 +222,6 @@ func NewVM(logger *slog.Logger, cfg VMConfig) (*VM, error) {
for _, dev := range cfg.PassthroughConfig.Block {
// It's always a user's responsibility to ensure that no drives are mounted
// in both host and guest system. This should serve as the last resort.
// TODO: Windows support.
{
seemsMounted, err := checkDeviceSeemsMounted(dev.Path)
if err != nil {