iSCSI Plugin: Remove remounting of device in global path.

This code was originally added because the first mount call did not
respect the ro option. This no longer seems to be the cause so there
is no need to use remount.

Signed-off-by: Sami Wagiaalla <swagiaal@redhat.com>
pull/6/head
Sami Wagiaalla 2015-06-26 14:51:38 -04:00
parent 857b6ba5a8
commit 9ca9ab1b66
1 changed files with 1 additions and 9 deletions

View File

@ -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 {