return -EROFS;
}
+ // same xattrs supported by kernel client
+ if (strncmp(name, "user.", 5) &&
+ strncmp(name, "security.", 9) &&
+ strncmp(name, "trusted.", 8) &&
+ strncmp(name, "ceph.", 5))
+ return -EOPNOTSUPP;
+
MetaRequest *req = new MetaRequest(CEPH_MDS_OP_SETXATTR);
filepath path;
in->make_nosnap_relative_path(path);
tout(cct) << vino.ino.val << std::endl;
tout(cct) << name << std::endl;
- // same xattrs supported by kernel client
- if (strncmp(name, "user.", 5) &&
- strncmp(name, "security.", 9) &&
- strncmp(name, "trusted.", 8) &&
- strncmp(name, "ceph.", 5))
- return -EOPNOTSUPP;
-
Inode *in = _ll_get_inode(vino);
return _setxattr(in, name, value, size, flags, uid, gid);
}
return -EROFS;
}
+ // same xattrs supported by kernel client
+ if (strncmp(name, "user.", 5) &&
+ strncmp(name, "security.", 9) &&
+ strncmp(name, "trusted.", 8) &&
+ strncmp(name, "ceph.", 5))
+ return -EOPNOTSUPP;
+
MetaRequest *req = new MetaRequest(CEPH_MDS_OP_RMXATTR);
filepath path;
in->make_nosnap_relative_path(path);
tout(cct) << vino.ino.val << std::endl;
tout(cct) << name << std::endl;
- // same xattrs supported by kernel client
- if (strncmp(name, "user.", 5) &&
- strncmp(name, "security.", 9) &&
- strncmp(name, "trusted.", 8) &&
- strncmp(name, "ceph.", 5))
- return -EOPNOTSUPP;
-
Inode *in = _ll_get_inode(vino);
return _removexattr(in, name, uid, gid);
}