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: 3.143.241.253
To prevent spam please submit by clicking the kitten: