Skip to content
Snippets Groups Projects
Commit 235237b1 authored by Matthew Wong's avatar Matthew Wong
Browse files

Fix windows build IsCorruptedMnt not implemented

parent 3b6a45aa
No related branches found
No related tags found
No related merge requests found
......@@ -24,6 +24,7 @@ import (
"regexp"
"github.com/kubernetes-sigs/aws-ebs-csi-driver/pkg/mounter"
mountutils "k8s.io/mount-utils"
)
func (m NodeMounter) FormatAndMount(source string, target string, fstype string, options []string) error {
......@@ -69,6 +70,11 @@ func (m NodeMounter) GetDeviceNameFromMount(mountPath string) (string, int, erro
return deviceName, 1, nil
}
// IsCorruptedMnt return true if err is about corrupted mount point
func (m NodeMounter) IsCorruptedMnt(err error) bool {
return mountutils.IsCorruptedMnt(err)
}
func (m *NodeMounter) MakeFile(path string) error {
proxyMounter, ok := m.SafeFormatAndMount.Interface.(*mounter.CSIProxyMounter)
if !ok {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment