Cleanup UnmountPath/UnmountMountPoint callers

This commit is contained in:
danielqsj
2019-01-07 13:24:59 +08:00
parent 8728ecc27d
commit d94cd822b7
24 changed files with 29 additions and 46 deletions

View File

@@ -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 {