diff options
author | ipsod <dustygamble@gmail.com> | 2021-10-28 09:38:45 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-28 09:38:45 -0500 |
commit | ad4da91d29959275d55a8d9cf43ac275ad418b86 (patch) | |
tree | dde44c223c6912d23ac9ecf6718d7e9b80596cb2 | |
parent | dc336dea43ed57a14445339eade738845adaab2e (diff) | |
download | xattr-ad4da91d29959275d55a8d9cf43ac275ad418b86.tar.gz |
Note about how to create custom xattr
I'm not sure if this is quite the whole truth of it, but a note like this would've helped me avoid some confusion.
On Ubuntu 20.1 with EXT4, this differs from the `attr` command, which automatically prefixes the key with `user.`. So, if I add an xattr with the linux command `-s "testkey" "value" /path/to/file', I have to read from xattr with the key `user.testkey`.
-rw-r--r-- | README.rst | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -12,3 +12,5 @@ file system objects (files, directories, symlinks, etc). Extended attributes are currently only available on Darwin 8.0+ (Mac OS X 10.4) and Linux 2.6+. Experimental support is included for Solaris and FreeBSD. + +Note: custom xattr keys need to be prefixed with `user.`, ie: `user.your_attr`. |