“Operation not supported” – extended attributes, getfattr, setfattr

Uncategorized , , , , 0 Comments

When using getfattr and setfattr on a filesystem that you’re sure about extended attributes is supported (i.e. ext4, reiserfs, btrfs) and get “Operation not supported” errors like this…

# touch test.txt
# setfattr --name test --value 42 test.txt
setfattr: test.txt: Operation not supported
# getfattr --name test test.txt
test.txt: test: Operation not supported

… then make sure you’re using the “user” namespace (the name of the attribute is prefixed with user.), like this:

# setfattr --name user.test --value 42 test.txt
# getfattr --name user.test test.txt
# file: test.txt

And please don’t ask me why I’m posting this.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.