Commit 8ea1078f authored by Quinton Hoole's avatar Quinton Hoole

Merge pull request #10416 from swagiaal/iscsi-remount

iSCSI Plugin: Remove remounting of device in global path.
parents e3707ff5 9ca9ab1b
......@@ -165,16 +165,8 @@ func (b *iscsiDiskBuilder) SetUpAt(dir string) error {
err := diskSetUp(b.manager, *b, dir, b.mounter)
if err != nil {
glog.Errorf("iscsi: failed to setup")
return err
}
globalPDPath := b.manager.MakeGlobalPDName(*b.iscsiDisk)
var options []string
if b.readOnly {
options = []string{"remount", "ro"}
} else {
options = []string{"remount", "rw"}
}
return b.mounter.Mount(globalPDPath, dir, "", options)
return err
}
type iscsiDiskCleaner 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