File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments