Re: RFC: should copy_file_range(2) remain Linux compatible or support special files?

2020-10-01 Thread Rick Macklem
Mateusz Guzik wrote: >On 9/27/20, Alan Somers wrote: >> On Sun, Sep 27, 2020 at 7:49 AM Wall, Stephen >> wrote: >> >>> >>> > I'll assume you are referring to the "flags" argument when you say >>> "param" above. >>> >>> Correct, I was misremembering the man page. >>> >>> > However, since the Linux

Re: RFC: should copy_file_range(2) remain Linux compatible or support special files?

2020-09-27 Thread Mateusz Guzik
On 9/27/20, Alan Somers wrote: > On Sun, Sep 27, 2020 at 7:49 AM Wall, Stephen > wrote: > >> >> > I'll assume you are referring to the "flags" argument when you say >> "param" above. >> >> Correct, I was misremembering the man page. >> >> > However, since the Linux man page says it will return EI

Re: RFC: should copy_file_range(2) remain Linux compatible or support special files?

2020-09-27 Thread Alan Somers
On Sun, Sep 27, 2020 at 7:49 AM Wall, Stephen wrote: > > > I'll assume you are referring to the "flags" argument when you say > "param" above. > > Correct, I was misremembering the man page. > > > However, since the Linux man page says it will return EINVAL if > > the "flags" argument is non-zero

Re: RFC: should copy_file_range(2) remain Linux compatible or support special files?

2020-09-26 Thread Alan Somers
On Sat, Sep 26, 2020 at 8:52 PM Rick Macklem wrote: > Wall, Stephen wrote: > > Could the as yet unused options param have a bit assigned to trigger the > new > > behavior? Inform the linux community of the addition and let them > decide if they > > would like to adopt it as well. > I'll assume y

Re: RFC: should copy_file_range(2) remain Linux compatible or support special files?

2020-09-26 Thread Rick Macklem
Wall, Stephen wrote: > Could the as yet unused options param have a bit assigned to trigger the new > behavior? Inform the linux community of the addition and let them decide if > they > would like to adopt it as well. I'll assume you are referring to the "flags" argument when you say "param" a

RFC: should copy_file_range(2) remain Linux compatible or support special files?

2020-09-26 Thread Rick Macklem
I know cross-posting is frowned upon, but I wanted everyone who might like to comment to see this. Currently copy_file_range(2) only supports regular files, which is compatible with the Linux one, where EINVAL is returned when either file descriptor refers to a non-regular file. Alan Somers would