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

Check return value of fuse_loop #30

Closed
infeo opened this issue Mar 17, 2023 · 0 comments
Closed

Check return value of fuse_loop #30

infeo opened this issue Mar 17, 2023 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@infeo
Copy link
Member

infeo commented Mar 17, 2023

With the method int fuse_loop() a fuse filesystem can be started, such that filesystem events are handled.

It returns an error code, if it fails. But currently, this error code is not used:

try {
var fuseMount = this.mount(args);
executor.submit(() -> fuseLoop(fuseMount)); // TODO keep reference of future and report result
waitForMountingToComplete(mountPoint);
mount.compareAndSet(lock, fuseMount);

Hence, our implementation does not notice premature ends of the loops and waits indefinitely in the method waitForMountingToComplete.

We must check, if fuse_loop is aready finished in the code, before we wait or return.

@infeo infeo added the bug Something isn't working label Mar 17, 2023
@infeo infeo added this to the 0.4.2 milestone Mar 17, 2023
@infeo infeo self-assigned this Mar 17, 2023
@infeo infeo closed this as completed in 7af37d0 Mar 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant