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

Relaxed inUse definition #80

Merged
merged 7 commits into from
Oct 10, 2023
Merged

Relaxed inUse definition #80

merged 7 commits into from
Oct 10, 2023

Conversation

infeo
Copy link
Member

@infeo infeo commented Sep 25, 2023

This PR also mitigates problems described in #79, but with a different approach. Instead of timing based staleness of opened files, we determine if the filesystem is "in use", if at least one open file exists, which was written to.

The idea behind this approach is to allow regular unmounting as long as no data loss happens on the filesystem. If an open file was written to, we require it to be properly closed by a release() call to let isInUse() return false.

Copy link
Member

@overheadhunter overheadhunter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good except for some minor naming/docs improvements

infeo and others added 2 commits September 25, 2023 18:19
Co-authored-by: Sebastian Stenzel <overheadhunter@users.noreply.github.com>
Copy link
Member

@overheadhunter overheadhunter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Undo these two changes, the rest looks fine to me

@sonarcloud
Copy link

sonarcloud bot commented Oct 9, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@infeo infeo added this to the 4.0.0 milestone Oct 9, 2023
@infeo infeo merged commit 070a921 into develop Oct 10, 2023
8 checks passed
@infeo infeo deleted the feature/relaxed-inUse-definition branch October 10, 2023 11:22
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