aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-05-01 02:09:27 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-05-02 12:40:06 +0200
commit083988ab0f58b334fa64e376e6c8231f60894d40 (patch)
tree9a14f0d0549ac2d6e2ed2161d8e479e1f0a16435 /include
parentde9f0a79850df74078b8c104ce1232d40ec9cc1f (diff)
Write inodes to image
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include')
-rw-r--r--include/fstree.h5
-rw-r--r--include/squashfs.h4
2 files changed, 9 insertions, 0 deletions
diff --git a/include/fstree.h b/include/fstree.h
index 68bbc7d..5a8e422 100644
--- a/include/fstree.h
+++ b/include/fstree.h
@@ -33,11 +33,16 @@ struct dir_info_t {
struct tree_node_t {
tree_node_t *next;
+ tree_node_t *parent;
char *name;
uint32_t uid;
uint32_t gid;
uint16_t mode;
+ uint64_t inode_ref;
+ uint32_t inode_num;
+ int type;
+
union {
dir_info_t *dir;
file_info_t *file;
diff --git a/include/squashfs.h b/include/squashfs.h
index 96a558b..30c7d3d 100644
--- a/include/squashfs.h
+++ b/include/squashfs.h
@@ -57,6 +57,10 @@ typedef struct {
typedef struct {
uint32_t nlink;
+} sqfs_inode_ipc_t;
+
+typedef struct {
+ uint32_t nlink;
uint32_t devno;
uint32_t xattr_idx;
} sqfs_inode_dev_ext_t;