mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-06 16:06:51 +00:00
Cleanup UnmountPath/UnmountMountPoint callers
This commit is contained in:
@@ -291,7 +291,7 @@ func (b *glusterfsMounter) SetUpAt(dir string, fsGroup *int64) error {
|
||||
}
|
||||
|
||||
// Cleanup upon failure.
|
||||
volutil.UnmountPath(dir, b.mounter)
|
||||
mount.CleanupMountPoint(dir, b.mounter, false)
|
||||
return err
|
||||
}
|
||||
|
||||
@@ -311,7 +311,7 @@ func (c *glusterfsUnmounter) TearDown() error {
|
||||
}
|
||||
|
||||
func (c *glusterfsUnmounter) TearDownAt(dir string) error {
|
||||
return volutil.UnmountPath(dir, c.mounter)
|
||||
return mount.CleanupMountPoint(dir, c.mounter, false)
|
||||
}
|
||||
|
||||
func (b *glusterfsMounter) setUpAtInternal(dir string) error {
|
||||
|
||||
Reference in New Issue
Block a user