1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/daemon/graphdriver
Vivek Goyal 39bdf601f6 devmapper: Return device id in error message
I often get complains that container removal failed and users got following
error message.

"Driver devicemapper failed to remove root filesystem 18a69ba82aaf7a039ce7d44156215012d703001643079775190ac7dd6c6acf56:Device is Busy"

This error message talks about container id but does not give any info
about which particular device id is busy. Most likely device is mounted
in some other mount namespace and if one knows the device id, they
can try to do some debugging figuring which process and which mount
namespace is keeping the device busy and how did we reach that stage.

Without that information, it becomes almost impossible to debug the
problem.

So to improve the debuggability, when device removal fails, also return
device id in error message. Now new message looks as follows.

"Driver devicemapper failed to remove root filesystem 18a69ba82aaf7a039ce7d44156215012d703001643079775190ac7dd6c6acf56: Failed to remove device dbc15bdf9994a17c613d8ef9e924f3cffbf67f91e4f709295c901ad628377991:Device is Busy"

Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
2017-01-05 15:02:21 -05:00
..
aufs Pass all graphdriver create() parameters in a struct 2016-11-09 15:59:58 -05:00
btrfs fix t.Errorf to t.Error in serveral _test.go 2016-11-14 17:54:43 +08:00
devmapper devmapper: Return device id in error message 2017-01-05 15:02:21 -05:00
graphtest Moves graphdriver plugn docs out of experimental 2016-12-22 15:30:25 -05:00
overlay Merge pull request #27753 from tonistiigi/fix-overlay-unmount 2016-11-10 13:14:45 -08:00
overlay2 Skip overlay2 diff tests when using naivediff 2016-11-10 13:52:22 -08:00
overlayutils overlay: warn if overlay backing fs doesn't support d_type 2016-11-09 07:18:27 +00:00
quota Make golint happy. 2016-10-17 17:28:27 -07:00
register Add separate overlay2 driver 2016-06-08 00:16:01 -07:00
vfs Pass all graphdriver create() parameters in a struct 2016-11-09 15:59:58 -05:00
windows daemon: return directly without ifs where possible 2016-12-14 22:36:58 +02:00
zfs Pass all graphdriver create() parameters in a struct 2016-11-09 15:59:58 -05:00
counter.go Add reference counting to aufs 2016-05-23 15:57:23 -07:00
driver.go Moves graphdriver plugn docs out of experimental 2016-12-22 15:30:25 -05:00
driver_freebsd.go Move layer mount refcounts to mountedLayer 2016-03-23 14:42:52 -07:00
driver_linux.go promote overlay(2) graphdriver 2016-10-31 23:32:10 -07:00
driver_solaris.go Add functional support for Docker sub commands on Solaris 2016-11-07 09:06:34 -08:00
driver_unsupported.go Get the Docker Engine to build clean on Solaris 2016-05-23 16:37:12 -07:00
driver_windows.go Windows: Remove windowsdiff driver 2016-05-20 16:18:19 -07:00
fsdiff.go pkg/archive: remove unnecessary Archive and Reader type 2016-10-20 19:31:24 -07:00
plugin.go Moves graphdriver plugn docs out of experimental 2016-12-22 15:30:25 -05:00
proxy.go Moves graphdriver plugn docs out of experimental 2016-12-22 15:30:25 -05:00