summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoripsod <dustygamble@gmail.com>2021-10-28 09:38:45 -0500
committerGitHub <noreply@github.com>2021-10-28 09:38:45 -0500
commitad4da91d29959275d55a8d9cf43ac275ad418b86 (patch)
treedde44c223c6912d23ac9ecf6718d7e9b80596cb2
parentdc336dea43ed57a14445339eade738845adaab2e (diff)
downloadxattr-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.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/README.rst b/README.rst
index c2c9214..24ccbd7 100644
--- a/README.rst
+++ b/README.rst
@@ -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`.