summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorYan, Zheng <zheng.z.yan@intel.com>2013-04-07 10:28:49 +0200
committerSage Weil <sage@inktank.com>2013-05-02 06:18:50 +0200
commit0b93267252ef5fe6c6d77e3013ed6a0d766352ad (patch)
tree165770fe46e7090a2336132724f9c25c473d84ac /fs
parentceph: Use pseudo-random numbers to choose mds (diff)
downloadlinux-0b93267252ef5fe6c6d77e3013ed6a0d766352ad.tar.xz
linux-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')
-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,
};
/*