mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 22:46:12 +00:00
Merge pull request #10416 from swagiaal/iscsi-remount
iSCSI Plugin: Remove remounting of device in global path.
This commit is contained in:
commit
8ea1078f6e
@ -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
Block a user