aboutsummaryrefslogtreecommitdiff
path: root/include/fstree.h
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2023-04-06 14:53:49 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2023-04-06 18:07:59 +0200
commitc42e4fbbc6b175f843c4d0eeaaa9ead2d0e746b6 (patch)
treeadf2e61d9acdf5e18321d6ba0277dd3428de8fe3 /include/fstree.h
parent23fab1d2b8164a99c5536581bb80769a620c65c0 (diff)
Cleanup: libfstree: move all the hardlink related code to hardlink.c
For some reason, the recursive hardlink resolution ended up in post process, calling into the non recrusive one in hardlink.c that wasn't used elsewhere. Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include/fstree.h')
-rw-r--r--include/fstree.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/fstree.h b/include/fstree.h
index 7abf6f5..430574d 100644
--- a/include/fstree.h
+++ b/include/fstree.h
@@ -208,11 +208,11 @@ tree_node_t *fstree_add_hard_link(fstree_t *fs, const char *path,
const char *target);
/*
- Resolve a hard link node and replace it with a direct pointer to the target.
+ Try to resolve all hard links in the tree.
Returns 0 on success. On failure, errno is set.
*/
-int fstree_resolve_hard_link(fstree_t *fs, tree_node_t *node);
+int fstree_resolve_hard_links(fstree_t *fs);
void fstree_insert_sorted(tree_node_t *root, tree_node_t *n);