Skip to content

Commit

Permalink
Support multipath device (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
zengyingzhe authored and wisererik committed Jan 8, 2020
1 parent 392dd15 commit 41239dc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contrib/connector/fc/linuxfc.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,9 @@ func getMultipathDevice(deviceWWN string) (string, error) {
cmd := fmt.Sprintf("ls -l /dev/disk/by-id/ | grep %s", deviceWWN)
out, err := connector.ExecCmd("/bin/bash", "-c", cmd)
if err != nil {
errMsg := fmt.Sprintf("error occurred when find DM of wwn %s: %s, %v", deviceWWN, out, err)
log.Println(errMsg)
return "", errors.New(errMsg)
msg := fmt.Sprintf("No DM of wwn %s exist", deviceWWN)
log.Println(msg)
return "", nil
}

lines := strings.Split(strings.TrimSpace(out), "\n")
Expand Down

0 comments on commit 41239dc

Please sign in to comment.