xfs
[Top] [All Lists]

Re: Operation not supported

To: "'Linto Joseph Mathew" <linto@xxxxxxxxxxxxxxxxx>, linux-xfs@xxxxxxxxxxx
Subject: Re: Operation not supported
From: Nathan Scott <nathans@xxxxxxx>
Date: Fri, 4 Apr 2003 06:40:28 +1000
In-reply-to: <20030403181922.GF20085@sgi.com>; from nstraz@sgi.com on Thu, Apr 03, 2003 at 12:19:22PM -0600
References: <Pine.LNX.4.44.0304031412250.17999-100000@hbcse.tifr.res.in> <Pine.LNX.4.44.0304031420100.17999-100000@hbcse.tifr.res.in> <20030403181922.GF20085@sgi.com>
Sender: linux-xfs-bounce@xxxxxxxxxxx
User-agent: Mutt/1.2.5i
On Thu, Apr 03, 2003 at 12:19:22PM -0600, Nathan Straz wrote:
> On Thu, Apr 03, 2003 at 02:20:35PM +0530, 'Linto Joseph Mathew wrote:
> > On Thu, 3 Apr 2003, 'Linto Joseph Mathew wrote:
> > >  > On Mon, Mar 31, 2003 at 07:18:00PM +0530, 'Linto Joseph Mathew wrote:
> > >  > > There are system calls for set/getting extra attributes to a file.
> > >  > > How do i invoke it in a c program?
> > >  > > Is there any special functions?
> > >  >
> > >  > Check the getxattr and setxattr man pages that are part of the
> > >  > libattr1-dev[1] package.
> > 
> >   I tried
> >   $ setfattr -n XXX -v XXXX path
> >   $ getfattr -n XXX path
> >   on my XFS partition.
> >   But it showing "Operation not supported".
> >   I am using kernel 2.4.20. and xfs-2.4.20-all.i386 patch.

Above is not a valid extended attribute name.  Read the attr(5) man 
page, then try something like...

$ setfattr -n XXX -v XXXX /tmp/foo
setfattr: /tmp/foo: Operation not supported
$ setfattr -n user.XXX -v XXXX /tmp/foo
$ getfattr /tmp/foo
getfattr: Removing leading '/' from absolute path names
# file: tmp/foo
user.XXX

> >   will kernel 2.4.20  support this operation?
> >   If not ,which is the supporting version ?
> 
> Ok, I'm not sure about this, but do you have CONFIG_FS_POSIX_ACL set?
> Someone else on the list can clarify this, but my guess is that this
> also turns on and off extended attributes.  

Extended attributes are always available, independent of ACLs.

cheers.

-- 
Nathan


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