How useful should copy_file_range() be?
How useful should copy_file_range() be?
Posted Feb 18, 2021 16:41 UTC (Thu) by zuzzurro (subscriber, #61118)In reply to: How useful should copy_file_range() be? by zuzzurro
Parent article: How useful should copy_file_range() be?
Posted Feb 18, 2021 18:38 UTC (Thu)
by smurf (subscriber, #17840)
[Link] (5 responses)
Posted Feb 20, 2021 12:16 UTC (Sat)
by jengelh (guest, #33263)
[Link] (4 responses)
I am not getting that with the /proc/self/sched file (uses `seq_lseek`, which operates in terms of records). Is sys_llseek *meant* to be POSIX-compatible?
Posted Feb 20, 2021 14:45 UTC (Sat)
by smurf (subscriber, #17840)
[Link]
So the bug is on the user. If you treat these things like ordinary files and expect all the posicky corner cases to work "correctly", you're SOL. These files will never have POSIX semantics. No, you can't use libc to emulate it. Deal.
Yes there should be a way to ask the kernel whether a file conforms to 100% posix. Well, we don't have that. Deal.
One possible workaround is to check the file size. If it's smaller than pagesize*4 or so then it's probably cheaper to copy its data the old-fashioned way anyway.
Posted Feb 20, 2021 17:01 UTC (Sat)
by markh (subscriber, #33984)
[Link] (2 responses)
Posted Feb 23, 2021 19:02 UTC (Tue)
by jsmith45 (guest, #125263)
[Link] (1 responses)
Posted Feb 25, 2021 11:12 UTC (Thu)
by zuzzurro (subscriber, #61118)
[Link]
How useful should copy_file_range() be?
How useful should copy_file_range() be?
If yes, it's a kernel bug.
If no, then it's a libc bug because it failed to provide/emulate POSIX semantics on top of an (unposixy) kernel interface.
So, which is it, where should I file a bug?
How useful should copy_file_range() be?
How useful should copy_file_range() be?
How useful should copy_file_range() be?
How useful should copy_file_range() be?