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
08ca867e
Commit
08ca867e
authored
Apr 28, 2018
by
andyzhangx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix IsLikelyNotMountPoint func on Windows
parent
2e433e81
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
mount_windows.go
pkg/util/mount/mount_windows.go
+5
-1
No files found.
pkg/util/mount/mount_windows.go
View file @
08ca867e
...
@@ -145,7 +145,11 @@ func (mounter *Mounter) IsLikelyNotMountPoint(file string) (bool, error) {
...
@@ -145,7 +145,11 @@ func (mounter *Mounter) IsLikelyNotMountPoint(file string) (bool, error) {
}
}
// If current file is a symlink, then it is a mountpoint.
// If current file is a symlink, then it is a mountpoint.
if
stat
.
Mode
()
&
os
.
ModeSymlink
!=
0
{
if
stat
.
Mode
()
&
os
.
ModeSymlink
!=
0
{
return
false
,
nil
target
,
err
:=
os
.
Readlink
(
file
)
if
err
!=
nil
{
return
true
,
fmt
.
Errorf
(
"Readlink error: %v"
,
err
)
}
return
!
mounter
.
ExistsPath
(
target
),
nil
}
}
return
true
,
nil
return
true
,
nil
...
...
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