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>
... | ... |
@@ -257,7 +257,7 @@ func (t *Task) getNextTarget(next unsafe.Pointer) (nextPtr unsafe.Pointer, start |
257 | 257 |
// UdevWait waits for any processes that are waiting for udev to complete the specified cookie. |
258 | 258 |
func UdevWait(cookie *uint) error { |
259 | 259 |
if res := DmUdevWait(*cookie); res != 1 { |
260 |
- logrus.Debugf("devicemapper: Failed to wait on udev cookie %d", *cookie) |
|
260 |
+ logrus.Debugf("devicemapper: Failed to wait on udev cookie %d, %d", *cookie, res) |
|
261 | 261 |
return ErrUdevWait |
262 | 262 |
} |
263 | 263 |
return nil |