podman/pkg/machine/vmconfigs
Valentin Rothberg f8abd7ff75 machine config: make write atomic
As indicated in #21849, loading the machine config can flake/fail with
an EOF JSON error indicating an incomplete file.  Address the issue by
atomically writing the config.  This way, it is not possible to load an
incomplete or partially written file.  The lock can be acquired later on
to sync state.

[NO NEW TESTS NEEDED] as it's a hard-to-hit race.

Fixes: #21849
Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
2024-02-28 09:44:41 +01:00
..
arch.go Prune FCOS related code 2024-02-15 21:05:17 -06:00
arch_test.go Prune FCOS related code 2024-02-15 21:05:17 -06:00
config.go Merge pull request #21638 from ashley-cui/buildtag 2024-02-19 13:31:58 +00:00
config_common.go pkg/machine: make it build for freebsd 2024-02-08 17:43:50 +01:00
config_darwin.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
config_windows.go wsl - wip 2024-02-11 12:58:11 -06:00
machine.go machine config: make write atomic 2024-02-28 09:44:41 +01:00
sockets.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
sockets_darwin.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
volumes.go Podman 5 machine refactor - applehv 2024-02-07 09:18:45 -06:00
volumes_unix.go [CI:MACHINE]Podman5 QEMU refactor 2024-02-07 09:18:36 -06:00
volumes_windows.go [CI:MACHINE]Podman5 QEMU refactor 2024-02-07 09:18:36 -06:00