ReactOS 0.4.16-dev-297-gc569aee
ext4_xattr.h File Reference

Extended Attribute manipulation. More...

#include <ext2fs.h>
#include <linux/rbtree.h>
Include dependency graph for ext4_xattr.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ext4_xattr_header
 
struct  ext4_xattr_ibody_header
 
struct  ext4_xattr_entry
 
struct  ext4_xattr_item
 
struct  ext4_xattr_ref
 

Macros

#define EXT4_XATTR_MAGIC   0xEA020000
 
#define EXT4_XATTR_REFCOUNT_MAX   1024
 
#define EXT4_XATTR_INDEX_USER   1
 
#define EXT4_XATTR_INDEX_POSIX_ACL_ACCESS   2
 
#define EXT4_XATTR_INDEX_POSIX_ACL_DEFAULT   3
 
#define EXT4_XATTR_INDEX_TRUSTED   4
 
#define EXT4_XATTR_INDEX_LUSTRE   5
 
#define EXT4_XATTR_INDEX_SECURITY   6
 
#define EXT4_XATTR_INDEX_SYSTEM   7
 
#define EXT4_XATTR_INDEX_RICHACL   8
 
#define EXT4_XATTR_INDEX_ENCRYPTION   9
 
#define EXT4_GOOD_OLD_INODE_SIZE   EXT2_GOOD_OLD_INODE_SIZE
 
#define EXT4_XATTR_PAD_BITS   2
 
#define EXT4_XATTR_PAD   (1<<EXT4_XATTR_PAD_BITS)
 
#define EXT4_XATTR_ROUND   (EXT4_XATTR_PAD-1)
 
#define EXT4_XATTR_LEN(name_len)
 
#define EXT4_XATTR_NEXT(entry)
 
#define EXT4_XATTR_SIZE(size)    (((size) + EXT4_XATTR_ROUND) & ~EXT4_XATTR_ROUND)
 
#define EXT4_XATTR_NAME(entry)    ((char *)((entry) + 1))
 
#define EXT4_XATTR_IHDR(raw_inode)
 
#define EXT4_XATTR_IFIRST(hdr)    ((struct ext4_xattr_entry *)((hdr)+1))
 
#define EXT4_XATTR_BHDR(block)    ((struct ext4_xattr_header *)((block)->b_data))
 
#define EXT4_XATTR_ENTRY(ptr)    ((struct ext4_xattr_entry *)(ptr))
 
#define EXT4_XATTR_BFIRST(block)    EXT4_XATTR_ENTRY(EXT4_XATTR_BHDR(block)+1)
 
#define EXT4_XATTR_IS_LAST_ENTRY(entry)    (*(__le32 *)(entry) == 0)
 
#define EXT4_ZERO_XATTR_VALUE   ((void *)-1)
 
#define EXT4_XATTR_ITERATE_CONT   0
 
#define EXT4_XATTR_ITERATE_STOP   1
 
#define EXT4_XATTR_ITERATE_PAUSE   2
 

Functions

int ext4_fs_get_xattr_ref (PEXT2_IRP_CONTEXT IrpContext, PEXT2_VCB fs, PEXT2_MCB inode_ref, struct ext4_xattr_ref *ref)
 
int ext4_fs_put_xattr_ref (struct ext4_xattr_ref *ref)
 
int ext4_fs_set_xattr (struct ext4_xattr_ref *ref, __u8 name_index, const char *name, size_t name_len, const void *data, size_t data_size, BOOL replace)
 
int ext4_fs_set_xattr_ordered (struct ext4_xattr_ref *ref, __u8 name_index, const char *name, size_t name_len, const void *data, size_t data_size)
 
int ext4_fs_remove_xattr (struct ext4_xattr_ref *ref, __u8 name_index, const char *name, size_t name_len)
 
int ext4_fs_get_xattr (struct ext4_xattr_ref *ref, __u8 name_index, const char *name, size_t name_len, void *buf, size_t buf_size, size_t *data_size)
 
void ext4_fs_xattr_iterate (struct ext4_xattr_ref *ref, int(*iter)(struct ext4_xattr_ref *ref, struct ext4_xattr_item *item, BOOL is_last))
 
void ext4_fs_xattr_iterate_reset (struct ext4_xattr_ref *ref)
 
const charext4_extract_xattr_name (const char *full_name, size_t full_name_len, __u8 *name_index, size_t *name_len, BOOL *found)
 
const charext4_get_xattr_name_prefix (__u8 name_index, size_t *ret_prefix_len)
 
void ext4_xattr_purge_items (struct ext4_xattr_ref *xattr_ref)
 

Detailed Description

Extended Attribute manipulation.

Definition in file ext4_xattr.h.