mirror of https://github.com/k3s-io/k3s
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
parent
857b6ba5a8
commit
9ca9ab1b66
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue