Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

offset parameter of lseek is defined as unsigned #48

Open
kastixx opened this issue Oct 6, 2022 · 1 comment
Open

offset parameter of lseek is defined as unsigned #48

kastixx opened this issue Oct 6, 2022 · 1 comment

Comments

@kastixx
Copy link

kastixx commented Oct 6, 2022

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

@kastixx
Copy link
Author

kastixx commented Oct 7, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant