fuse-friends / fuse-native

Multithreaded FUSE bindings for Node JS.
203 stars 29 forks source link

[BUG] useIno option does not appear to use custom ino values in stat struct #32

Open paulrobello opened 3 years ago

paulrobello commented 3 years ago

After inode 1 for the root fs node I set starting inode number at 100 and increment it with every created node. I use the ino field in the stat struct. When doing a stat on any of my fuse nodes I can see the count starts from 1 and does not jump to 100+. const fuse = new Fuse('./mnt', ops, { debug: false, displayFolder: false, autoUnmount: true, force: true, kernelCache: false, useIno: true // <- this does not appear to be used });

Looking at _fuseOptions in index.js I can see that use_ino is not something that is pushed into the -o option returned from the function for the fuse mount options.

Added option in PR33