moby--moby/daemon/graphdriver/btrfs
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
..
btrfs.go Perform fsmagic detection on driver's home-dir if it exists 2017-12-04 17:10:07 -08:00
btrfs_test.go LCOW: Implemented support for docker cp + build 2017-09-14 12:07:52 -07:00
dummy_unsupported.go
version.go
version_none.go Fix typos found across repository 2015-12-13 18:04:12 +02:00
version_test.go fix t.Errorf to t.Error in serveral _test.go 2016-11-14 17:54:43 +08:00