From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff Garzik Subject: Re: Does sendfile() copy extended attributes? Date: Mon, 15 Dec 2003 00:46:34 -0500 Sender: linux-fsdevel-owner@vger.kernel.org Message-ID: <3FDD4ABA.9050003@pobox.com> References: <200312142339.30153.theman@josephdwagner.info> <1071466993.13226.46.camel@zaphod> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: "Joseph D. Wagner" , linux-fsdevel@vger.kernel.org Return-path: Received: from parcelfarce.linux.theplanet.co.uk ([195.92.249.252]:8173 "EHLO www.linux.org.uk") by vger.kernel.org with ESMTP id S263107AbTLOFqr (ORCPT ); Mon, 15 Dec 2003 00:46:47 -0500 To: Shaya Potter In-Reply-To: <1071466993.13226.46.camel@zaphod> List-Id: linux-fsdevel.vger.kernel.org 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