From owner-freebsd-hackers@FreeBSD.ORG Fri Sep 5 22:14:20 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A540BDCD for ; Fri, 5 Sep 2014 22:14:20 +0000 (UTC) Received: from esa-annu.net.uoguelph.ca (esa-annu.mail.uoguelph.ca [131.104.91.36]) by mx1.freebsd.org (Postfix) with ESMTP id 6A6161723 for ; Fri, 5 Sep 2014 22:14:20 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ar8EABA0ClSDaFve/2dsb2JhbABag2BXBIJ4xg4KhnlTAYEfd4QDAQEBAwEBAQEgKyALBRYYAgINGQIpAQkmBggHBAEcBIgZCA2peJU8AReBLI1QAQEbNAeCeYFTBZVug3uEX4pDiQeDfSEvB4EIOYEHAQEB X-IronPort-AV: E=Sophos;i="5.04,475,1406606400"; d="scan'208";a="153068980" Received: from muskoka.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.222]) by esa-annu.net.uoguelph.ca with ESMTP; 05 Sep 2014 18:13:10 -0400 Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id B02FBB402B; Fri, 5 Sep 2014 18:13:10 -0400 (EDT) Date: Fri, 5 Sep 2014 18:13:10 -0400 (EDT) From: Rick Macklem To: Lionel Cons Message-ID: <1538621043.33014113.1409955190712.JavaMail.root@uoguelph.ca> In-Reply-To: Subject: Re: Tool to access ZFS/NFSv4 alternate data streams on FreeBSD? MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [172.17.91.203] X-Mailer: Zimbra 7.2.6_GA_2926 (ZimbraWebClient - FF3.0 (Win)/7.2.6_GA_2926) Cc: Freebsd hackers list , Richard Yao , Jan Bramkamp X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Sep 2014 22:14:20 -0000 Lionel Cons wrote: > On 5 September 2014 19:26, Richard Yao wrote: > > On 09/05/2014 11:35 AM, Jan Bramkamp wrote: > >> On 05.09.2014 16:25, Lionel Cons wrote:> Is there any tool which > >> can be > >> used to access ZFS and NFSv4 alternate > >>> data streams on FreeBSD? > >> > >> Are you looking for lsextattr(8) and getextattr(8)? > >> _______________________________________________ > >> freebsd-hackers@freebsd.org mailing list > >> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > >> To unsubscribe, send any mail to > >> "freebsd-hackers-unsubscribe@freebsd.org" > >> > > > > Do you mean Solaris extended attributes? Those tend to be called > > resource forks on other platforms. Unifying extended attributes and > > resource forks was clever. > > > > Yes, they are also called resource forks, or alternate data streams. > The attribute files which can be accessed via O_XATTR or cd -@ > file/dir on newer ksh/ksh93/bash revisions. > For FreeBSD's NFSv4 the answer is definitely no. Because the Linux/FreeBSD style setextattr() assumes an atomic replacement of the extended attribute, it is not semantically compatible (ie. cannot be accurately emulated) by resource forks. I do not know of any work for ZFS on FreeBSD w.r.t. this, but I'm not a ZFS guy. rick > Lionel > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to > "freebsd-hackers-unsubscribe@freebsd.org" >