Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
fb32e1de
Commit
fb32e1de
authored
Apr 26, 2019
by
andyzhangx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix flexvol stuck issue due to corrupted mnt point
fix comments about PathExists fix comments revert change in PathExists func
parent
5b2266b9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
unmounter.go
pkg/volume/flexvolume/unmounter.go
+8
-8
No files found.
pkg/volume/flexvolume/unmounter.go
View file @
fb32e1de
...
@@ -42,15 +42,15 @@ func (f *flexVolumeUnmounter) TearDown() error {
...
@@ -42,15 +42,15 @@ func (f *flexVolumeUnmounter) TearDown() error {
}
}
func
(
f
*
flexVolumeUnmounter
)
TearDownAt
(
dir
string
)
error
{
func
(
f
*
flexVolumeUnmounter
)
TearDownAt
(
dir
string
)
error
{
pathExists
,
pathErr
:=
mount
.
PathExists
(
dir
)
pathExists
,
pathErr
:=
mount
.
PathExists
(
dir
)
if
!
pathExists
{
if
pathErr
!=
nil
{
klog
.
Warningf
(
"Warning: Unmount skipped because path does not exist: %v"
,
dir
)
// only log warning here since plugins should anyways have to deal with errors
return
nil
klog
.
Warningf
(
"Error checking path: %v"
,
pathErr
)
}
}
else
{
if
!
pathExists
{
if
pathErr
!=
nil
&&
!
mount
.
IsCorruptedMnt
(
pathErr
)
{
klog
.
Warningf
(
"Warning: Unmount skipped because path does not exist: %v"
,
dir
)
return
fmt
.
Errorf
(
"Error checking path: %v"
,
pathErr
)
return
nil
}
}
}
call
:=
f
.
plugin
.
NewDriverCall
(
unmountCmd
)
call
:=
f
.
plugin
.
NewDriverCall
(
unmountCmd
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment