From e8a3424c1c08e22b09f7bf83926d307ebc4849c7 Mon Sep 17 00:00:00 2001 From: Lars Lehtonen Date: Fri, 25 Aug 2017 21:34:40 -0700 Subject: [PATCH] Fix swallowed error in fc --- pkg/volume/fc/fc_util.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/volume/fc/fc_util.go b/pkg/volume/fc/fc_util.go index 5ad268c4b2f..f229d5700d6 100644 --- a/pkg/volume/fc/fc_util.go +++ b/pkg/volume/fc/fc_util.go @@ -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