Contributors: 9
Author |
Tokens |
Token Proportion |
Commits |
Commit Proportion |
Vyacheslav Dubeyko |
107 |
74.31% |
1 |
8.33% |
Al Viro |
14 |
9.72% |
2 |
16.67% |
James Morris |
8 |
5.56% |
1 |
8.33% |
Christian Brauner |
5 |
3.47% |
2 |
16.67% |
Hin-Tak Leung |
3 |
2.08% |
1 |
8.33% |
Fabian Frederick |
2 |
1.39% |
2 |
16.67% |
Stephen Hemminger |
2 |
1.39% |
1 |
8.33% |
Andreas Gruenbacher |
2 |
1.39% |
1 |
8.33% |
Greg Kroah-Hartman |
1 |
0.69% |
1 |
8.33% |
Total |
144 |
|
12 |
|
// SPDX-License-Identifier: GPL-2.0
/*
* linux/fs/hfsplus/xattr_user.c
*
* Vyacheslav Dubeyko <slava@dubeyko.com>
*
* Handler for user extended attributes.
*/
#include <linux/nls.h>
#include "hfsplus_fs.h"
#include "xattr.h"
static int hfsplus_user_getxattr(const struct xattr_handler *handler,
struct dentry *unused, struct inode *inode,
const char *name, void *buffer, size_t size)
{
return hfsplus_getxattr(inode, name, buffer, size,
XATTR_USER_PREFIX, XATTR_USER_PREFIX_LEN);
}
static int hfsplus_user_setxattr(const struct xattr_handler *handler,
struct mnt_idmap *idmap,
struct dentry *unused, struct inode *inode,
const char *name, const void *buffer,
size_t size, int flags)
{
return hfsplus_setxattr(inode, name, buffer, size, flags,
XATTR_USER_PREFIX, XATTR_USER_PREFIX_LEN);
}
const struct xattr_handler hfsplus_xattr_user_handler = {
.prefix = XATTR_USER_PREFIX,
.get = hfsplus_user_getxattr,
.set = hfsplus_user_setxattr,
};