Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 327203
b: refs/heads/master
c: 4895768
h: refs/heads/master
i:
  327201: dbefe7f
  327199: b2fbec9
v: v3
  • Loading branch information
Aristeu Rozanski authored and Tejun Heo committed Sep 13, 2012
1 parent b26f823 commit 1b840d8
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 19ec2567e0a5fe64f4404ad6df697894aec8c493
refs/heads/master: 4895768b6aab55bbdbebcf2da090cb1a5ccf5463
18 changes: 16 additions & 2 deletions trunk/fs/xattr.c
Original file line number Diff line number Diff line change
Expand Up @@ -892,8 +892,19 @@ static int __simple_xattr_set(struct simple_xattrs *xattrs, const char *name,

}

/*
* xattr SET operation for in-memory/pseudo filesystems
/**
* simple_xattr_set - xattr SET operation for in-memory/pseudo filesystems
* @xattrs: target simple_xattr list
* @name: name of the new extended attribute
* @value: value of the new xattr. If %NULL, will remove the attribute
* @size: size of the new xattr
* @flags: %XATTR_{CREATE|REPLACE}
*
* %XATTR_CREATE is set, the xattr shouldn't exist already; otherwise fails
* with -EEXIST. If %XATTR_REPLACE is set, the xattr should exist;
* otherwise, fails with -ENODATA.
*
* Returns 0 on success, -errno on failure.
*/
int simple_xattr_set(struct simple_xattrs *xattrs, const char *name,
const void *value, size_t size, int flags)
Expand Down Expand Up @@ -950,6 +961,9 @@ ssize_t simple_xattr_list(struct simple_xattrs *xattrs, char *buffer,
return used;
}

/*
* Adds an extended attribute to the list
*/
void simple_xattr_list_add(struct simple_xattrs *xattrs,
struct simple_xattr *new_xattr)
{
Expand Down

0 comments on commit 1b840d8

Please sign in to comment.