mirror of
https://github.com/versity/scoutfs.git
synced 2026-09-21 07:24:27 +00:00
Add a BTW_SUBTREE flag to btree_walk() to restrict splitting or joining of the root block. When clients are merging into the root built from a reference to the last parent in the fs tree we want to be careful that we maintain a single root block that can be spliced back into the fs tree. We specifically check that the root block remain within the split/join thresholds. If it falls out of compliance we return an error so that it can be spliced back into the fs tree and then split/joined with its siblings. Signed-off-by: Zach Brown <zab@versity.com>