linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Steven Whitehouse <swhiteho@redhat.com>
To: Nathan Scott <nathans@sgi.com>
Cc: a.gruenbacher@bestbits.at, linux-fsdevel@vger.kernel.org
Subject: Re: xattr namespace question
Date: Wed, 22 Mar 2006 09:07:06 +0000	[thread overview]
Message-ID: <1143018426.6400.1230.camel@quoit.chygwyn.com> (raw)
In-Reply-To: <20060321235828.GB6846@frodo>

Hi,

On Wed, 2006-03-22 at 10:58 +1100, Nathan Scott wrote:
> On Tue, Mar 21, 2006 at 05:21:19AM -0700, Andreas Dilger wrote:
> > On Mar 21, 2006  12:06 +0000, Steven Whitehouse wrote:
> > > In order to remove the final ioctl() call in the GFS2 filesystem its
> > > been suggested that we use xattrs as a replacement interface. Mostly
> > > this is self-explanatory however there is one question that I've not
> > > been able to resolve 100% satisfactorily, which is what the namespace
> > > should look like.
> > > 
> > > We have a bunch of boolean flags, so (using the example of the journaled
> > > data flag) should our xattrs be called something along the lines of
> 
> "boolean flags" sounds alot more like the lsattr/chattr inode flags
> as Andreas points out.  There is already a data journalling (j) flag
> there too.
> 
Yes, and for flags which are supported by ext2/3 this seems a sensible
route to take and I've already made a start to supporting that ioctl().
However there are still some other flags which don't fit in with the
existing ext2 flags, so for those we'll have to look for a different
method for those.

> > > system.gfs2.jdata (this seems to be most popular suggestion amoung those
> > > I've asked privately), or perhaps system.fs.gfs2.jdata or indeed is the
> > > system namespace reserved for something special so that we should use a
> > > special gfs2 namespace instead?
> 
> The choice typically depends on what the permissions model for
> access to the attribute needs to be.  See attr(5).
> 
Well from that it would appear that system is the right namespace to
choose. So the current plan is to make all the flags available via
xattrs and those compatible with ext2, via the ext2 compatible ioctl()
interface as well.

Thanks for the pointing me in the right direction,

Steve.



  reply	other threads:[~2006-03-22  8:53 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-21 12:06 xattr namespace question Steven Whitehouse
2006-03-21 12:21 ` Andreas Dilger
2006-03-21 23:58   ` Nathan Scott
2006-03-22  9:07     ` Steven Whitehouse [this message]
2006-03-22  8:59       ` Christoph Hellwig
2006-03-22 21:43         ` Nathan Scott
2006-03-23 12:04           ` Christoph Hellwig
2006-03-23 14:13             ` Dave Kleikamp

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1143018426.6400.1230.camel@quoit.chygwyn.com \
    --to=swhiteho@redhat.com \
    --cc=a.gruenbacher@bestbits.at \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=nathans@sgi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).