I am saving data that I guess could be deemed metadata on a JSON serialized file:
os.setxattr('/var/tmp/test.json', 'user.keyname', b'value')
and I can get the bytes value back via:
os.getxattr('/var/tmp/test.json', 'user.keyname')
The only way I can get this to work is by putting user.
in front of the key/name that I want to use. Why is this?
https://jp-andre.pagesperso-orange.fr/extend-attr.html