summaryrefslogtreecommitdiff
path: root/include/fstree.h
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-05-12 11:30:22 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-05-19 14:27:34 +0200
commit0e7fba27a26694f6babe5bd5de93733760cd770d (patch)
treeb8ed2424ad47a989ca9cacea8c3bc1a82b86eabf /include/fstree.h
parent28b24512622785d1634a089f7d1d5c25edfb7577 (diff)
Add xattr indices to inodes
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include/fstree.h')
-rw-r--r--include/fstree.h14
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