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
EBADF during static delta apply #421
Comments
I should have mentioned that this is also reproducible when not using static deltas. Still investigating, I will provide more info if I will find something. Compiler is GCC 4.9.2, Kernel version is 3.19.5, file system: ext3. And the stack trace in this case is:
Which results in calling glnx_file_replace_contents_with_perms_at::posix_fallocate which fails and sets errno as we can see in the strace:
|
The From
So the failing syscall is this:
Yet just a few lines before we successfully did:
I.e. we used
succeeds. AFAICS what we're doing in userspace here is fine - something seems wrong on the kernel side. Does disabling the |
Amazingly that helped! Unfortunately I have no idea what is a proper fix for this. If there is something else that you want me to test/verify, I can help with that. |
It's not the only fallout from It'd be useful to run this by your kernel maintainers or upstream project. In the meantime, we can provide an option to disable |
Out of curiosity I tried this on reiserfs (on the same kernel version). This file system produces a more meaningful error message:
Sounds good to me, otherwise now OSTree is not usable on older kernels. |
I assume your base filesystem is ext4? FWIW I do get correct fallbacks in current CentOS 7 kernel:
|
ext3 actually, if that makes a difference. |
Some systems have bugs with it, so let's allow downstreams to easily disable it. https://bugzilla.gnome.org/show_bug.cgi?id=769453 ostreedev/ostree#421
Do you want to review GNOME/libglnx#22 ? Just a |
Also if you can test this: https://bugzilla.gnome.org/show_bug.cgi?id=769453#c11 that'd be useful. |
Testing with more recent version of kernel with ext3, issue is not present as expected. sh-4.3# uname -a |
Closed by #426 |
https://mail.gnome.org/archives/ostree-list/2016-July/msg00020.html
The text was updated successfully, but these errors were encountered: