diff options
author | Barry Naujok <bnaujok@sgi.com> | 2008-05-19 04:08:04 +0000 |
---|---|---|
committer | Barry Naujok <bnaujok@sgi.com> | 2008-05-19 04:08:04 +0000 |
commit | 467bbfa56a14c1571082cab2385d272bead78fdc (patch) | |
tree | d13cc2616d123d1dcd579b4b417566e2463b04c6 /include | |
parent | b2cbba4d03ad5e8580b401cb3e2448aa913c83e0 (diff) | |
download | attr-467bbfa56a14c1571082cab2385d272bead78fdc.tar.gz |
the current attribute copying functions attr_copy_file and
attr_copy_fd is a static list of exceptions for attributes that need special
treatment. The list of those attributes tends to change (slowly) with kernel
versions. We replaced the static list with a config file a while ago; this is
the patch used.
Merge of master-melb:xfs-cmds:31181a by kenmcd.
Add configurable xattr copy
Diffstat (limited to 'include')
-rw-r--r-- | include/libattr.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/libattr.h b/include/libattr.h index 2fe477c..904b846 100644 --- a/include/libattr.h +++ b/include/libattr.h @@ -14,9 +14,14 @@ extern int attr_copy_fd (const char *, int, const char *, int, int (*) (const char *, struct error_context *), struct error_context *); -/* The default check function used by attr_copy_{fd,file}. */ +/* Keep this function for backwards compatibility. */ extern int attr_copy_check_permissions(const char *, struct error_context *); +#define ATTR_ACTION_SKIP 1 +#define ATTR_ACTION_PERMISSIONS 2 + +extern int attr_copy_action(const char *, struct error_context *); + #ifdef __cplusplus } #endif |