Displaying 3 results from an estimated 3 matches for "xfs_dir3_leaf_hdr_t".
2016 Jan 18
1
[PATCH] xfs: Add support for v3 directories
...r->count);
>> + ents = (xfs_dir2_leaf_entry_t *)((uint8_t *)lhdr +
>> + sizeof(struct
>> xfs_dir2_leaf_hdr));
>> + } else if (be16_to_cpu(lhdr->info.magic) == XFS_DIR3_LEAFN_MAGIC) {
>> + count = be16_to_cpu(((xfs_dir3_leaf_hdr_t *)lhdr)->count);
>> + ents = (xfs_dir2_leaf_entry_t *)((uint8_t *)lhdr +
>> + sizeof(struct
>> xfs_dir3_leaf_hdr));
>> + } else {
>> + xfs_error("Leaf's magic number does not match (0x%04x)!",
>...
2015 Dec 15
8
[PATCH] xfs: Add support for v3 directories
...s_da3_blkinfo_t;
+
+typedef struct xfs_dir3_leaf_hdr {
+ xfs_da3_blkinfo_t info; /* header for da routines */
+ uint16_t count; /* count of entries */
+ uint16_t stale; /* count of stale entries */
+ uint32_t pad; /* 64 bit alignment */
+} __attribute__((__packed__)) xfs_dir3_leaf_hdr_t;
+
+typedef struct xfs_dir3_leaf {
+ xfs_dir3_leaf_hdr_t hdr; /* leaf header */
+ xfs_dir2_leaf_entry_t ents[]; /* entries */
+} __attribute__((__packed__)) xfs_dir3_leaf_t;
+
#define XFS_DA_NODE_MAGIC 0xfebeU /* magic number: non-leaf blocks */
#define XFS_ATTR_LEAF_MAGIC 0xfbeeU /* magic...
2016 Jan 18
0
[PATCH] xfs: Add support for v3 directories
...count = be16_to_cpu(lhdr->count);
> + ents = (xfs_dir2_leaf_entry_t *)((uint8_t *)lhdr +
> + sizeof(struct xfs_dir2_leaf_hdr));
> + } else if (be16_to_cpu(lhdr->info.magic) == XFS_DIR3_LEAFN_MAGIC) {
> + count = be16_to_cpu(((xfs_dir3_leaf_hdr_t *)lhdr)->count);
> + ents = (xfs_dir2_leaf_entry_t *)((uint8_t *)lhdr +
> + sizeof(struct xfs_dir3_leaf_hdr));
> + } else {
> + xfs_error("Leaf's magic number does not match (0x%04x)!",
> + be16_t...