Skip to content

Conversation

@khanhtranngoccva
Copy link

This attempts to fix issue #411 by adding a method called set_blocking_umount on Session, SessionUnmounter and BackgroundSession.

In all 3 variants of the Mount structure, if blocking_umount is active, the mount will try to unmount normally, but if it encouters EBUSY (ResourceBusy) due to open handles, it will wait for 0.5 seconds before retrying.

The unmounting behavior is also made more uniform - the new behavior is that instead of unpredictable unmount modes happening when EACCES is returned, no unmount flags are added. This behavior should be able to be overridden using set_unmount_options on session objects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant