mufs: embed struct mufs_dtree in struct mufs_dentry and clean up code

This commit is contained in:
S.J.R. van Schaik 2017-06-11 16:31:43 +02:00
parent 0bc9c6fc7a
commit 89ec3a94c0
2 changed files with 14 additions and 15 deletions

View file

@ -1,10 +1,14 @@
#pragma once
struct mufs_dentry {
uint8_t type;
struct mufs_dtree {
uint32_t file_size;
uint32_t root;
uint8_t depth;
} __attribute__((packed));
struct mufs_dentry {
uint8_t type;
struct mufs_dtree tree;
uint16_t path_len;
} __attribute__((packed));