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
detail::copy_file_data_copy_file_range fails in some file systems #184
Comments
|
I think this should be handled either in the kernel or eCryptfs. As far as I can tell, |
|
Hi, thanks for reply. There is a mailing list discussion about it: https://lore.kernel.org/linux-fsdevel/20210126233840.GG4626@dread.disaster.area/T/#m05753578c7f7882f6e9ffe01f981bc223edef2b0, in which it was said that
and
|
|
That discussion was revolving around a different use case, where sysfs/procfs files appear to have zero size. I'm not convinced it is reasonable to expect In your case, the syscall fails with an error code, and the error code is not enlightening to boot. So I believe, this is a different use case that should still probably be addressed in the kernel. What confuses me is that Al Viro makes a comment that using Can you test if the |
|
In my test, when the destination file is in eCryptfs, both |
|
Does I'm trying to work out a solution where I could still benefit from |
Yes, it does.
Yes, they do. |
|
Thanks for the report. Could you test if the fixed version works in your setup? |
|
Thanks a lot! It works well now. |
If the output file of
copy_fileis in eCryptfs and the input file is not empty, anfilesystem_errorInvalid argumentwill be throwed, leaving an empty output file.It seems caused by
copy_file_rangesyscall indetail::copy_file_data_copy_file_range, which fails in some file systems such as eCryptfs.See also golang/go#44273, prusa3d/PrusaSlicer#4716 (comment)
My Environment
developbranch when this issue is submitted)How to reproduce
Source code to reproduce
Operation
ecryptfs-utilsshould be installed.The text was updated successfully, but these errors were encountered: