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
605aec40
Commit
605aec40
authored
Jun 01, 2018
by
Lou Yihua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some log issues in flexvolume
parent
32ac1c90
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
attacher-defaults.go
pkg/volume/flexvolume/attacher-defaults.go
+3
-3
No files found.
pkg/volume/flexvolume/attacher-defaults.go
View file @
605aec40
...
...
@@ -30,13 +30,13 @@ type attacherDefaults flexVolumeAttacher
// Attach is part of the volume.Attacher interface
func
(
a
*
attacherDefaults
)
Attach
(
spec
*
volume
.
Spec
,
hostName
types
.
NodeName
)
(
string
,
error
)
{
glog
.
Warning
(
logPrefix
(
a
.
plugin
.
flexVolumePlugin
),
"using default Attach for volume "
,
spec
.
Name
,
", host "
,
hostName
)
glog
.
Warning
(
logPrefix
(
a
.
plugin
.
flexVolumePlugin
),
"using default Attach for volume "
,
spec
.
Name
()
,
", host "
,
hostName
)
return
""
,
nil
}
// WaitForAttach is part of the volume.Attacher interface
func
(
a
*
attacherDefaults
)
WaitForAttach
(
spec
*
volume
.
Spec
,
devicePath
string
,
timeout
time
.
Duration
)
(
string
,
error
)
{
glog
.
Warning
(
logPrefix
(
a
.
plugin
.
flexVolumePlugin
),
"using default WaitForAttach for volume "
,
spec
.
Name
,
", device "
,
devicePath
)
glog
.
Warning
(
logPrefix
(
a
.
plugin
.
flexVolumePlugin
),
"using default WaitForAttach for volume "
,
spec
.
Name
()
,
", device "
,
devicePath
)
return
devicePath
,
nil
}
...
...
@@ -47,7 +47,7 @@ func (a *attacherDefaults) GetDeviceMountPath(spec *volume.Spec, mountsDir strin
// MountDevice is part of the volume.Attacher interface
func
(
a
*
attacherDefaults
)
MountDevice
(
spec
*
volume
.
Spec
,
devicePath
string
,
deviceMountPath
string
,
mounter
mount
.
Interface
)
error
{
glog
.
Warning
(
logPrefix
(
a
.
plugin
.
flexVolumePlugin
),
"using default MountDevice for volume "
,
spec
.
Name
,
", device "
,
devicePath
,
", deviceMountPath "
,
deviceMountPath
)
glog
.
Warning
(
logPrefix
(
a
.
plugin
.
flexVolumePlugin
),
"using default MountDevice for volume "
,
spec
.
Name
()
,
", device "
,
devicePath
,
", deviceMountPath "
,
deviceMountPath
)
volSourceFSType
,
err
:=
getFSType
(
spec
)
if
err
!=
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