Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Jan 2009 02:41:31 -0500
From:      "Dylan Cochran" <a134qaed@gmail.com>
To:        "Tim Kientzle" <kientzle@freebsd.org>
Cc:        freebsd-current@freebsd.org
Subject:   Re: Extattr portability?
Message-ID:  <bdf82f800901092341y2459b8bcyd706a6f9aabb47ea@mail.gmail.com>
In-Reply-To: <alpine.BSF.2.00.0901091525300.78432@fledge.watson.org>
References:  <4965927D.1060507@freebsd.org> <alpine.BSF.2.00.0901091525300.78432@fledge.watson.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jan 9, 2009 at 10:27 AM, Robert Watson <rwatson@freebsd.org> wrote:
> On Wed, 7 Jan 2009, Tim Kientzle wrote:
>
>> I'm trying to complete the extended attribute support in libarchive.
>>  There are a handful of odd issues that arise which I think I could resolve
>> if I knew of good use cases.
>>
>> Anyone here actually use extended attributes?  (Note that ACLs are handled
>> separately.)  What software?  What information do you store there?
>>
>> If you could benefit from being able to move extended attributes between
>> FreeBSD and other systems, I'm especially interested.
>
> Most (all) of the use of extended attributes that I'm aware of on FreeBSD
> relates to security extensions, be it ACLs, MAC labels (almost always in the
> system namespace) for various policies, etc.  Mac OS X is now using extended
> attributes in quite a few more ways, however, so you may want to investigate
> a bit on that side.  Most uses I'm aware of aren't intended to be portable.

Another is BeOS/Haiku, which used attributes heavily. I have been
waiting for this work for a while. What I don't really mind is whether
it is portable, what I really care about is full retention of the user
namespace. No silent truncating of an attribute because of perceived
need for a size restriction, assuming the contents are only ASCII,
etc. If setextattr can set it on a file, tar should be able to retain
it as is, and extract it so getextattr later is identical. If that can
be done using an already defined extended attribute format, great! If
it can't, I can live with an incompatible tar format.

That's my 2 cents on the matter, I use extended attributes now for
storing cached mime-type, and sha256/md5 for checksum purposes. I have
plans sometime in the future to create a patch for ROX-Filer to check
for thumbnail and icon attributes, and use them instead of the current
cache scheme. Being able to tar up the directory, and then extract it
and keep the thumbnail/icon as expected, would greatly improve user
experience, in my opinion.



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