[arch-general] Cannot set xattr

Thomas Bächler thomas at archlinux.org
Sun Nov 8 13:39:42 EST 2009

André Ramaciotti da Silva schrieb:
> The problem is: I can't use them at all. I'm using the default kernel,
> which, according to /proc/config.gz has:
> 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'.

That's because if you want to use user.* extended attributes on 
ext2/3/4, you have to mount with the user_xattr mount options. Simply 
add it to fstab.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 261 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.archlinux.org/pipermail/arch-general/attachments/20091108/3674ecb2/attachment.bin>

More information about the arch-general mailing list