From 9ca9ab1b66a2d37e3c13e771047cfa65e7970321 Mon Sep 17 00:00:00 2001 From: Sami Wagiaalla Date: Fri, 26 Jun 2015 14:51:38 -0400 Subject: [PATCH] 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 --- pkg/volume/iscsi/iscsi.go | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/pkg/volume/iscsi/iscsi.go b/pkg/volume/iscsi/iscsi.go index 10adc7f0683..ef9dca56fb5 100644 --- a/pkg/volume/iscsi/iscsi.go +++ b/pkg/volume/iscsi/iscsi.go @@ -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 {