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/overlay
Phil Estes 6ed11b5374 Simplify dir removal in overlay driver
There is no need to call `os.Stat` on the driver filesystem path of a
container as `os.RemoveAll` already handles (properly) the case where
the path no longer exists.

Given the results of the stat() were not even being used,  there is no
value in erroring out because of the stat call failure, and worse, it
prevents daemon cleanup of containers in "Dead" state unless you re-create
directories that were already removed via a manual cleanup after a
failure.  This brings removal in overlay in line with aufs/devicemapper
drivers which don't error out if the filesystem path no longer exists.

Docker-DCO-1.1-Signed-off-by: Phil Estes <estesp@linux.vnet.ibm.com> (github: estesp)
2015-10-08 11:04:00 -04:00
..
copy.go Fixed file modified time not changing on Windows 2015-10-01 10:45:32 -07:00
overlay.go Simplify dir removal in overlay driver 2015-10-08 11:04:00 -04:00
overlay_test.go Windows: Don't build Linux graph drivers 2015-06-08 15:09:33 -07:00
overlay_unsupported.go Windows: Don't build Linux graph drivers 2015-06-08 15:09:33 -07:00