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

Winfsp read callback random offset #176

Open
aparaske opened this issue Mar 27, 2023 · 0 comments
Open

Winfsp read callback random offset #176

aparaske opened this issue Mar 27, 2023 · 0 comments

Comments

@aparaske
Copy link

When using the read callback on Windows (Winfsp), it seems that the offset value is not sequential. Please see below an example pattern:

2023-03-27/06:51:54.730/PDT | | INFO [Thread-476] VirtualFS: read, offset: 0 size: 32768
2023-03-27/06:51:54.736/PDT | | INFO [Thread-477] VirtualFS: read, offset: 8802304 size: 32768
2023-03-27/06:51:54.739/PDT | | INFO [Thread-478] VirtualFS: read, offset: 61440 size: 32768
2023-03-27/06:51:54.819/PDT | | INFO [Thread-484] VirtualFS: read, offset: 32768 size: 28672
2023-03-27/06:51:54.820/PDT | | INFO [Thread-485] VirtualFS: read, offset: 94208 size: 32768
2023-03-27/06:51:54.820/PDT | | INFO [Thread-486] VirtualFS: read, offset: 126976 size: 32768
.
.
.
2023-03-27/06:51:54.864/PDT | | INFO [Thread-552] VirtualFS: read, offset: 7340032 size: 1048576
2023-03-27/06:51:54.867/PDT | | INFO [Thread-553] VirtualFS: read, offset: 8388608 size: 413696

This is a problem for my application as I need the file to be read sequentially. Is there winfsp options or way to force a sequential offset value? The only other option would be to buffer the whole file, which is not something that I would like to do. Any other suggestions?

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