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

blosc2_schunk_open_udio calls stat #610

Open
froody opened this issue May 14, 2024 · 0 comments
Open

blosc2_schunk_open_udio calls stat #610

froody opened this issue May 14, 2024 · 0 comments

Comments

@froody
Copy link

froody commented May 14, 2024

Describe the bug

blosc2_schunk_open_udio looks like it could be used to read an schunk from any seekable API (e.g. ftp), but it calls stat on the provided uri, requiring that the uri is known to the underlying OS filesystem API, which severely constrains where data can be source from. Providing any file is sufficient to trick this API into working, even if the file isn't a blosc2 compressed file.

To Reproduce
TODO

Expected behavior
stat is not called, or stat is added as an optional callback in blosc2_io_cb

Logs
N/A

System information:

  • OS: Ubuntu 22.04
  • Compiler: clang
  • Version: fa5e3f4

Additional context
Add any other context about the problem here.

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

No branches or pull requests

2 participants