summaryrefslogtreecommitdiff
path: root/fs/ceph
diff options
context:
space:
mode:
authorYan, Zheng <zheng.z.yan@intel.com>2013-04-07 16:28:49 +0800
committerSage Weil <sage@inktank.com>2013-05-01 21:18:50 -0700
commit0b93267252ef5fe6c6d77e3013ed6a0d766352ad (patch)
tree165770fe46e7090a2336132724f9c25c473d84ac /fs/ceph
parenta84cd29335f4ca38ca8405c1636ee3876bb292b5 (diff)
downloadlwn-0b93267252ef5fe6c6d77e3013ed6a0d766352ad.tar.gz
lwn-0b93267252ef5fe6c6d77e3013ed6a0d766352ad.zip
ceph: fix symlink inode operations
add getattr/setattr and xattrs related methods. Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com> Reviewed-by: Greg Farnum <greg@inktank.com>
Diffstat (limited to 'fs/ceph')
-rw-r--r--fs/ceph/inode.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/ceph/inode.c b/fs/ceph/inode.c
index 1b173edc8083..be0f7e20d62e 100644
--- a/fs/ceph/inode.c
+++ b/fs/ceph/inode.c
@@ -1560,6 +1560,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,
};
/*