Could we support *writeback_cache* option
LuQQiu opened this issue · comments
The libfuse 3.X works good with jnr-fuse and I hope to know how could I enable writeback_cache
option with jnr-fuse?
Any example or explanation is welcome.
Thanks a lot
Hey, @LuQQiu!
You can pass mount options when you mount the fuse fs, here is the method that takes fuseOpts
as a parameter
Hi @SerCeMan,
Thanks for the information, I will try to use -o writeback
mount option or maybe -o writeback_cache
to see if one of them works.
It is illustrated in this link that writeback_cache
is not option that I can pass on the command line to the filesystem, but options that the filesystem can internally pass to libfuse.
The recommended way to enable the writeback
cache is to set a flag in file system's init()
handler, see
eg. https://github.com/libfuse/libfuse/blob/master/test/test_write_cache.c#L46.
writeback_cache
is a strong feature introduced in kernel 3.15 which is likely to improve the write performance. @SerCeMan Would we be able to enable writeback cache through jnr-fuse?
Hey, @LuQQiu! Sorry, for the late reply, but as far as I can see from the example you linked, fuseOpts
does exactly what you linked above.