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
de41fd39
Commit
de41fd39
authored
Oct 08, 2015
by
Huamin Chen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rbd: no more remount.
remount was originally needed to ensure rw/ro is set correctly. There is no such need since mount is using exec interface Signed-off-by:
Huamin Chen
<
hchen@redhat.com
>
parent
418a8b50
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 @
de41fd39
...
@@ -201,18 +201,8 @@ func (b *rbdBuilder) SetUpAt(dir string) error {
...
@@ -201,18 +201,8 @@ func (b *rbdBuilder) SetUpAt(dir string) error {
err
:=
diskSetUp
(
b
.
manager
,
*
b
,
dir
,
b
.
mounter
)
err
:=
diskSetUp
(
b
.
manager
,
*
b
,
dir
,
b
.
mounter
)
if
err
!=
nil
{
if
err
!=
nil
{
glog
.
Errorf
(
"rbd: failed to setup"
)
glog
.
Errorf
(
"rbd: failed to setup"
)
return
err
}
}
globalPDPath
:=
b
.
manager
.
MakeGlobalPDName
(
*
b
.
rbd
)
return
err
// 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
}
}
type
rbdCleaner
struct
{
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