Release 4.10 fs/ext4/xattr_user.c
/*
* linux/fs/ext4/xattr_user.c
* Handler for extended user attributes.
*
* Copyright (C) 2001 by Andreas Gruenbacher, <a.gruenbacher@computer.org>
*/
#include <linux/string.h>
#include <linux/fs.h>
#include "ext4_jbd2.h"
#include "ext4.h"
#include "xattr.h"
static bool
ext4_xattr_user_list(struct dentry *dentry)
{
return test_opt(dentry->d_sb, XATTR_USER);
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
dave kleikamp | dave kleikamp | 14 | 66.67% | 1 | 25.00% |
christoph hellwig | christoph hellwig | 4 | 19.05% | 1 | 25.00% |
andreas gruenbacher | andreas gruenbacher | 2 | 9.52% | 1 | 25.00% |
mingming cao | mingming cao | 1 | 4.76% | 1 | 25.00% |
| Total | 21 | 100.00% | 4 | 100.00% |
static int
ext4_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 ext4_xattr_get(inode, EXT4_XATTR_INDEX_USER,
name, buffer, size);
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
dave kleikamp | dave kleikamp | 45 | 70.31% | 1 | 20.00% |
al viro | al viro | 9 | 14.06% | 1 | 20.00% |
andreas gruenbacher | andreas gruenbacher | 6 | 9.38% | 1 | 20.00% |
mingming cao | mingming cao | 3 | 4.69% | 1 | 20.00% |
christoph hellwig | christoph hellwig | 1 | 1.56% | 1 | 20.00% |
| Total | 64 | 100.00% | 5 | 100.00% |
static int
ext4_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 ext4_xattr_set(inode, EXT4_XATTR_INDEX_USER,
name, value, size, flags);
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
dave kleikamp | dave kleikamp | 51 | 72.86% | 1 | 20.00% |
al viro | al viro | 9 | 12.86% | 1 | 20.00% |
andreas gruenbacher | andreas gruenbacher | 6 | 8.57% | 1 | 20.00% |
mingming cao | mingming cao | 3 | 4.29% | 1 | 20.00% |
christoph hellwig | christoph hellwig | 1 | 1.43% | 1 | 20.00% |
| Total | 70 | 100.00% | 5 | 100.00% |
const struct xattr_handler ext4_xattr_user_handler = {
.prefix = XATTR_USER_PREFIX,
.list = ext4_xattr_user_list,
.get = ext4_xattr_user_get,
.set = ext4_xattr_user_set,
};
Overall Contributors
| Person | Tokens | Prop | Commits | CommitProp |
dave kleikamp | dave kleikamp | 145 | 73.23% | 1 | 11.11% |
al viro | al viro | 18 | 9.09% | 2 | 22.22% |
andreas gruenbacher | andreas gruenbacher | 14 | 7.07% | 2 | 22.22% |
mingming cao | mingming cao | 12 | 6.06% | 1 | 11.11% |
christoph hellwig | christoph hellwig | 8 | 4.04% | 2 | 22.22% |
stephen hemminger | stephen hemminger | 1 | 0.51% | 1 | 11.11% |
| Total | 198 | 100.00% | 9 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.