Commit 8639f243 authored by markturansky's avatar markturansky

rebased and updated

parent 920cb34b
...@@ -229,8 +229,8 @@ func (b *gcePersistentDiskBuilder) SetUpAt(dir string) error { ...@@ -229,8 +229,8 @@ func (b *gcePersistentDiskBuilder) SetUpAt(dir string) error {
return nil return nil
} }
func (pd *gcePersistentDisk) IsReadOnly() bool { func (b *gcePersistentDiskBuilder) IsReadOnly() bool {
return pd.readOnly return b.readOnly
} }
func makeGlobalPDName(host volume.VolumeHost, devName string) string { func makeGlobalPDName(host volume.VolumeHost, devName string) string {
......
...@@ -62,11 +62,7 @@ func diskSetUp(manager diskManager, b rbdBuilder, volPath string, mounter mount. ...@@ -62,11 +62,7 @@ func diskSetUp(manager diskManager, b rbdBuilder, volPath string, mounter mount.
} }
// Perform a bind mount to the full path to allow duplicate mounts of the same disk. // Perform a bind mount to the full path to allow duplicate mounts of the same disk.
options := []string{"bind"} options := []string{"bind"}
<<<<<<< HEAD if b.IsReadOnly() {
if b.ReadOnly {
=======
if disk.readOnly {
>>>>>>> rebased and updated to latest
options = append(options, "ro") options = append(options, "ro")
} }
err = mounter.Mount(globalPDPath, volPath, "", options) err = mounter.Mount(globalPDPath, volPath, "", options)
......
...@@ -161,11 +161,7 @@ func (util *RBDUtil) loadRBD(rbd *rbd, mnt string) error { ...@@ -161,11 +161,7 @@ func (util *RBDUtil) loadRBD(rbd *rbd, mnt string) error {
func (util *RBDUtil) fencing(b rbdBuilder) error { func (util *RBDUtil) fencing(b rbdBuilder) error {
// no need to fence readOnly // no need to fence readOnly
<<<<<<< HEAD if b.IsReadOnly() {
if b.ReadOnly {
=======
if rbd.readOnly {
>>>>>>> rebased and updated to latest
return nil return nil
} }
return util.rbdLock(b, true) return util.rbdLock(b, true)
...@@ -173,11 +169,7 @@ func (util *RBDUtil) fencing(b rbdBuilder) error { ...@@ -173,11 +169,7 @@ func (util *RBDUtil) fencing(b rbdBuilder) error {
func (util *RBDUtil) defencing(c rbdCleaner) error { func (util *RBDUtil) defencing(c rbdCleaner) error {
// no need to fence readOnly // no need to fence readOnly
<<<<<<< HEAD
if c.ReadOnly { if c.ReadOnly {
=======
if rbd.readOnly {
>>>>>>> rebased and updated to latest
return nil return nil
} }
......
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