aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/fstree.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/fstree.h b/include/fstree.h
index 7f81cf5..6628540 100644
--- a/include/fstree.h
+++ b/include/fstree.h
@@ -91,6 +91,9 @@ struct fstree_t {
struct stat defaults;
size_t unique_inode_count;
+ /* flat array of all nodes that have an inode number */
+ tree_node_t **inodes;
+
tree_node_t *root;
/* linear linked list of all regular files */
@@ -169,6 +172,9 @@ int fstree_from_file(fstree_t *fs, const char *filename, FILE *fp);
The total inode count is stored in unique_inode_count. The head of the file
list is pointed to by fs->files.
+ The "inodes" array is allocated and each node that has an inode number is
+ mapped into the array at index inode_num - 1.
+
Returns 0 on success, prints to stderr on failure.
*/
int fstree_post_process(fstree_t *fs);