]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
tools: add cephfs-table-tool 'take_inos' 6655/head
authorJohn Spray <john.spray@redhat.com>
Thu, 19 Nov 2015 10:23:28 +0000 (10:23 +0000)
committerJohn Spray <john.spray@redhat.com>
Wed, 25 Nov 2015 20:04:57 +0000 (20:04 +0000)
commit7a8fd0eabd8b4e7e92c1497ab1b9e6c30d0e374f
tree0d1bb6013a01cb5f2b6f182a1af7a853881b05ef
parentb2f2e6c84e89e3b5f02b5a97e8659d9338f9f772
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>
src/mds/InoTable.h
src/tools/cephfs/TableTool.cc
src/tools/cephfs/TableTool.h