Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

appFs - umount mountPoint before directory status checking to prevent… #11

Merged
merged 1 commit into from
Jul 15, 2024

Conversation

SiskaPavel
Copy link
Collaborator

… access failure

If tryToUnmountOnStart is true, code now attempts to unmount the specified mount point. This is necessary because if the application terminates unexpectedly, the filesystem might remain mounted, which can prevent proper status checking and cause subsequent attempts to mount it to fail. By forcing an unmount here, we ensure the mount point is in a clean state before proceeding. If the unmount fails, an exception is thrown to indicate that the cleanup process was unsuccessful.

@SiskaPavel SiskaPavel requested a review from Lukas955 July 15, 2024 08:51
@SiskaPavel SiskaPavel force-pushed the appfs-create-dirs-fix branch from e41fbb6 to 8ec1ae9 Compare July 15, 2024 09:01
… access failure

If tryToUnmountOnStart is true, code now attempts to unmount the specified mount point.
This is necessary because if the application terminates unexpectedly, the filesystem
might remain mounted, which can prevent proper status checking and cause subsequent
attempts to mount it to fail. By forcing an unmount here, we ensure the mount point is
in a clean state before proceeding. If the unmount fails, an exception is thrown to
indicate that the cleanup process was unsuccessful.
@SiskaPavel SiskaPavel merged commit 9122d54 into main Jul 15, 2024
17 checks passed
@SiskaPavel SiskaPavel deleted the appfs-create-dirs-fix branch July 15, 2024 10:39
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.

2 participants