Skip to content

Commit ca2c822

Browse files
committed
rename force clean up function
1 parent 9c702e7 commit ca2c822

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

pkg/flist/cleanup.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ func (f *flistModule) cleanUnusedMounts() error {
140140

141141
if err := os.Remove(path); err != nil {
142142
log.Debug().Msgf("failed to remove path, trying to forcibly clean up : %+v", path)
143-
if err := f.forceUnmountAndRemove(path); err != nil {
143+
if err := f.forceRemoveBrokenMounts(path); err != nil {
144144
log.Error().Err(err).Msgf("failed to clean mountpoint %s", path)
145145
}
146146
}
@@ -149,8 +149,8 @@ func (f *flistModule) cleanUnusedMounts() error {
149149
return nil
150150
}
151151

152-
// forceUnmountAndRemove tries to fix the clean up of broken mounts by attempting to unmount them first
153-
func (f *flistModule) forceUnmountAndRemove(path string) error {
152+
// forceRemoveBrokenMounts tries to force the clean up of broken mounts by attempting to unmount them first
153+
func (f *flistModule) forceRemoveBrokenMounts(path string) error {
154154
// try normal unmount first
155155
err := f.system.Unmount(path, 0)
156156
if err != nil {

0 commit comments

Comments
 (0)