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
92a043e8
Unverified
Commit
92a043e8
authored
Aug 17, 2016
by
Morgan Bauer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ensure pkg/util/mount compiles & crosses
- move compile time check from linux code to generic code
parent
0039d75d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
mount.go
pkg/util/mount/mount.go
+4
-0
mount_linux.go
pkg/util/mount/mount_linux.go
+0
-2
No files found.
pkg/util/mount/mount.go
View file @
92a043e8
...
...
@@ -51,6 +51,10 @@ type Interface interface {
GetDeviceNameFromMount
(
mountPath
,
pluginDir
string
)
(
string
,
error
)
}
// Compile-time check to ensure all Mounter implementations satisfy
// the mount interface
var
_
Interface
=
&
Mounter
{}
// This represents a single line in /proc/mounts or /etc/fstab.
type
MountPoint
struct
{
Device
string
...
...
pkg/util/mount/mount_linux.go
View file @
92a043e8
...
...
@@ -54,8 +54,6 @@ const (
// kubelet is running in the host's root mount namespace.
type
Mounter
struct
{}
var
_
=
Interface
(
&
Mounter
{})
// Mount mounts source to target as fstype with given options. 'source' and 'fstype' must
// be an emtpy string in case it's not required, e.g. for remount, or for auto filesystem
// type, where kernel handles fs type for you. The mount 'options' is a list of options,
...
...
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