git: hammer2 - recover op, improve performance
Matthew Dillon
dillon at crater.dragonflybsd.org
Fri Sep 29 17:34:35 PDT 2023
commit b601e4dfb061508762c5a803e4e05825be6b9043
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Fri Sep 29 17:31:22 2023 -0700
hammer2 - recover op, improve performance
* Very large numbers of distinct copies of root inodes are typically
found, but they still tend to share many indirect directory blocks
between them which we can optimize out and avoid re-scanning.
* Add code to record the blocks (currently linear so it could use some
improvement), avoiding a lot of repeated redundant scans of partially
block-shared directory trees.
* Improve progress reporting to stdout during the restoration pass.
Summary of changes:
sbin/hammer2/cmd_recover.c | 157 +++++++++++++++++++++++++++++++++++++++++----
1 file changed, 145 insertions(+), 12 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/b601e4dfb061508762c5a803e4e05825be6b9043
--
DragonFly BSD source repository
More information about the Commits
mailing list