Displaying 3 results from an estimated 3 matches for "xfs_dir3_leaf_hdr".
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)!",
&g...
2015 Dec 15
8
[PATCH] xfs: Add support for v3 directories
.../* CRC of block */
+ uint64_t blkno; /* first block of the buffer */
+ uint64_t lsn; /* sequence number of last write */
+ uuid_t uuid; /* filesystem we belong to */
+ uint64_t owner; /* inode that owns the block */
+} __attribute__((__packed__)) xfs_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...
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...