hfuse icon indicating copy to clipboard operation
hfuse copied to clipboard

Question

Open xaverdh opened this issue 5 years ago • 1 comments

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

xaverdh avatar May 05 '20 08:05 xaverdh

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

plredmond avatar Aug 05 '21 08:08 plredmond