Displaying 4 results from an estimated 4 matches for "xfs_dir2_leafn_mag".
Did you mean:
xfs_dir2_leafn_magic
2016 Jan 18
1
[PATCH] xfs: Add support for v3 directories
...gt;> xfs_dinode_t *core)
>> {
>
>> - uint32_t hash = 0;
>> + uint32_t hash;
>
>> + uint16_t count;
>
>> - int mid = 0;
>> + int mid;
>
>
>> + if (be16_to_cpu(lhdr->info.magic) == XFS_DIR2_LEAFN_MAGIC) {
>> + 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_MA...
2015 Dec 15
8
[PATCH] xfs: Add support for v3 directories
.../* 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 number: attribute leaf blks */
#define XFS_DIR2_LEAF1_MAGIC 0xd2f1U /* magic number: v2 dirlf single blks */
#define XFS_DIR2_LEAFN_MAGIC 0xd2ffU /* magic number: V2 dirlf multi blks */
+#define XFS_DA3_NODE_MAGIC 0x3ebe /* magic number: non-leaf blocks */
+#define XFS_ATTR3_LEAF_MAGIC 0x3bee /* magic number: attribute leaf blks */
+#define XFS_DIR3_LEAF1_MAGIC 0x3df1 /* magic number: v2 dirlf single blks */
+#define XFS_DIR3_LEA...
2016 Jan 18
0
[PATCH] xfs: Add support for v3 directories
...ind_entry(const char *dname, struct inode *parent,
> xfs_dinode_t *core)
> {
> - uint32_t hash = 0;
> + uint32_t hash;
> + uint16_t count;
> - int mid = 0;
> + int mid;
> + if (be16_to_cpu(lhdr->info.magic) == XFS_DIR2_LEAFN_MAGIC) {
> + 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...
2012 Sep 03
1
[GIT-PULL] XFS filesystem driver
.../* entries */
+} __attribute__((__packed__)) xfs_dir2_leaf_t;
+
+#define XFS_DA_NODE_MAGIC 0xfebeU /* magic number: non-leaf blocks */
+#define XFS_ATTR_LEAF_MAGIC 0xfbeeU /* magic number: attribute leaf blks */
+#define XFS_DIR2_LEAF1_MAGIC 0xd2f1U /* magic number: v2 dirlf single blks */
+#define XFS_DIR2_LEAFN_MAGIC 0xd2ffU /* magic number: V2 dirlf multi blks */
+
+typedef struct xfs_da_intnode {
+ struct xfs_da_node_hdr { /* constant-structure header block */
+ xfs_da_blkinfo_t info; /* block type, links, etc. */
+ uint16_t count; /* count of active entries */
+ uint16_t level; /* level above leaves (...