Release 4.7 fs/ext2/xattr_user.c
/*
* linux/fs/ext2/xattr_user.c
* Handler for extended user attributes.
*
* Copyright (C) 2001 by Andreas Gruenbacher, <a.gruenbacher@computer.org>
*/
#include <linux/init.h>
#include <linux/string.h>
#include "ext2.h"
#include "xattr.h"
static bool
ext2_xattr_user_list(struct dentry *dentry)
{
return test_opt(dentry->d_sb, XATTR_USER);
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
theodore tso | theodore tso | 15 | 71.43% | 1 | 33.33% |
christoph hellwig | christoph hellwig | 4 | 19.05% | 1 | 33.33% |
andreas gruenbacher | andreas gruenbacher | 2 | 9.52% | 1 | 33.33% |
| Total | 21 | 100.00% | 3 | 100.00% |
static int
ext2_xattr_user_get(const struct xattr_handler *handler,
struct dentry *unused, struct inode *inode,
const char *name, void *buffer, size_t size)
{
if (!test_opt(inode->i_sb, XATTR_USER))
return -EOPNOTSUPP;
return ext2_xattr_get(inode, EXT2_XATTR_INDEX_USER,
name, buffer, size);
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
theodore tso | theodore tso | 48 | 75.00% | 1 | 25.00% |
al viro | al viro | 9 | 14.06% | 1 | 25.00% |
andreas gruenbacher | andreas gruenbacher | 6 | 9.38% | 1 | 25.00% |
christoph hellwig | christoph hellwig | 1 | 1.56% | 1 | 25.00% |
| Total | 64 | 100.00% | 4 | 100.00% |
static int
ext2_xattr_user_set(const struct xattr_handler *handler,
struct dentry *unused, struct inode *inode,
const char *name, const void *value,
size_t size, int flags)
{
if (!test_opt(inode->i_sb, XATTR_USER))
return -EOPNOTSUPP;
return ext2_xattr_set(inode, EXT2_XATTR_INDEX_USER,
name, value, size, flags);
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
theodore tso | theodore tso | 43 | 61.43% | 1 | 20.00% |
christoph hellwig | christoph hellwig | 12 | 17.14% | 2 | 40.00% |
al viro | al viro | 9 | 12.86% | 1 | 20.00% |
andreas gruenbacher | andreas gruenbacher | 6 | 8.57% | 1 | 20.00% |
| Total | 70 | 100.00% | 5 | 100.00% |
const struct xattr_handler ext2_xattr_user_handler = {
.prefix = XATTR_USER_PREFIX,
.list = ext2_xattr_user_list,
.get = ext2_xattr_user_get,
.set = ext2_xattr_user_set,
};
Overall Contributors
| Person | Tokens | Prop | Commits | CommitProp |
theodore tso | theodore tso | 136 | 69.74% | 1 | 10.00% |
al viro | al viro | 18 | 9.23% | 2 | 20.00% |
christoph hellwig | christoph hellwig | 17 | 8.72% | 2 | 20.00% |
andreas gruenbacher | andreas gruenbacher | 14 | 7.18% | 2 | 20.00% |
art haas | art haas | 8 | 4.10% | 1 | 10.00% |
james morris | james morris | 1 | 0.51% | 1 | 10.00% |
stephen hemminger | stephen hemminger | 1 | 0.51% | 1 | 10.00% |
| Total | 195 | 100.00% | 10 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.