From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 25 18:52:52 2013 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BFB9299D for ; Mon, 25 Nov 2013 18:52:52 +0000 (UTC) Received: from mail-pd0-f170.google.com (mail-pd0-f170.google.com [209.85.192.170]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 974202046 for ; Mon, 25 Nov 2013 18:52:52 +0000 (UTC) Received: by mail-pd0-f170.google.com with SMTP id g10so6099072pdj.15 for ; Mon, 25 Nov 2013 10:52:46 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:content-type:mime-version:subject:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=JoCSINDFgtZ4gnRDiNrCajsFJ4fM279ik12SDIOq6DM=; b=bEPl3g9Ljvgv0TPk4WEpG+EudDgXW8emuwYq/ytgUwubi1YCSuPGxDZNPN0Tf9uUXu bTAuUTVzalVXO5BX5xqjrQ46DHjokVh5btdVHNsTyejStoi0eBjd6F3QBnnBor1FIuns Ag7kypDYJmE67cvjWBe0hZ7XiULZ/blnxkGkDTdgawT+k3R9X1S6TzSkWDSEzUgoMD/U rA//Qg6gvq97EBuUKf6pVlzU5O2eFSEYeRhs/8cHMjhRQYXg8yMBaipuC+iA8K+cHlN3 F1o8FoPkrcK82NQYgUt8yFCk5N/yVq1PWoPcOAUMoZdceRQVrk+SAW6s8+0qdL4iHf1Q ss1w== X-Gm-Message-State: ALoCoQlxYDlG10Re7bS+McGhVCVS3FDOjsDDSh2fevRjwvsbbXBe/+aH0cnmOu7+HJAn6k2x1AAJ X-Received: by 10.66.122.40 with SMTP id lp8mr28606588pab.82.1385405566015; Mon, 25 Nov 2013 10:52:46 -0800 (PST) Received: from [192.168.2.123] (99-74-169-43.lightspeed.sntcca.sbcglobal.net. [99.74.169.43]) by mx.google.com with ESMTPSA id ja5sm74438760pbc.14.2013.11.25.10.52.44 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 25 Nov 2013 10:52:44 -0800 (PST) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.0 \(1822\)) Subject: Re: O_XATTR support in FreeBSD? From: Tim Kientzle In-Reply-To: Date: Mon, 25 Nov 2013 10:52:33 -0800 Content-Transfer-Encoding: quoted-printable Message-Id: References: <820263347.19772534.1385247218007.JavaMail.root@uoguelph.ca> To: Jordan Hubbard X-Mailer: Apple Mail (2.1822) Cc: Freebsd hackers list , Richard Yao , Rick Macklem , Pedro Giffuni , Cedric Blancher X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Nov 2013 18:52:52 -0000 On Nov 23, 2013, at 3:41 PM, Jordan Hubbard = wrote: > I would start with libc and ask if it had anything similar to = copyfile(3) =85 But less broken, please. Libarchive uses copyfile() to fetch/restore extended attribute bundles on Mac OS, but it=92s a pretty ugly API. In particular, there=92s no = way to fetch/restore an EA bundle directly to/from memory; you must go through an intermediate file on disk, which is slow and race-prone. Tim