Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tools: add cephfs-table-tool 'take_inos'
For when your InoTable is wrong, and you want to bluntly mark all the inos up to the highest you've seen as in use. You'll waste some inos by marking in use when they're really not, but you'll guarantee that the system won't try and re-use an ino that's really already used by a file. Since this breaks the mould of the apply_rank_fn prototype, and I'm using lambdas here now, also go ahead and convert the other actions to be lambdas instead of having lots of _reset_foo_table boilerplate at class scope. Signed-off-by: John Spray <john.spray@redhat.com>
- Loading branch information
John Spray
committed
Nov 19, 2015
1 parent
b2f2e6c
commit d1cbebd
Showing
3 changed files
with
167 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters