1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/volume
Brian Goff 246d1eb58e Fix volume not working after daemon restart
When the daemon is started, it looks at all the volumes and checks to
see if any of them have mount options persisted to disk, and loads them
from disk if it does.

In some cases a volume will be created with an empty map causing the
options file to be persisted and volume options set to a non-nil value
on daemon restart... this causes problems later when the driver checks
for a non-nil value to determine if it should try and mount with the
persisted volume options.

Ensures 2 things:

1. Instead of only checking nilness for the opts map, use `len` to make
sure it is not an empty map, which we don't really need to persit.

2. An empty (or nulled) opts.json will not inadvertnatly set volume
options on daemon restart.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
2016-08-17 20:36:17 -04:00
..
drivers delete a useless variable 2016-07-29 15:34:21 +08:00
local Fix volume not working after daemon restart 2016-08-17 20:36:17 -04:00
store Remove code duplication in VolumeStore Create CreateWithRef 2016-07-06 19:09:47 -03:00
testutils Add support for volume scopes 2016-06-05 15:37:15 -04:00
volume.go revendor engine-api 2016-08-16 14:16:12 -04:00
volume_copy.go Add explicit flags for volume cp/no-cp 2016-03-21 20:38:44 -04:00
volume_propagation_linux.go revendor engine-api 2016-08-16 14:16:12 -04:00
volume_propagation_linux_test.go Remove static errors from errors package. 2016-02-26 15:49:09 -05:00
volume_propagation_unsupported.go revendor engine-api 2016-08-16 14:16:12 -04:00
volume_test.go Windows: Remove TP4 support from test code 2016-04-11 15:36:31 -07:00
volume_unix.go revendor engine-api 2016-08-16 14:16:12 -04:00
volume_windows.go Windows: Support RO volumes 14350+ 2016-06-07 14:55:36 -07:00