]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cephfs-journal-tool: check fsid when import purge queue 22111/head
authorGu Zhongyan <guzhongyan@360.cn>
Mon, 21 May 2018 07:00:38 +0000 (15:00 +0800)
committerGu Zhongyan <guzhongyan@360.cn>
Wed, 23 May 2018 03:50:16 +0000 (11:50 +0800)
commite0eef2aab10747de0efc128133c567204b4d0322
tree4b1c454b7d882ffa39a6ead82971ffeade60c8ba
parent7f04b17234b64712fc32ba77e196be592345988c
cephfs-journal-tool: check fsid when import purge queue
import purge queue will triger file delete in cluster.
we occasionally imported a purge queue from one production
cluster to a test cluster and found the the fs in test cluster
was damaged because some objects are really delted as its inode
recorded in purge queue.

add fsid when exporting purge queue, check if the fsid matched when
importing purge queue. This could make cephfs-journal-tool safer to
handle purge queue issues.

Signed-off-by: Gu Zhongyan <guzhongyan@360.cn>
Signed-off-by: yupeng chen chenyupeng-it@360.cn
src/tools/cephfs/Dumper.cc
src/tools/cephfs/Dumper.h
src/tools/cephfs/JournalTool.cc
src/tools/cephfs/JournalTool.h