moby--moby/daemon
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
..
caps
cluster Restore error type in FindNetwork 2017-11-29 11:22:57 -08:00
config
discovery
events
exec Merge pull request #35645 from crosbymichael/ctd-10 2017-11-30 15:22:01 -08:00
graphdriver Perform fsmagic detection on driver's home-dir if it exists 2017-12-04 17:10:07 -08:00
initlayer
links
listeners
logger Merge pull request #35628 from ikarpovich/35626-le-line-only-legacy 2017-11-30 15:48:56 -08:00
names
network
stats
testdata
apparmor_default.go
apparmor_default_unsupported.go
archive.go
archive_tarcopyoptions.go
archive_tarcopyoptions_unix.go
archive_tarcopyoptions_windows.go
archive_unix.go
archive_windows.go
attach.go
auth.go
bindmount_unix.go
build.go
cache.go
changes.go
checkpoint.go Simplify/fix MkdirAll usage 2017-11-27 17:32:12 -08:00
cluster.go
commit.go
configs.go
configs_linux.go
configs_unsupported.go
configs_windows.go
container.go
container_linux.go
container_operations.go
container_operations_unix.go
container_operations_windows.go
container_windows.go
create.go
create_unix.go
create_windows.go
daemon.go Simplify/fix MkdirAll usage 2017-11-27 17:32:12 -08:00
daemon_experimental.go
daemon_linux.go
daemon_linux_test.go
daemon_test.go Restore error type in FindNetwork 2017-11-29 11:22:57 -08:00
daemon_unix.go Simplify/fix MkdirAll usage 2017-11-27 17:32:12 -08:00
daemon_unix_test.go
daemon_unsupported.go
daemon_windows.go Simplify/fix MkdirAll usage 2017-11-27 17:32:12 -08:00
daemon_windows_test.go
debugtrap_unix.go
debugtrap_unsupported.go
debugtrap_windows.go
delete.go
delete_test.go
dependency.go
disk_usage.go
errors.go Restore error type in FindNetwork 2017-11-29 11:22:57 -08:00
events.go
events_test.go
exec.go
exec_linux.go
exec_solaris.go
exec_windows.go
export.go
getsize_unix.go
health.go Merge pull request #35533 from AliyunContainerService/supress-warning-healthcheck-none 2017-11-30 11:06:05 -08:00
health_test.go
image.go
image_delete.go
image_exporter.go
image_history.go
image_inspect.go
image_pull.go
image_push.go
image_tag.go
images.go
import.go
info.go
info_unix.go
info_unix_test.go
info_windows.go
inspect.go
inspect_solaris.go
inspect_unix.go
inspect_windows.go
keys.go
keys_unsupported.go
kill.go
links.go
list.go
list_unix.go
list_windows.go
logdrivers_linux.go
logdrivers_windows.go
logs.go
logs_test.go
metrics.go
metrics_unix.go
metrics_unsupported.go
monitor.go Merge pull request #35516 from mlaventure/reduce-race-on-exit 2017-11-30 11:30:51 -08:00
monitor_linux.go
monitor_solaris.go
monitor_windows.go
mounts.go
names.go
network.go docker changes corresponding to libnetwork changes. 2017-11-30 13:03:30 -08:00
oci_linux.go
oci_linux_test.go
oci_windows.go
pause.go
prune.go
reload.go
reload_test.go
rename.go
resize.go
restart.go
search.go
search_test.go
seccomp_disabled.go
seccomp_linux.go
seccomp_unsupported.go
secrets.go
secrets_linux.go
secrets_unsupported.go
secrets_windows.go
selinux_linux.go
selinux_unsupported.go
start.go
start_unix.go Update daemon code for containerd API changes 2017-11-30 09:55:03 -05:00
start_windows.go
stats.go
stats_collector.go
stats_unix.go
stats_windows.go
stop.go
top_unix.go
top_unix_test.go
top_windows.go
trustkey.go
trustkey_test.go
unpause.go
update.go
update_linux.go
update_solaris.go
update_windows.go
volumes.go
volumes_unit_test.go
volumes_unix.go
volumes_unix_test.go
volumes_windows.go
wait.go
workdir.go