From 9cf0be71a85f04d391195b6dc7285aeb10b2a47e Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Mon, 29 Oct 2012 12:54:49 -0700 Subject: [PATCH] chain_xattr: comment about how xattrs are named Signed-off-by: Yehuda Sadeh --- src/os/chain_xattr.cc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/os/chain_xattr.cc b/src/os/chain_xattr.cc index b391f706d8e0e..d7b54b185c25a 100644 --- a/src/os/chain_xattr.cc +++ b/src/os/chain_xattr.cc @@ -27,6 +27,17 @@ #include "common/xattr.h" +/* + * chaining xattrs + * + * In order to support xattrs that are larger than the xattr size limit that some file systems + * impose, we use multiple xattrs to store the value of a single xattr. The xattrs keys + * are set as follows: + * The first xattr in the chain, has a key that holds the original xattr name, with any '@' char + * being esacped ("@@"). + * The chained keys will have the first xattr's key (with the escaping), and a suffix: "@" + * where marks the num of xattr in the chain. + */ static void get_raw_xattr_name(const char *name, int i, char *raw_name, int raw_len) { -- 2.39.5