Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cephfs-journal-tool: get and check layout info during dump/undump
when cephfs-journal-tool import journal, it uses default layout to get object_size, this is wrong. Because default objetct_size can be changed by Config option change mds_log_segment_size when cluster initialized. The fix is save the layout info to header during journal export, When improt journal, first try to get layout from cluster, if failed, then get layout info from dumped journal file, if still failed, set layout to default. Signed-off-by: Gu Zhongyan <guzhongyan@360.cn> Signed-off-by: yupeng chen chenyupeng-it@360.cn
- Loading branch information
1 parent
7f04b17
commit c731f18
Showing
1 changed file
with
49 additions
and
4 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