Sherlock-Holo / fuse3

an async version fuse library for rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unused const `FUSE_WRITE_CACHE`

KongzhangHao opened this issue · comments

The function documentation of write_back() in file //src/mount_options.rs says that the write flag FUSE_WRITE_CACHE should be enabled to use the write back cache for buffered writes. However, it seems that flag FUSE_WRITE_CACHE in file //src/raw/abi.rs doesn't appear referenced anywhere else except in this comment. I'm wondering how this actually works to enable the write buffer?

that's a doc bug, when enable the write_back feature, the FUSE_WRITEBACK_CACHE flag is set, not FUSE_WRITE_CACHE

FUSE_WRITE_CACHE is used to determine whether the write operation is a delay write or not

#67 #68 fix the doc and add write_flags