podman/pkg/machine/qemu
Mario Loriedo d358e91817 Fix running machines with volumes containing spaces
Machines configured to mount local paths containing
spaces failed to start on Hyper-V and silently failed
to mount the folder on macOS/Linux.

On Windows/hyperv, where local paths are mounted
running a 9p client inside the VM, the local host
path needs to be surrounding with quotation marks
before using in a `podman machine ssh ...` command.

A similar behavior happened on Linux/QEMU where the
path was used in a SSH command to mount the folder
using virtiofs. Quoting the path when buidling the
command arguments fixed the problem.

On macOS/libkit,applehv the path was written as is
in a systemd unit name to instruct how to mount it.
Escaping space chars so that they are are parsed
successfully fixed this:
```diff
-- enable path with spaces.mount
++ enable path\x20with\x20spaces.mount
```

Fixes https://github.com/containers/podman/issues/25500

Signed-off-by: Mario Loriedo <mario.loriedo@gmail.com>
2025-05-07 17:22:40 +00:00
..
command Fix compilation issues in QEMU machine files (Windows platform) 2024-11-27 17:23:08 +02:00
config.go Fix compilation issues in QEMU machine files (Windows platform) 2024-11-27 17:23:08 +02:00
config_test.go Build tag out QEMU for Darwin 2024-02-15 15:53:06 -05:00
machine.go ci: rm allow-unused from nolintlint settings 2025-03-31 12:27:55 -07:00
machine_unix.go Improve cross platform support in QEMU machine sources 2024-02-16 12:49:54 +02:00
machine_windows.go pkg/machine/qemu: rm unused code 2025-03-31 12:27:55 -07:00
options_freebsd_amd64.go pkg/machine/qemu: fix ST1016 linter warning on freebsd 2025-03-31 12:30:43 -07:00
options_freebsd_arm64.go pkg/machine/qemu: fix ST1016 linter warning on freebsd 2025-03-31 12:30:43 -07:00
options_linux_amd64.go machine/linux: Use memory-backend-memfd by default 2024-06-07 10:03:06 -04:00
options_linux_arm64.go machine/linux: Use memory-backend-memfd by default 2024-06-07 10:03:06 -04:00
options_windows_amd64.go Fix compilation issues in QEMU machine files (Windows platform) 2024-11-27 17:23:08 +02:00
options_windows_arm64.go Merge pull request #21638 from ashley-cui/buildtag 2024-02-19 13:31:58 +00:00
stubber.go Fix running machines with volumes containing spaces 2025-05-07 17:22:40 +00:00
virtiofsd.go Fix compilation issues in QEMU machine files (Windows platform) 2024-11-27 17:23:08 +02:00