Release 4.17 fs/ext2/xattr_user.c
// SPDX-License-Identifier: GPL-2.0
/*
* 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 Y. Ts'o | 15 | 71.43% | 1 | 33.33% |
Christoph Hellwig | 4 | 19.05% | 1 | 33.33% |
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 Y. Ts'o | 48 | 75.00% | 1 | 25.00% |
Al Viro | 9 | 14.06% | 1 | 25.00% |
Andreas Gruenbacher | 6 | 9.38% | 1 | 25.00% |
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 Y. Ts'o | 43 | 61.43% | 1 | 20.00% |
Christoph Hellwig | 12 | 17.14% | 2 | 40.00% |
Al Viro | 9 | 12.86% | 1 | 20.00% |
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 Y. Ts'o | 136 | 69.39% | 1 | 9.09% |
Al Viro | 18 | 9.18% | 2 | 18.18% |
Christoph Hellwig | 17 | 8.67% | 2 | 18.18% |
Andreas Gruenbacher | 14 | 7.14% | 2 | 18.18% |
Art Haas | 8 | 4.08% | 1 | 9.09% |
James Morris | 1 | 0.51% | 1 | 9.09% |
Stephen Hemminger | 1 | 0.51% | 1 | 9.09% |
Greg Kroah-Hartman | 1 | 0.51% | 1 | 9.09% |
Total | 196 | 100.00% | 11 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.