]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cfuse recognizing same xattr subset as kernel client
authorBrian Chrisman <brchrisman@gmail.com>
Fri, 8 Apr 2011 22:42:16 +0000 (15:42 -0700)
committerSage Weil <sage.weil@dreamhost.com>
Fri, 8 Apr 2011 23:12:56 +0000 (16:12 -0700)
Hopefully this patch is formatted/signed off correctly.

Signed-off-by: Brian Chrisman <brchrisman@gmail.com>
src/client/Client.cc

index aa50452e88f9e73e97a810c49ffe3f6494eef7f7..95f102ad7ef767280f692daad675a68c8530af71 100644 (file)
@@ -5715,8 +5715,8 @@ int Client::ll_setxattr(vinodeno_t vino, const char *name, const void *value, si
   tout << vino.ino.val << std::endl;
   tout << name << std::endl;
 
-  // only user xattrs, for now
-  if (strncmp(name, "user.", 5))
+  // same xattrs supported by kernel client
+  if (strncmp(name, "user.", 5) && strncmp(name, "security.", 9) && strncmp(name, "trusted.", 8))
     return -EOPNOTSUPP;
 
   Inode *in = _ll_get_inode(vino);