Commit de222069 authored by Dawn Chen's avatar Dawn Chen

Merge pull request #15309 from rootfs/no_remount

rbd: no more remount.
parents 88f6a03c de41fd39
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment