History

Merge branch 'for-linus-3' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs

Pull vfs xattr cleanups from Al Viro. * 'for-linus-3' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: f2fs: xattr simplifications squashfs: xattr simplifications 9p: xattr simplifications xattr handlers: Pass handler to operations instead of flags jffs2: Add missing capability check for listing trusted xattrs hfsplus: Remove unused xattr handler list operations ubifs: Remove unused security xattr handler vfs: Fix the posix_acl_xattr_list return value vfs: Check attribute names in posix acl xattr handers

Linus Torvalds committed 11 years ago

Commit 5d2eb542 parents 2870f6c 29608d239 files · +390 −651Browse files

Showing the changes to include (1 of 39 files). Show all

Unified · Split

include/linux/xattr.h+11−7
@@ -21,15 +21,19 @@ struct dentry; · 20 unmodified lines
2121
2222 struct xattr_handler {
2323 const char *prefix;
24− int flags; /* fs private flags passed back to the handlers */
25− size_t (*list)(struct dentry *dentry, char *list, size_t list_size,
26− const char *name, size_t name_len, int handler_flags);
27− int (*get)(struct dentry *dentry, const char *name, void *buffer,
28− size_t size, int handler_flags);
29− int (*set)(struct dentry *dentry, const char *name, const void *buffer,
30− size_t size, int flags, int handler_flags);
24+ int flags; /* fs private flags */
25+ size_t (*list)(const struct xattr_handler *, struct dentry *dentry,
26+ char *list, size_t list_size, const char *name,
27+ size_t name_len);
28+ int (*get)(const struct xattr_handler *, struct dentry *dentry,
29+ const char *name, void *buffer, size_t size);
30+ int (*set)(const struct xattr_handler *, struct dentry *dentry,
31+ const char *name, const void *buffer, size_t size,
32+ int flags);
3133 };
3234
35+const char *xattr_full_name(const struct xattr_handler *, const char *);
36+
3337 struct xattr {
3438 const char *name;
3539 void *value;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t