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.

Leave A Reply
All content licensed under the Creative Commons License