Re: Does sendfile() copy extended attributes?

Bryan Henderson
2003-12-15T17:18:19Z

>I want to use sendfile() to completely copy a file so that the copy is an

>EXACT, INDISTINGUISHABLE duplicate of the original.

Just so you know, that will never be possible using the file subsystem.
You'd have to go in under that and write your own disk blocks.

Two ways one could distinguish the copy from the original that you can't
do anything about via filesystem interfaces, by design: inode number,
ctime.

Bryan Henderson IBM Almaden Research Center
San Jose CA Filesystems