fuse-backend-rs icon indicating copy to clipboard operation
fuse-backend-rs copied to clipboard

Semantics of readdir's add_entry argument

Open nrath-js opened this issue 1 year ago • 0 comments

I have not been able to find any documentation for the add_entry: &mut dyn FnMut(DirEntry<'_>) -> Result<usize> argument that is passed to readdir. Did I miss anything?

My best guess is that the return value represents a length, and that I need to check that the total length does not exceed the value of the size parameter. However, I am not sure if the return value is the length of the most recent entry (so I have to accumulate the total), or the total space used, or perhaps the remaining space?

nrath-js avatar Nov 27 '24 15:11 nrath-js