Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
aws-ebs-csi-driver
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Operate
Terraform modules
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
forks
aws-ebs-csi-driver
Commits
235237b1
Commit
235237b1
authored
3 years ago
by
Matthew Wong
Browse files
Options
Downloads
Patches
Plain Diff
Fix windows build IsCorruptedMnt not implemented
parent
3b6a45aa
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pkg/driver/mount_windows.go
+6
-0
6 additions, 0 deletions
pkg/driver/mount_windows.go
with
6 additions
and
0 deletions
pkg/driver/mount_windows.go
+
6
−
0
View file @
235237b1
...
...
@@ -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
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment