Closed Nils-TUD closed 1 year ago
Well, it works for me on Arch. Maybe I should add a flag to disable this feature if it is problematic. If you're building this for Syncthing Tray you can ignore the error. If you're building this for Tag Editor you better not upgrade.
Did you retry? Just in case it might be a sporadic issue. Then I should definitely disable the feature for now.
Interesting. Yes, it happens everytime.
I investigated that some more and figured it out now. The problem is that I'm using ecryptfs for my home directory and that doesn't support sendfile
.
I think you should fall back to read
and write
if sendfile
fails to also support strange file systems (or other types of files? Not sure if your API can be used non-regular files) :)
Thanks. I suppose that I should add a fallback indeed. I would have expected this would be handled under the hood by the kernel. The API is only intended to be used with regular files.
I've pushed a fix. You may want to test it. On Arch, you can test it by building the AUR package c++utilities-git
(which you of course don't need to actually install on your production system and even if you'd installed it the non-Git packages wouldn't be affected).
Yes, it works for me now. Thanks!
I tried to update to the latest version (5.22.0) with Arch Linux on x86-64, but the test IoTests::testCopyWithNativeFileStream fails: