From 6f3625b11e030304959cd3144f761ecb45e011b7 Mon Sep 17 00:00:00 2001 From: Huamin Chen Date: Tue, 18 Sep 2018 13:10:28 +0000 Subject: [PATCH] review feedback Signed-off-by: Huamin Chen --- pkg/rbd/rbd_attach.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/rbd/rbd_attach.go b/pkg/rbd/rbd_attach.go index 707d23e81..9418af2eb 100644 --- a/pkg/rbd/rbd_attach.go +++ b/pkg/rbd/rbd_attach.go @@ -212,7 +212,7 @@ func checkRbdNbdTools() bool { return false } if _, err := execCommand("rbd-nbd", []string{"--version"}); err != nil { - glog.V(3).Infof("rbd-nbd: running rbd-nbd -h failed with error %v", err) + glog.V(3).Infof("rbd-nbd: running rbd-nbd --version failed with error %v", err) return false } glog.V(3).Infof("rbd-nbd tools were found.") @@ -234,7 +234,7 @@ func attachRBDImage(volOptions *rbdVolume, userId string, credentials map[string } devicePath, found := waitForPath(volOptions.Pool, image, 1, useNBD) if !found { - attachdetachMutex.LockKey(string(volOptions.Pool + image)) + attachdetachMutex.LockKey(string(imagePath)) defer attachdetachMutex.UnlockKey(string(imagePath)) _, err = execCommand("modprobe", []string{moduleName})