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

index 03e96824a66f87045e1253420ce31d69e13f4bcb..46ad6f5c03cd13ca6756bb2c3f030d2d39327fba 100644 (file)
@@ -1810,6 +1810,9 @@ int ceph_setxattr(struct dentry *dentry, const char *name,
        if (strncmp(name, "user.", 5) != 0)
                return -EOPNOTSUPP;
 
+       if (_ceph_match_vir_xattr(name) != NULL)
+               return -EOPNOTSUPP;
+
        /* copy value into some pages */
        nr_pages = calc_pages_for(0, size);
        if (nr_pages) {