From eb8c8e2f7c7d05da9388fb8c39116a8e9887aef2 Mon Sep 17 00:00:00 2001 From: Neil Horman Date: Tue, 9 May 2017 13:41:12 -0400 Subject: [PATCH] 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 Upstream-commit: 547510fb554bb77aa7f09efd46361306152b9d55 Component: engine --- components/engine/pkg/devicemapper/devmapper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/engine/pkg/devicemapper/devmapper.go b/components/engine/pkg/devicemapper/devmapper.go index 07161d43e8..e97d166e78 100644 --- a/components/engine/pkg/devicemapper/devmapper.go +++ b/components/engine/pkg/devicemapper/devmapper.go @@ -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