Skip to content
This repository has been archived by the owner on Mar 22, 2018. It is now read-only.

Commit

Permalink
Merge branch 'master' into ipv6
Browse files Browse the repository at this point in the history
  • Loading branch information
steveperry-53 committed Feb 14, 2018
2 parents 774df00 + 53114bb commit 88a32a9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/volume/util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ const (

ErrDeviceNotFound = "device not found"
ErrDeviceNotSupported = "device not supported"
ErrNotAvailable = "not available"
)

// IsReady checks for the existence of a regular file
Expand Down Expand Up @@ -322,7 +321,7 @@ type BlockVolumePathHandler interface {
UnmapDevice(mapPath string, linkName string) error
// RemovePath removes a file or directory on specified map path
RemoveMapPath(mapPath string) error
// IsSymlinkExist retruns true if specified symbolic link exists
// IsSymlinkExist returns true if specified symbolic link exists
IsSymlinkExist(mapPath string) (bool, error)
// GetDeviceSymlinkRefs searches symbolic links under global map path
GetDeviceSymlinkRefs(devPath string, mapPath string) ([]string, error)
Expand Down Expand Up @@ -381,7 +380,7 @@ func (v VolumePathHandler) MapDevice(devicePath string, mapPath string, linkName
}
// Remove old symbolic link(or file) then create new one.
// This should be done because current symbolic link is
// stale accross node reboot.
// stale across node reboot.
linkPath := path.Join(mapPath, string(linkName))
if err = os.Remove(linkPath); err != nil && !os.IsNotExist(err) {
return err
Expand Down

0 comments on commit 88a32a9

Please sign in to comment.