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
de222069
Commit
de222069
authored
Oct 12, 2015
by
Dawn Chen
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #15309 from rootfs/no_remount
rbd: no more remount.
parents
88f6a03c
de41fd39
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
11 deletions
+1
-11
rbd.go
pkg/volume/rbd/rbd.go
+1
-11
No files found.
pkg/volume/rbd/rbd.go
View file @
de222069
...
...
@@ -201,18 +201,8 @@ func (b *rbdBuilder) SetUpAt(dir string) error {
err
:=
diskSetUp
(
b
.
manager
,
*
b
,
dir
,
b
.
mounter
)
if
err
!=
nil
{
glog
.
Errorf
(
"rbd: failed to setup"
)
return
err
}
globalPDPath
:=
b
.
manager
.
MakeGlobalPDName
(
*
b
.
rbd
)
// make mountpoint rw/ro work as expected
//FIXME revisit pkg/util/mount and ensure rw/ro is implemented as expected
mode
:=
"rw"
if
b
.
ReadOnly
{
mode
=
"ro"
}
b
.
plugin
.
execCommand
(
"mount"
,
[]
string
{
"-o"
,
"remount,"
+
mode
,
globalPDPath
,
dir
})
return
nil
return
err
}
type
rbdCleaner
struct
{
...
...
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