Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Apr 2011 00:25:23 +0200
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        Rick Macklem <rmacklem@uoguelph.ca>
Cc:        freebsd-fs@freebsd.org
Subject:   Re: question on extended attributes
Message-ID:  <20110420222523.GJ1907@garage.freebsd.pl>
In-Reply-To: <1319015176.378941.1303335958312.JavaMail.root@erie.cs.uoguelph.ca>
References:  <20110420185347.GH1907@garage.freebsd.pl> <1319015176.378941.1303335958312.JavaMail.root@erie.cs.uoguelph.ca>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110420222523.GJ1907>