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

RevokeFS demo fixes #5458

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

dbnicholson
Copy link
Contributor

The revokefs demo was very helpful when debugging #5452, but I needed to hack in a few things to get it to do what I wanted.

Some `g_print*` messages were missing newlines and `perror` already
appends `: ` to the provided message.
If the write end of the socket is marked to close on exec, then it will
also be closed in the FUSE process and it can't actually do anything
that involves the backend. Instead, add a setup function for the backend
that closes the write end of the socket after forking.
Create a pipe and use the `--exit-with-fd` option to make the backend
exit when the demo process completes.
Without this, the spawned FUSE process doesn't exit.
This is particularly useful to run the FUSE process with `-o debug` and
see exactly how the FUSE requests are being processed.
@alexlarsson
Copy link
Member

Seems to break tests/[email protected] in one of the CI tests.

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.

None yet

2 participants