diff options
| author | gkostka <kostka.grzegorz@gmail.com> | 2017-05-20 08:39:52 +0200 |
|---|---|---|
| committer | gkostka <kostka.grzegorz@gmail.com> | 2017-05-20 09:15:15 +0200 |
| commit | b1a34c56f4556f256fc16096190e77b69a715197 (patch) | |
| tree | 024cea39fddfe9f336f13995c5b3bcd7ecdfa241 /include/ext4_xattr.h | |
| parent | c8978f9dba53333004f3f20e5acc57df8867dc16 (diff) | |
Make ext4_xattr & ext4_extents GPL licensed
Diffstat (limited to 'include/ext4_xattr.h')
| -rw-r--r-- | include/ext4_xattr.h | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/include/ext4_xattr.h b/include/ext4_xattr.h index 5427d3a..d79febc 100644 --- a/include/ext4_xattr.h +++ b/include/ext4_xattr.h @@ -77,32 +77,6 @@ struct ext4_xattr_search { bool not_found; }; -#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) \ - (((name_len) + EXT4_XATTR_ROUND + sizeof(struct ext4_xattr_entry)) & \ - ~EXT4_XATTR_ROUND) -#define EXT4_XATTR_NEXT(entry) \ - ((struct ext4_xattr_entry *)((char *)(entry) + \ - EXT4_XATTR_LEN((entry)->e_name_len))) -#define EXT4_XATTR_SIZE(size) (((size) + EXT4_XATTR_ROUND) & ~EXT4_XATTR_ROUND) -#define EXT4_XATTR_NAME(entry) ((char *)((entry) + 1)) - -#define EXT4_XATTR_IHDR(sb, raw_inode) \ - ((struct ext4_xattr_ibody_header *)((char *)raw_inode + \ - EXT4_GOOD_OLD_INODE_SIZE + \ - ext4_inode_get_extra_isize( \ - sb, raw_inode))) -#define EXT4_XATTR_IFIRST(hdr) ((struct ext4_xattr_entry *)((hdr) + 1)) - -#define EXT4_XATTR_BHDR(block) ((struct ext4_xattr_header *)((block)->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) (*(uint32_t *)(entry) == 0) - -#define EXT4_ZERO_XATTR_VALUE ((void *)-1) - const char *ext4_extract_xattr_name(const char *full_name, size_t full_name_len, uint8_t *name_index, size_t *name_len, bool *found); |
