xfs
[Top] [All Lists]

Re: Root Name Space

To: linux-xfs@xxxxxxxxxxx
Subject: Re: Root Name Space
From: Nathan Scott <nathans@xxxxxxx>
Date: Thu, 17 Oct 2002 09:06:00 +1000
In-reply-to: <20021016224357.GN27982@plato.local.lan>; from erbenson@alaska.net on Wed, Oct 16, 2002 at 02:43:57PM -0800
References: <200210162222.g9GMMgr03666@webcube3.volstate.net> <20021016224357.GN27982@plato.local.lan>
Sender: linux-xfs-bounce@xxxxxxxxxxx
User-agent: Mutt/1.2.5i
On Wed, Oct 16, 2002 at 02:43:57PM -0800, Ethan Benson wrote:
> On Wed, Oct 16, 2002 at 05:18:35PM -0500, Joe Bacom wrote:
> > Has anybody realized that since the list option was removed from attr that 
> > there is no way to list the attributes in the root name space.  The command 
> > getfattr does not have an option for listing the attributes of the root 
> > namespace.
> 
> yes it does:
> 
> getfattr -m . foo
> 
> you must run it as root though, unprivileged users cannot list
> xfsroot.* attributes.
> 
> im not sure why the attr command had the list arg removed, surely it
> can be implemented since getfattr can manage to list attributes...

The attr list was based on the IRIX list, which is not
just a list but a list-and-give-all-attr-sizes in one op.
This is quite painful to code in userspace on top of the
revised APIs (but it could be done, you're right).

getfattr is the prefered mechanism, it is a fair bit more
"feature-packed" than attr is - I simply made attr work as
best I could to try to give existing users some backwards
compatibility, but I drew the line at the list operation.

> im guessing the attr listing code would have had to be totally
> rewritten to work with the new syscalls and that effort was simply
> deferred.

Not really defered - I chose not to to do it and don't have
any plan to do so.  Others are welcome to have at it though,
of course, and I'll add in any patch that implement it for
sure.  Since getfattr provides a similar capability, I doubt
its really interesting to anyone though.

cheers.

-- 
Nathan


<Prev in Thread] Current Thread [Next in Thread>