Re: Does sendfile() copy extended attributes?

Jeff Garzik
2003-12-15T05:46:47Z

Shaya Potter wrote:
> On Sun, 2003-12-14 at 12:39, Joseph D. Wagner wrote:
>
>>I want to use sendfile() to completely copy a file so that the copy is an
>>EXACT, INDISTINGUISHABLE duplicate of the original.
>>
>>Hence, I need to know if sendfile() copies the extended attributes in
>>addition to the file itself.
>>
>>While I have your attention, does sendfile() also copy the inode attributes
>>(i.e. secure delete, compressed, etc.)?
>
>
> sendfile acting as a sys_copy() is a 2.4 unsupported behavior. It
> doesn't work on 2.6.

Have you tested this assertion lately? :)

AFAIK file-file sendfile(2) was fixed in 2.6.

Jeff