Skip to content

fix curvine-cli report inode/block error#69

Merged
bigbigxu merged 1 commit intoCurvineIO:mainfrom
201341:swj/fix
Jul 30, 2025
Merged

fix curvine-cli report inode/block error#69
bigbigxu merged 1 commit intoCurvineIO:mainfrom
201341:swj/fix

Conversation

@201341
Copy link
Copy Markdown
Contributor

@201341 201341 commented Jul 29, 2025

Signed-off-by: swj 1186093704@qq.com

for peer in &wm.conf.journal.journal_addrs {
info.journal_nodes.push(peer.to_string())
}
let files = self.list_status("/").unwrap();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't use unwrap here

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix

worker_id: u32,
ctime: u64,
dir_list: DirList,
dir_block_nums: HashMap<u32, i64>,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In fact, we can get the total number of blocks by directly counting the number of block_maps. dir_block_nums should not be needed, and this data is not updated when adding or deleting blocks.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix

@szbr9486
Copy link
Copy Markdown
Contributor

szbr9486 commented Jul 29, 2025 via email

Signed-off-by: swj <1186093704@qq.com>
@bigbigxu bigbigxu merged commit f904dd7 into CurvineIO:main Jul 30, 2025
@lzjqsdd lzjqsdd added the bug Something isn't working label Sep 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants