diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-05-20 12:18:54 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-05-20 12:18:54 +0200 |
commit | ce33fefd5c0e4238855551e6f5f75fc106f141b7 (patch) | |
tree | dcbbec069a1b7448af92835ea2faf59ef72fe406 /include | |
parent | fce20510810cd8f5e078cecd113bbcacd2d71516 (diff) |
cleanup: remove squashfs type from fstree nodes
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include')
-rw-r--r-- | include/fstree.h | 14 | ||||
-rw-r--r-- | include/squashfs.h | 2 |
2 files changed, 1 insertions, 15 deletions
diff --git a/include/fstree.h b/include/fstree.h index 27cb39d..6a29093 100644 --- a/include/fstree.h +++ b/include/fstree.h @@ -133,20 +133,6 @@ struct tree_node_t { /* Inode number. Generated on the fly when writing inodes. */ uint32_t inode_num; - /* SquashFS inode type used for this tree node. - - Generated on the fly when writing inodes. It can't be easily - determined in advance since it depends also on the size of the - node, which means for directories the size of the directory - entries once written to disk. - - All code that actually processes tree nodes should use the mode - field instead (mode & S_IFMT gives us the node type). It is stored - here when generating inodes since we need it later on to generate - directory entries. - */ - int type; - /* Type specific data. Pointers are into payload area blow. */ union { dir_info_t *dir; diff --git a/include/squashfs.h b/include/squashfs.h index f9df73d..ed3fd38 100644 --- a/include/squashfs.h +++ b/include/squashfs.h @@ -13,7 +13,7 @@ #define SQFS_DEVBLK_SIZE 4096 #define SQFS_MAX_DIR_ENT 256 -#define SQFS_DIR_TYPE_MOD 8 +#define SQFS_INODE_EXT_TYPE(type) ((type) - 1 + 8) typedef struct { uint32_t magic; |