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
|