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

Question #14

Open
xaverdh opened this issue May 5, 2020 · 1 comment
Open

Question #14

xaverdh opened this issue May 5, 2020 · 1 comment

Comments

@xaverdh
Copy link
Contributor

xaverdh commented May 5, 2020

Maybe this is obvious, but what is the extra FilePath argument e.g. in fuseRead for?
The function gets an fh anyway, after all..

@plredmond
Copy link

fuseRead, fuseFlush, fuseWrite and fuseRelease all take an extraneous FilePath argument, which follows the fuse api.. in the example passthru fs, read uses the extra filepath for opening the file if it wasn't already opened.. you could also use it for error reporting, whereas an fd is just a number, a path is human understandable

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

No branches or pull requests

2 participants