Setting and reading file xattrs

If your filesystem supports xattrs you can set metadata to be saved with your files:

touch foo
setfattr -n user.fave_food -v hotdogs foo
getfattr -n user.fave_food foo

You must save everything in the user. namespace though.



Note: Replies will be formatted with PHP Markdown Extra syntax.

Name: Email (Not Required):
 
Logged IP: 52.14.0.24
To prevent spam please submit by clicking the kitten: