-
Notifications
You must be signed in to change notification settings - Fork 304
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
auto prune fails for simple operations with fallocate EINVAL #2869
Comments
A simple solution to this problem is to just skip the check if |
Without digging into this at all, I would say it makes total sense to add that check. Even if there's a higher level fix, having that sanity check is low cost and helps keep things robust. (OK I spent a minute looking at the code, and I think the only real fix is that check) Likely the bug here is when there are no kernel changes at all, and that isn't covered in the CI test for this flag right now. |
If the requested size is 0 then of course we have enough room 🙂 This avoids the fallocate call returning an EINVAL. Closes: ostreedev#2869
Potential fix in #2871 |
Auto pruning (#2847, #2866) will fail for simple operations (like
rpm-ostree install htop && OSTREE_SYSROOT_OPTS=early-prune /usr/bin/ostree admin finalize-staged
) with anfallocate
error:If I add some diagnostic code I can see the length passed to fallocate is
0
, which triggers an EINVAL.The text was updated successfully, but these errors were encountered: