[arch-general] Cannot set xattr

Xavier shiningxc at gmail.com
Sun Nov 8 13:33:57 EST 2009


On Sun, Nov 8, 2009 at 7:25 PM, André Ramaciotti da Silva
<andre.ramaciotti at gmail.com> wrote:
> Hi all,
>
> I'm thinking of different ways to organize my files and xattrs seem a
> nice, standardized way to do so (don't ask me exactly what I'm trying to
> do, for I only have a slight idea).
>
> The problem is: I can't use them at all. I'm using the default kernel,
> which, according to /proc/config.gz has:
>
> CONFIG_EXT4_FS_XATTR=y
>
> and I'm using ext4, evidently.
>
> I've tried doing the following:
>
> $ echo 'asd' > test
> $ attr -s user.author -V andre test
> attr_set: Operation not supported
> Could not set "user.author" for test
>
> but, as you can see, it doesn't work. Running it as root doesn't work,
> too. I've also made a small C program, but it also fails to set the xattr,
> returning ENOTSUP (operation not supported), so it isn't a problem with
> 'attr'.
>
> I do have 'attr' from [core] installed so I don't know what else can be
> the problem.
>
> Thanks in advance,
> Andre
>

man mount
       user_xattr / nouser_xattr
              Support "user." extended attributes (or not).

sudo mount  / -o remount,user_xattr

or put it directly in fstab


More information about the arch-general mailing list