Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 359621
b: refs/heads/master
c: d421acb
h: refs/heads/master
i:
  359619: 6c5c720
v: v3
  • Loading branch information
Sage Weil committed Feb 14, 2013
1 parent d9385d9 commit 20cf53f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3adf654ddbc355c23d75c6684128d4b067a7b792
refs/heads/master: d421acb1ad7dfa31b7463b67f1593714b0b727c3
5 changes: 5 additions & 0 deletions trunk/fs/ceph/xattr.c
Original file line number Diff line number Diff line change
Expand Up @@ -892,6 +892,10 @@ int ceph_removexattr(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;

err = -ENOMEM;
spin_lock(&ci->i_ceph_lock);
retry:
Expand Down Expand Up @@ -931,6 +935,7 @@ int ceph_removexattr(struct dentry *dentry, const char *name)
return err;
do_sync:
spin_unlock(&ci->i_ceph_lock);
do_sync_unlocked:
err = ceph_send_removexattr(dentry, name);
out:
return err;
Expand Down

0 comments on commit 20cf53f

Please sign in to comment.