File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ limitations under the License.
17
17
package nfs
18
18
19
19
import (
20
+ "runtime"
20
21
"strings"
21
22
22
23
"github.com/container-storage-interface/spec/lib/go/csi"
@@ -108,7 +109,12 @@ func (n *Driver) Run(testMode bool) {
108
109
}
109
110
klog .V (2 ).Infof ("\n DRIVER INFORMATION:\n -------------------\n %s\n \n Streaming logs below:" , versionMeta )
110
111
111
- n .ns = NewNodeServer (n , mount .New ("" ).(mount.MounterForceUnmounter ))
112
+ mounter := mount .New ("" )
113
+ if runtime .GOOS == "linux" {
114
+ // MounterForceUnmounter is only implemented on Linux now
115
+ mounter = mounter .(mount.MounterForceUnmounter )
116
+ }
117
+ n .ns = NewNodeServer (n , mounter )
112
118
s := NewNonBlockingGRPCServer ()
113
119
s .Start (n .endpoint ,
114
120
NewDefaultIdentityServer (n ),
You can’t perform that action at this time.
0 commit comments