Fix mount options in FibreChannel volumes

Do not mount volumes in WaitForAttach(), mount them in MountDevice()
instead. They will get proper mount options this way.
This commit is contained in:
Jan Safranek
2020-03-17 11:41:00 +01:00
parent f60a0c8660
commit 58129fd12c
4 changed files with 4 additions and 35 deletions

View File

@@ -24,7 +24,7 @@ import (
"strings"
"testing"
"k8s.io/utils/exec/testing"
testingexec "k8s.io/utils/exec/testing"
"k8s.io/utils/mount"
v1 "k8s.io/api/core/v1"
@@ -122,10 +122,6 @@ func (fake *fakeDiskManager) AttachDisk(b fcDiskMounter) (string, error) {
if err != nil {
return "", err
}
// Simulate the global mount so that the fakeMounter returns the
// expected number of mounts for the attached disk.
b.mounter.Mount(globalPath, globalPath, b.fsType, nil)
fake.attachCalled = true
return "", nil
}