Merge branch 'fix-fc-swallowed-error' into fix-storageos-swallowed-err

This commit is contained in:
Lars Lehtonen 2017-08-26 14:46:36 -07:00
commit 30b9038bbb
No known key found for this signature in database
GPG Key ID: 8137D474EBCB04F2

View File

@ -220,6 +220,9 @@ func (util *FCUtil) AttachDisk(b fcDiskMounter) (string, error) {
// mount it
globalPDPath := util.MakeGlobalPDName(*b.fcDisk)
noMnt, err := b.mounter.IsLikelyNotMountPoint(globalPDPath)
if err != nil {
return devicePath, fmt.Errorf("Heuristic determination of mount point failed:%v", err)
}
if !noMnt {
glog.Infof("fc: %s already mounted", globalPDPath)
return devicePath, nil