-
Notifications
You must be signed in to change notification settings - Fork 59
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
Cache causes corrupt data when filesystem is full #119
Comments
What is your underlying filesystem for the cache? |
It was a tmpfs as I said in the original report |
Does tmpfs allow sparse allocation? |
I don't know, how could I check? |
Hey, I have the same problem using httpdirfs as a data transfer channel like mount nfs, httpdirfs seems to keep taking up space during the transfer. When I use the -o direct_io option, the transfer completes but showing corrupted data on my computer. How can I only fetch data from httpdirfs without letting httpdirfs save it? Thanks. |
@LuShuailing , turn off the cache with |
I'm writing a Nix package similar to ttf-ms-win11-auto on the AUR, but because Nix sandboxes package builds and so you can't mount filesystems, I'm actually building the package in a small VM (using nixpkgs' runInLinuxVM). By default, this VM has 512MB of RAM, and /tmp (where I'm putting the cache) is a tmpfs of size 256MB. This isn't enough, and if you attempt to build it using these parameters, the build fails while extracting the fonts from install.wim because httpdirfs returns corrupt data:
build logs
After increasing RAM remounting /tmp with a larger size, the build succeeds. Without cache it also succeeds, but the build takes ~2 minutes instead of ~30 seconds.
For my specific usecase I can just increase the size of the filesystem, but I'm sure it'd save someone else a headache if you could make httpdirfs print a warning and/or delete old cached data when running out of space.
The text was updated successfully, but these errors were encountered: