aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMimi Zohar <zohar@linux.vnet.ibm.com>2011-03-09 14:23:34 -0500
committerMimi Zohar <zohar@linux.vnet.ibm.com>2011-07-18 12:29:39 -0400
commit1601fbad2b14e0b8d4dbb55e749bfe31e972818a (patch)
treeca9271af43fc7b0edaaa9e5464a82d3b427db8b2 /include
parentf381c272224f5f158f5cff64f8f3481fa0eee8b3 (diff)
xattr: define vfs_getxattr_alloc and vfs_xattr_cmp
vfs_getxattr_alloc() and vfs_xattr_cmp() are two new kernel xattr helper functions. vfs_getxattr_alloc() first allocates memory for the requested xattr and then retrieves it. vfs_xattr_cmp() compares a given value with the contents of an extended attribute. Signed-off-by: Mimi Zohar <zohar@us.ibm.com> Acked-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/xattr.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/xattr.h b/include/linux/xattr.h
index 7a378662ddff..4703f6bd1f53 100644
--- a/include/linux/xattr.h
+++ b/include/linux/xattr.h
@@ -84,7 +84,10 @@ ssize_t generic_getxattr(struct dentry *dentry, const char *name, void *buffer,
84ssize_t generic_listxattr(struct dentry *dentry, char *buffer, size_t buffer_size); 84ssize_t generic_listxattr(struct dentry *dentry, char *buffer, size_t buffer_size);
85int generic_setxattr(struct dentry *dentry, const char *name, const void *value, size_t size, int flags); 85int generic_setxattr(struct dentry *dentry, const char *name, const void *value, size_t size, int flags);
86int generic_removexattr(struct dentry *dentry, const char *name); 86int generic_removexattr(struct dentry *dentry, const char *name);
87 87ssize_t vfs_getxattr_alloc(struct dentry *dentry, const char *name,
88 char **xattr_value, size_t size, gfp_t flags);
89int vfs_xattr_cmp(struct dentry *dentry, const char *xattr_name,
90 const char *value, size_t size, gfp_t flags);
88#endif /* __KERNEL__ */ 91#endif /* __KERNEL__ */
89 92
90#endif /* _LINUX_XATTR_H */ 93#endif /* _LINUX_XATTR_H */