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/aufs
Sebastiaan van Stijn f9c8fa305e
Perform fsmagic detection on driver's home-dir if it exists
The fsmagic check was always performed on "data-root" (`/var/lib/docker`),
not on the storage-driver's home directory (e.g. `/var/lib/docker/<somedriver>`).

This caused detection to be done on the wrong filesystem in situations
where `/var/lib/docker/<somedriver>` was a mount, and a different
filesystem than `/var/lib/docker` itself.

This patch checks if the storage-driver's home directory exists, and only
falls back to `/var/lib/docker` if it doesn't exist.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2017-12-04 17:10:07 -08:00
..
aufs.go Perform fsmagic detection on driver's home-dir if it exists 2017-12-04 17:10:07 -08:00
aufs_test.go LCOW: Implemented support for docker cp + build 2017-09-14 12:07:52 -07:00
dirs.go Adds ability to squash image after build 2016-11-01 13:41:59 -04:00
mount.go Update logrus to v1.0.1 2017-07-31 13:16:46 -07:00
mount_linux.go [project] change syscall to /x/sys/unix|windows 2017-07-11 08:00:32 -04:00
mount_unsupported.go