moby/volume/local
Paweł Gronowski 294fc9762e
volume: Don't decrement refcount below 0
With both rootless and live restore enabled, there's some race condition
which causes the container to be `Unmount`ed before the refcount is
restored.

This makes sure we don't underflow the refcount (uint64) when
decrementing it.

The root cause of this race condition still needs to be investigated and
fixed, but at least this unflakies the `TestLiveRestore`.

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
2024-03-07 20:42:20 +01:00
..
local.go volume: Don't decrement refcount below 0 2024-03-07 20:42:20 +01:00
local_linux_test.go volume/local: Add tests for parsing nfs/cifs mounts 2024-01-23 17:42:09 +01:00
local_test.go volume: format code with gofumpt 2023-06-29 00:05:23 +02:00
local_unix.go volume/local: Fix cifs url containing spaces 2024-01-23 17:42:11 +01:00
local_windows.go volume/local: Don't unmount, restore mounted status 2023-08-29 14:16:37 +02:00