-
-
Notifications
You must be signed in to change notification settings - Fork 48
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
file volume driver still has "file pool cannot export dirty volumes" issue #7325
Comments
|
It is created as a sparse file, so it isn't surprising it's NULLs. I wonder why 1 block is used instead of 0. Can you find anything non-NULL there? Have you ever started this particular template? |
Yes of course I have started the template, this is my default template for all VMs. At the time of check, no loopback devices show this Can I just delete the stupid file? How do I zero it out? Obvs if there is only one disk block in use, it can't contain any valid data that can get lost. |
Checking the stuff in the file... |
I have truncated the file to zero bytes. It still shows 1 block used with |
That's definitely source of confusion here... What FS? ext4? |
OK I know what it is. A file created in a ZFS file system will always show at least one block of usage, even if it was truncated to zero bytes, or any N bytes. Just tested it against tmpfs and in tmpfs the result is 0 instead of 1. When creating a new sparse file with The code depends on file system implementation details. That's the bug. |
If we still want to depend on file system side effects, then maybe it has to be special-cased so that the expectation "used disk space is zero" gets a new "used disk space is 1 block", a case in which we know cannot be a valid file system backing device anyway. |
Yeah, sounds like that's it. Maybe we can use |
my snippet of code |
Aha! Seek data works. If the file is truly empty you get an exception:
Let me get you some code. |
This. Replace checks for |
According to |
Yes, and that return value applies for all of tmpfs, ext4 and zfs as I tested. EDIT: this looks promising, and it doesn't look like we need to change any other uses of |
Please open a PR :) |
@Rudd-O and please finish the ZFS pool if you want to keep using ZFS; the file pool will go away in R4.2. |
Asks fulfilled. |
Closing as completed. If anyone believes this issue is not yet completed, or if anyone is still affected by this issue, please leave a comment, and we'll be happy to reopen it. Thank you. |
How to file a helpful issue
Qubes OS release
4.1
Brief summary
Trying to cloning my Fedora (F34 at this point) template produces the error above.
Examination of the source code:
Hits here:
Here is what's causing the issue -- the private volume:
The text was updated successfully, but these errors were encountered: