diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-05-12 11:30:22 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-05-19 14:27:34 +0200 |
commit | 0e7fba27a26694f6babe5bd5de93733760cd770d (patch) | |
tree | b8ed2424ad47a989ca9cacea8c3bc1a82b86eabf /include | |
parent | 28b24512622785d1634a089f7d1d5c25edfb7577 (diff) |
Add xattr indices to inodes
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include')
-rw-r--r-- | include/fstree.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/fstree.h b/include/fstree.h index a7d19c2..96294b8 100644 --- a/include/fstree.h +++ b/include/fstree.h @@ -29,6 +29,11 @@ struct tree_xattr_t { size_t max_attr; /** + * @brief Incremental index within all xattr blocks + */ + size_t index; + + /** * @brief Back reference to the tree node this was created for */ tree_node_t *owner; @@ -350,6 +355,15 @@ int fstree_add_xattr(fstree_t *fs, tree_node_t *node, const char *key, const char *value); /** + * @brief Recompute index number of all xattr blocks + * + * @memberof fstree_t + * + * @param fs A pointer to the fstree object + */ +void fstree_xattr_reindex(fstree_t *fs); + +/** * @brief Remove dupliciate xattr listings * * @memberof fstree_t |