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
Neil Horman 5206d45e70 Move UdevWait from defer to inline
All LVM actions in the devicemapper library are asyncronous, involving a call to
a task enqueue function (dm_run_task) and a wait on a resultant udev event
(UdevWait).  Currently devmapper.go defers all calls to UdevWait, which discards
the return value.  While it still generates an error message in the log (if
debugging is enabled), the calling thread is still allowed to continue as if no
error has occured, leading to subsequent errors, and significant confusion when
debugging, due to those subsequent errors.  Given that there is no risk of panic
between the task submission and the wait operation, it seems more reasonable to
preform the UdevWait inline at the end of any given lvm action so that errors
can be caught and returned before docker can continue and create additional
failures.

Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
2017-05-09 13:42:04 -04:00
..
devmapper.go Move UdevWait from defer to inline 2017-05-09 13:42:04 -04:00
devmapper_log.go Make pkg/devicemapper and pkg/loopback depend on cgo in build tags 2017-03-29 17:55:42 -07:00
devmapper_wrapper.go Make pkg/devicemapper and pkg/loopback depend on cgo in build tags 2017-03-29 17:55:42 -07:00
devmapper_wrapper_deferred_remove.go Make pkg/devicemapper and pkg/loopback depend on cgo in build tags 2017-03-29 17:55:42 -07:00
devmapper_wrapper_no_deferred_remove.go Make pkg/devicemapper and pkg/loopback depend on cgo in build tags 2017-03-29 17:55:42 -07:00
ioctl.go Make pkg/devicemapper and pkg/loopback depend on cgo in build tags 2017-03-29 17:55:42 -07:00
log.go devicemapper: define device-mapper log levels 2015-01-20 13:31:12 -05:00