From d9385d96e7d626efc341e792998c516031e7bb5d Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 31 Jan 2013 11:53:41 -0800 Subject: [PATCH] --- yaml --- r: 359620 b: refs/heads/master c: 3adf654ddbc355c23d75c6684128d4b067a7b792 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/ceph/xattr.c | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 2794dd56e740..469bbb47e456 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 8860147a01c4243f64f7d602dbf8342ca616ed45 +refs/heads/master: 3adf654ddbc355c23d75c6684128d4b067a7b792 diff --git a/trunk/fs/ceph/xattr.c b/trunk/fs/ceph/xattr.c index 43063d0dee8f..edc47de77fed 100644 --- a/trunk/fs/ceph/xattr.c +++ b/trunk/fs/ceph/xattr.c @@ -777,6 +777,10 @@ int ceph_setxattr(struct dentry *dentry, const char *name, if (vxattr && vxattr->readonly) return -EOPNOTSUPP; + /* pass any unhandled ceph.* xattrs through to the MDS */ + if (!strncmp(name, XATTR_CEPH_PREFIX, XATTR_CEPH_PREFIX_LEN)) + goto do_sync_unlocked; + /* preallocate memory for xattr name, value, index node */ err = -ENOMEM; newname = kmemdup(name, name_len + 1, GFP_NOFS); @@ -833,6 +837,7 @@ int ceph_setxattr(struct dentry *dentry, const char *name, do_sync: spin_unlock(&ci->i_ceph_lock); +do_sync_unlocked: err = ceph_sync_setxattr(dentry, name, value, size, flags); out: kfree(newname);