[PATCH] cfuse recognizing same xattr subset as kernel client

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hopefully this patch is formatted/signed off correctly.

Signed-off-by: Brian Chrisman <brchrisman@xxxxxxxxx>
---
 src/client/Client.cc |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/client/Client.cc b/src/client/Client.cc
index aa50452..95f102a 100644
--- a/src/client/Client.cc
+++ b/src/client/Client.cc
@@ -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);
--
1.7.1
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux