From: Shaya Potter Subject: Re: Does sendfile() copy extended attributes? Date: Mon, 15 Dec 2003 00:43:13 -0500 Sender: linux-fsdevel-owner@vger.kernel.org Message-ID: <1071466993.13226.46.camel@zaphod> References: <200312142339.30153.theman@josephdwagner.info> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Cc: linux-fsdevel@vger.kernel.org Return-path: Received: from opus.cs.columbia.edu ([128.59.20.100]:51455 "EHLO opus.cs.columbia.edu") by vger.kernel.org with ESMTP id S263130AbTLOFnl (ORCPT ); Mon, 15 Dec 2003 00:43:41 -0500 To: "Joseph D. Wagner" In-Reply-To: <200312142339.30153.theman@josephdwagner.info> List-Id: linux-fsdevel.vger.kernel.org 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. With that proviso, even in 2.4 it just operates on the page data of an inode, it has no concept of any of the meta data.