mirror of
https://gitee.com/openharmony/third_party_f2fs-tools
synced 2024-11-23 10:10:00 +00:00
fsck.f2fs: add segment type in sit_dump
Add segment type information in sit_dump: [sit_dump: 48] SIT[0x12905] : 0x 1 : 0 [sit_dump: 48] SIT[0x12906] : 0x 1 : 5 [sit_dump: 48] SIT[0x12907] : 0x 7 : 4 [sit_dump: 48] SIT[0x12908] : 0x 1 : 3 The last column output message on behalf of segment type like CURSEG_XXX_TYPE. Signed-off-by: Yunlei He <heyunlei@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
parent
ca1436eeef
commit
e9f8ae8b3e
@ -45,7 +45,7 @@ void sit_dump(struct f2fs_sb_info *sbi, int start_sit, int end_sit)
|
||||
ret = write(fd, buf, strlen(buf));
|
||||
ASSERT(ret >= 0);
|
||||
|
||||
DBG(4, "SIT[0x%3x] : 0x%x\n", segno, se->valid_blocks);
|
||||
DBG(4, "SIT[0x%3x] : 0x%3x : %d\n", segno, se->valid_blocks, se->type);
|
||||
if (se->valid_blocks == 0x0) {
|
||||
free_segs++;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user