From patchwork Fri Apr 12 08:11:12 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yan, Zheng" X-Patchwork-Id: 2434491 Return-Path: X-Original-To: patchwork-ceph-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 92C253FD40 for ; Fri, 12 Apr 2013 08:11:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753974Ab3DLILk (ORCPT ); Fri, 12 Apr 2013 04:11:40 -0400 Received: from mga09.intel.com ([134.134.136.24]:62108 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753872Ab3DLILV (ORCPT ); Fri, 12 Apr 2013 04:11:21 -0400 Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP; 12 Apr 2013 01:09:36 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.87,461,1363158000"; d="scan'208";a="317091214" Received: from zyan5-mobl.sh.intel.com ([10.239.13.24]) by orsmga002.jf.intel.com with ESMTP; 12 Apr 2013 01:11:20 -0700 From: "Yan, Zheng" To: ceph-devel@vger.kernel.org Cc: greg@inktank.com, elder@inktank.com, "Yan, Zheng" Subject: [PATCH 3/4] ceph: fix symlink inode operations Date: Fri, 12 Apr 2013 16:11:12 +0800 Message-Id: <1365754273-14088-5-git-send-email-zheng.z.yan@intel.com> X-Mailer: git-send-email 1.7.11.7 In-Reply-To: <1365754273-14088-1-git-send-email-zheng.z.yan@intel.com> References: <1365754273-14088-1-git-send-email-zheng.z.yan@intel.com> Sender: ceph-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: ceph-devel@vger.kernel.org From: "Yan, Zheng" add getattr/setattr and xattrs related methods. Signed-off-by: Yan, Zheng Reviewed-by: Alex Elder --- fs/ceph/inode.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/fs/ceph/inode.c b/fs/ceph/inode.c index 5d730d4..d5cad38 100644 --- a/fs/ceph/inode.c +++ b/fs/ceph/inode.c @@ -1523,6 +1523,12 @@ static void *ceph_sym_follow_link(struct dentry *dentry, struct nameidata *nd) static const struct inode_operations ceph_symlink_iops = { .readlink = generic_readlink, .follow_link = ceph_sym_follow_link, + .setattr = ceph_setattr, + .getattr = ceph_getattr, + .setxattr = ceph_setxattr, + .getxattr = ceph_getxattr, + .listxattr = ceph_listxattr, + .removexattr = ceph_removexattr, }; /*