moby--moby/volume
Aaron Lehmann a762222396 volume: Use a map of maps for VolumeStore.refs
The current implementation of getRefs is a bit fragile. It returns a
slice to callers without copying its contents, and assumes the contents
will not be modified elsewhere.

Also, the current implementation of Dereference requires copying the
slice of references, excluding the one we wish to remove.

To improve both of these things, change refs to be a map of maps.
Deleting an item becomes trivial, and returning a slice of references
necessitates copying from the map.

Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
2016-12-05 15:39:05 -08:00
..
drivers Update plugingetter import path in docker/docker. 2016-10-11 11:24:18 -07:00
local Restrict checkpoint name to prevent directory traversal 2016-11-23 13:23:07 -08:00
store volume: Use a map of maps for VolumeStore.refs 2016-12-05 15:39:05 -08:00
testutils test: fix trivial code convention noncompliance 2016-09-12 07:36:52 +00:00
validate.go api: fix ReadOnly support for tmpfs 2016-11-08 06:49:17 +00:00
validate_test.go Add new `HostConfig` field, `Mounts`. 2016-09-13 09:55:35 -04:00
validate_test_unix.go Add new `HostConfig` field, `Mounts`. 2016-09-13 09:55:35 -04:00
validate_test_windows.go Add new `HostConfig` field, `Mounts`. 2016-09-13 09:55:35 -04:00
volume.go Fix uneccessary calls to `volume.Unmount()` 2016-11-10 14:04:08 -05:00
volume_copy.go Add new `HostConfig` field, `Mounts`. 2016-09-13 09:55:35 -04:00
volume_copy_unix.go Add new `HostConfig` field, `Mounts`. 2016-09-13 09:55:35 -04:00
volume_copy_windows.go Add new `HostConfig` field, `Mounts`. 2016-09-13 09:55:35 -04:00
volume_linux.go Use container Mounts API for Swarm containers. 2016-11-22 13:23:51 -05:00
volume_linux_test.go api: fix ReadOnly support for tmpfs 2016-11-08 06:49:17 +00:00
volume_propagation_linux.go Add new `HostConfig` field, `Mounts`. 2016-09-13 09:55:35 -04:00
volume_propagation_linux_test.go Add new `HostConfig` field, `Mounts`. 2016-09-13 09:55:35 -04:00
volume_propagation_unsupported.go Add new `HostConfig` field, `Mounts`. 2016-09-13 09:55:35 -04:00
volume_test.go Fix several issues with `go vet` and `go fmt` 2016-11-17 06:31:28 -08:00
volume_unix.go Add new `HostConfig` field, `Mounts`. 2016-09-13 09:55:35 -04:00
volume_unsupported.go api: fix ReadOnly support for tmpfs 2016-11-08 06:49:17 +00:00
volume_windows.go Windows: Remove TP5 support from volume 2016-09-21 11:03:19 -07:00