]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rbd: add rbd object-map check 8562/head
authorDouglas Fuller <dfuller@redhat.com>
Thu, 31 Mar 2016 15:45:41 +0000 (08:45 -0700)
committerDouglas Fuller <dfuller@redhat.com>
Thu, 19 May 2016 13:09:37 +0000 (06:09 -0700)
commita100f02dba53fbfbbb16d87cbaf8ab9db84bbf7e
treeb172049ddf43a0c25c3a97c721c97a8e83621ac8
parent7fcb52d0d363655c1ac2f560acd2b436efc6fc2f
rbd: add rbd object-map check

Add a CLI option to verify the object map for an unmapped image
for debugging purposes. Syntax:

rbd object-map check <image-name>

This operation is not supported on currently mapped images.

Any inconsistencies that could affect the correctness of future
operations are noted and the object map (and fast diff state, if
enabled) is invalidated. Inconsistencies that do not affect
correctness will be emitted at debug level 1 or higher.

Consolidate code path with object-map rebuild and remove newly
unused code.

Fixes: http://tracker.ceph.com/issues/14867
Signed-off-by: Douglas Fuller <dfuller@redhat.com>
src/include/rbd/librbd.hpp
src/librbd/Makefile.am
src/librbd/Operations.cc
src/librbd/Operations.h
src/librbd/librbd.cc
src/librbd/operation/ObjectMapIterate.cc [new file with mode: 0644]
src/librbd/operation/ObjectMapIterate.h [new file with mode: 0644]
src/librbd/operation/RebuildObjectMapRequest.cc
src/test/librbd/test_librbd.cc
src/tools/rbd/action/ObjectMap.cc