1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/pkg/devicemapper
Aleksa Sarai 98fe4bd8f1
pkg: devmapper: dynamically load dm_task_deferred_remove
dm_task_deferred_remove is not supported by all distributions, due to
out-dated versions of devicemapper. However, in the case where the
devicemapper library was updated without rebuilding Docker (which can
happen in some distributions) then we should attempt to dynamically load
the relevant object rather than try to link to it.

This can only be done if Docker was built dynamically, for obvious
reasons.

In order to avoid having issues arise when dlsym(3) was unnecessary,
gate the whole dlsym(3) logic behind a buildflag that we disable by
default (libdm_dlsym_deferred_remove).

Signed-off-by: Aleksa Sarai <asarai@suse.de>
2018-02-16 17:23:23 +11:00
..
devmapper.go Add canonical import comment 2018-02-05 16:51:57 -05:00
devmapper_log.go Add canonical import comment 2018-02-05 16:51:57 -05:00
devmapper_wrapper.go Add canonical import comment 2018-02-05 16:51:57 -05:00
devmapper_wrapper_dynamic.go Add canonical import comment 2018-02-05 16:51:57 -05:00
devmapper_wrapper_dynamic_deferred_remove.go pkg: devmapper: dynamically load dm_task_deferred_remove 2018-02-16 17:23:23 +11:00
devmapper_wrapper_dynamic_dlsym_deferred_remove.go pkg: devmapper: dynamically load dm_task_deferred_remove 2018-02-16 17:23:23 +11:00
devmapper_wrapper_no_deferred_remove.go pkg: devmapper: dynamically load dm_task_deferred_remove 2018-02-16 17:23:23 +11:00
ioctl.go Add canonical import comment 2018-02-05 16:51:57 -05:00
log.go Add canonical import comment 2018-02-05 16:51:57 -05:00