From patchwork Fri Apr 8 22:42:16 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Chrisman X-Patchwork-Id: 695601 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p38MgJIc028466 for ; Fri, 8 Apr 2011 22:42:20 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752256Ab1DHWmS (ORCPT ); Fri, 8 Apr 2011 18:42:18 -0400 Received: from mail-vw0-f46.google.com ([209.85.212.46]:45490 "EHLO mail-vw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751983Ab1DHWmR (ORCPT ); Fri, 8 Apr 2011 18:42:17 -0400 Received: by vws1 with SMTP id 1so3041995vws.19 for ; Fri, 08 Apr 2011 15:42:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=OS1PMegH11yclv+2UJfcdLZF+ofyoO/FpZ55s+Dfu6E=; b=kZ9dWxUk9ZWbI7j8ioGVS/sZxcdKzLqgKNrBJntnNYUcx2OT9X88okcneXjB9J+rvS bBeOrwj/oTeWJHddgRvMVsyW3Vbdd+cOIqyzhIlWnZko83e6N1WyqtONgWmZ7edagnhZ TdoXJD5LK4NrOfuR/bGo5kNXcAKoCbfPhGh+M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=YiyHMB9KIGyqJpRfHb85dqxVBIWIpi44/XLimBviyhXRPqP90ZNwSewQwg6vlnkKCD TmBD7l8UFxuNZFUEI9UHuQVsclBxN+QNira4+V4a6kcqdbxQHn1iqxQGaHfnvN7ZmuHm lXoNIoUWdUhlaYZBATGvft3dtDk3K63DfQimA= MIME-Version: 1.0 Received: by 10.220.175.201 with SMTP id bb9mr767931vcb.44.1302302536963; Fri, 08 Apr 2011 15:42:16 -0700 (PDT) Received: by 10.220.86.13 with HTTP; Fri, 8 Apr 2011 15:42:16 -0700 (PDT) Date: Fri, 8 Apr 2011 15:42:16 -0700 Message-ID: Subject: [PATCH] cfuse recognizing same xattr subset as kernel client From: Brian Chrisman To: ceph-devel Sender: ceph-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: ceph-devel@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Fri, 08 Apr 2011 22:42:20 +0000 (UTC) Hopefully this patch is formatted/signed off correctly. Signed-off-by: Brian Chrisman --- src/client/Client.cc | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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;