]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
chain_xattr: comment about how xattrs are named
authorYehuda Sadeh <yehuda@inktank.com>
Mon, 29 Oct 2012 19:54:49 +0000 (12:54 -0700)
committerSage Weil <sage@inktank.com>
Mon, 5 Nov 2012 08:13:54 +0000 (00:13 -0800)
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
src/os/chain_xattr.cc

index b391f706d8e0ed59867042829b85a69e94e56c77..d7b54b185c25a4c51cbaa1aa3e1c1a71574358a5 100644 (file)
 
 #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: "@<id>"
+ * where <id> 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)
 {