diff options
| author | Chris Lu <chrislusf@users.noreply.github.com> | 2023-08-06 18:21:55 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-06 18:21:55 -0700 |
| commit | 615c145190e7cb880bf2542d3ae9e750b28b9a89 (patch) | |
| tree | e3c646e031c35b0299d58407994b10b5ed38a89a /pkg/driver/mount_util.go | |
| parent | d777b8750bb2dd33948988f4eec8813e6207a0cd (diff) | |
| parent | eca9cde95a899ab5645b00d8c0d547abd4bc7e8e (diff) | |
| download | seaweedfs-csi-driver-615c145190e7cb880bf2542d3ae9e750b28b9a89.tar.xz seaweedfs-csi-driver-615c145190e7cb880bf2542d3ae9e750b28b9a89.zip | |
Merge pull request #131 from kvaster/refactor-1
Update dependencies
Diffstat (limited to 'pkg/driver/mount_util.go')
| -rw-r--r-- | pkg/driver/mount_util.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pkg/driver/mount_util.go b/pkg/driver/mount_util.go index 561a499..40716d0 100644 --- a/pkg/driver/mount_util.go +++ b/pkg/driver/mount_util.go @@ -4,14 +4,16 @@ import ( "errors" "time" - "k8s.io/utils/mount" + "k8s.io/mount-utils" ) +var mountutil = mount.New("") + func waitForMount(path string, timeout time.Duration) error { var elapsed time.Duration var interval = 10 * time.Millisecond for { - notMount, err := mount.New("").IsLikelyNotMountPoint(path) + notMount, err := mountutil.IsLikelyNotMountPoint(path) if err != nil { return err } |
