Sherlock-Holo / fuse3

an async version fuse library for rust
MIT License
83 stars 17 forks source link

`offset` parameter of `lseek` is defined as unsigned #48

Open kastixx opened 2 years ago

kastixx commented 2 years ago

The seek offset may be negative if whence is SEEK_END or SEEK_CUR

kastixx commented 2 years ago

Looks like FUSE forwards lseek to userspace processes only for special whence values like SEEK_DATA and SEEK_HOLE that accept non-negative offsets only, while all normal seek operations are handled internally. Maybe this issue is not that important after all.