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

CacheOnReadFs.OpenFile fails to create file with O_CREATE flag #193

Closed
cheesedosa opened this issue Jan 11, 2019 · 2 comments · Fixed by #332
Closed

CacheOnReadFs.OpenFile fails to create file with O_CREATE flag #193

cheesedosa opened this issue Jan 11, 2019 · 2 comments · Fixed by #332
Labels

Comments

@cheesedosa
Copy link

This fails at copyToLayer() (link) which calls os.Open() (link) which fails with no such file or directory as the file doesn't exist and needs to be created.

@pojntfx
Copy link
Contributor

pojntfx commented Dec 25, 2021

Ran into this today as well while trying to use afero for https://github.com/pojntfx/stfs - am I correct to assume that fixing this would basically require switching to calling the OpenFile instead of the Open method on the layer so that the perm flags etc. would be transferred as well?

@pojntfx
Copy link
Contributor

pojntfx commented Dec 25, 2021

I've opened #332 which will close this issue.

0xmichalis added a commit that referenced this issue Jan 5, 2022
Call `OpenFile` instead of `Open` in `CacheOnReadFs` (fixes #193)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants