reiserfslib: add basic extended attribute helpers

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
This commit is contained in:
Jeff Mahoney committed 2014-03-11 16:39:52 -04:00
1 parent e51777cf55
commit 6bdb171b9e
4 files changed
+147 -2

No files matched your search

+26
View File
@@ -1402,6 +1402,32 @@ struct buffer_info {
#define MAX_DIRECT_ITEM_LEN(size) ((size) - BLKH_SIZE - 2*IH_SIZE - SD_SIZE - UNFM_P_SIZE)
#define MAX_INDIRECT_ITEM_LEN(size) MAX_ITEM_LEN(size)
/* Extended attributes */
/* Magic value in header */
#define REISERFS_XATTR_MAGIC 0x52465841 /* "RFXA" */
struct reiserfs_xattr_header {
__le32 h_magic;
__le32 h_hash;
};
/* ACLs */
#define REISERFS_ACL_VERSION 0x0001
struct reiserfs_acl_entry {
__le16 e_tag;
__le16 e_perm;
__le32 e_id;
};
struct reiserfs_acl_entry_short {
__le16 e_tag;
__le16 e_perm;
};
struct reiserfs_acl_header {
__le32 a_version;
};
/***************************************************************************/
/* FUNCTION DECLARATIONS */
/***************************************************************************/
+4 -1
View File
@@ -431,5 +431,8 @@ int can_we_format_it(char *device_name, int force);
return 0;\
}\
/* xattr.c */
__u32 reiserfs_xattr_hash(const char *msg, int len);
int reiserfs_check_xattr(const void *body, int len);
int reiserfs_acl_count(size_t size);
#endif /* REISERFSPROGS_LIB_H */