mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Enhance error logging for failed UdevWait operations in devmapper
If a wait event fails when preforming a devicemapper operation, it would be good to know, in addition to the cookie that its waiting on, we reported the error that was reported from the lvm2 library. Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
This commit is contained in:
parent
7f968435f6
commit
547510fb55
1 changed files with 1 additions and 1 deletions
|
@ -257,7 +257,7 @@ func (t *Task) getNextTarget(next unsafe.Pointer) (nextPtr unsafe.Pointer, start
|
|||
// UdevWait waits for any processes that are waiting for udev to complete the specified cookie.
|
||||
func UdevWait(cookie *uint) error {
|
||||
if res := DmUdevWait(*cookie); res != 1 {
|
||||
logrus.Debugf("devicemapper: Failed to wait on udev cookie %d", *cookie)
|
||||
logrus.Debugf("devicemapper: Failed to wait on udev cookie %d, %d", *cookie, res)
|
||||
return ErrUdevWait
|
||||
}
|
||||
return nil
|
||||
|
|
Loading…
Reference in a new issue