Fix swallowed error in fc
This commit is contained in:
@@ -220,6 +220,9 @@ func (util *FCUtil) AttachDisk(b fcDiskMounter) (string, error) {
|
|||||||
// mount it
|
// mount it
|
||||||
globalPDPath := util.MakeGlobalPDName(*b.fcDisk)
|
globalPDPath := util.MakeGlobalPDName(*b.fcDisk)
|
||||||
noMnt, err := b.mounter.IsLikelyNotMountPoint(globalPDPath)
|
noMnt, err := b.mounter.IsLikelyNotMountPoint(globalPDPath)
|
||||||
|
if err != nil {
|
||||||
|
return devicePath, fmt.Errorf("Heuristic determination of mount point failed:%v", err)
|
||||||
|
}
|
||||||
if !noMnt {
|
if !noMnt {
|
||||||
glog.Infof("fc: %s already mounted", globalPDPath)
|
glog.Infof("fc: %s already mounted", globalPDPath)
|
||||||
return devicePath, nil
|
return devicePath, nil
|
||||||
|
Reference in New Issue
Block a user