]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
kclient: removing of virutal xattr is not allowed
authorYehuda Sadeh <yehuda@hq.newdream.net>
Thu, 11 Sep 2008 17:59:02 +0000 (10:59 -0700)
committerYehuda Sadeh <yehuda@hq.newdream.net>
Thu, 11 Sep 2008 17:59:02 +0000 (10:59 -0700)
src/kernel/inode.c

index 46ad6f5c03cd13ca6756bb2c3f030d2d39327fba..ddc3f2962ef51e9283216347152440d67cb3d7f6 100644 (file)
@@ -1882,6 +1882,9 @@ int ceph_removexattr(struct dentry *dentry, const char *name)
        if (strncmp(name, "user.", 5) != 0)
                return -EOPNOTSUPP;
 
+       if (_ceph_match_vir_xattr(name) != NULL)
+               return -EOPNOTSUPP;
+
        path = ceph_build_dentry_path(dentry, &pathlen, &pathbase, 0);
        if (IS_ERR(path))
                return PTR_ERR(path);