From owner-freebsd-fs@FreeBSD.ORG Wed Apr 20 22:25:41 2011 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2EBEF106568B for ; Wed, 20 Apr 2011 22:25:41 +0000 (UTC) (envelope-from pawel@dawidek.net) Received: from mail.garage.freebsd.pl (60.wheelsystems.com [83.12.187.60]) by mx1.freebsd.org (Postfix) with ESMTP id 272D38FC1D for ; Wed, 20 Apr 2011 22:25:39 +0000 (UTC) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 212AA45B36; Thu, 21 Apr 2011 00:25:38 +0200 (CEST) Received: from localhost (89-73-195-149.dynamic.chello.pl [89.73.195.149]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id F062B45C8A; Thu, 21 Apr 2011 00:25:32 +0200 (CEST) Date: Thu, 21 Apr 2011 00:25:23 +0200 From: Pawel Jakub Dawidek To: Rick Macklem Message-ID: <20110420222523.GJ1907@garage.freebsd.pl> References: <20110420185347.GH1907@garage.freebsd.pl> <1319015176.378941.1303335958312.JavaMail.root@erie.cs.uoguelph.ca> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="tKy6e3LXpfmanBFM" Content-Disposition: inline In-Reply-To: <1319015176.378941.1303335958312.JavaMail.root@erie.cs.uoguelph.ca> X-OS: FreeBSD 9.0-CURRENT amd64 User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-0.6 required=4.5 tests=BAYES_00,RCVD_IN_SORBS_DUL autolearn=no version=3.0.4 Cc: freebsd-fs@freebsd.org Subject: Re: question on extended attributes X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Apr 2011 22:25:41 -0000 --tKy6e3LXpfmanBFM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 20, 2011 at 05:45:58PM -0400, Rick Macklem wrote: > > On Fri, Apr 15, 2011 at 08:19:36PM -0400, Rick Macklem wrote: > > > I don't believe that resource forks are available under FreeBSD at > > > this > > > time. Solaris supports the "subfile" concept, which is basically the > > > same > > > as far as I know, so it seems there might be something inside ZFS, > > > although > > > I suspect it isn't available for FreeBSD? > > > > > > Does anyone familiar with ZFS know more? > >=20 > > ZFS in FreeBSD supports extended attributes based on Solaris resource > > forks code. Take a look at the zfs_create_attrname() function in > > sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c to see how > > we > > convert the names, etc. > >=20 > Hmm. NFSv4 supports the resource forks model, too. (They called them > named attributes.) I suppose that there would have to be some new VOPs > though. For example, the NFSv4 server needs to be able to get all the > attribute names, so it can generate a reply to the client (in that ugly > readdir xdr format) and I don't think there's a way in the current VFS > to ask "give me all the extended attribute names", is there? You mean all extended attribute names in the entire file system? That doesn't seem sensible. You can still list extended attributes of the given file system object with VOP_LISTEXTATTR(9). --=20 Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD committer http://www.FreeBSD.org Am I Evil? Yes, I Am! http://yomoli.com --tKy6e3LXpfmanBFM Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAk2vXVIACgkQForvXbEpPzRujQCeIp2zeUvCxlg3DF9la6e+aZl3 s0kAn0Is2JgAadw2IkrEXPA0Kd4+eXdF =gskb -----END PGP SIGNATURE----- --tKy6e3LXpfmanBFM--