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

cgofuse: extract and refactor path locker #24

Closed
wants to merge 2 commits into from
Closed

Conversation

djdv
Copy link
Owner

@djdv djdv commented Nov 22, 2022

Maybe it's better, maybe it's worse, maybe I broke it.
Still a work in progress.


Draft notes:

  • Since we're not currently using any file systems that modify data, it's hard to know if this is actually implemented correctly.
    This needs to be finished, and tests need to be written to validate it.
    At the very least, I haven't (yet) seen a deadlock or other problems on the read-only interfaces.

  • Go file systems that implement write methods (and FUSE wrappers for them) are currently being worked on.
    They'll be using + building on this variant of the code. And the changes will be brought back into this branch as they happen.

  • Every FUSE operations must call these methods, so it's a valid optimization target.
    Benchmarks would be nice to have, but that can potentially come later.

  • The code is intended to be easier to understand than the previous version.
    It's hard to say if this got easier or harder to understand due to the abstraction choices used to reduce repetition.
    So documentation and clarity within the code itself is going to have to be inspected and probably refined.


Tangentially related to #19

Maybe it's better, maybe it's worse, maybe I broke it.
Still a work in progress. But it seems faster.
We need real tests and benchmarks would be nice, since this is
the hottest code path for FUSE, and thus a valid optimization target.
This could probably still be better,
but at least it's (seemingly) correct now.
@djdv
Copy link
Owner Author

djdv commented Dec 11, 2022

Superseded by #26 since c8971ba which finishes the implementations, adds documentation, and refactors some things.

@djdv djdv closed this Dec 11, 2022
@djdv djdv deleted the j/fuse-lock branch July 12, 2023 06:21
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