diff options
author | Zhihao Cheng <chengzhihao1@huawei.com> | 2024-11-11 17:01:14 +0800 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2024-11-11 10:32:46 +0100 |
commit | fe2784abac3a0b26ec2ae899156f5c840231d1b6 (patch) | |
tree | fed2f22e9f5310103c5a319eef3b99e142ba9f42 /ubifs-utils/fsck.ubifs/fsck.ubifs.h | |
parent | 7ff702596bd5590a93ae55d217753fe4b671c6f4 (diff) |
fsck.ubifs: rebuild_fs: Record used LEBs
This is the 7/12 step of rebuilding. Record used LEBs which may hold
useful nodes, then left unused LEBs could be taken for storing new index
tree. Notice, LEB that contains effective nodes on deleted trees in step
1 is regarded as used.
Signed-off-by: Zhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'ubifs-utils/fsck.ubifs/fsck.ubifs.h')
-rw-r--r-- | ubifs-utils/fsck.ubifs/fsck.ubifs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ubifs-utils/fsck.ubifs/fsck.ubifs.h b/ubifs-utils/fsck.ubifs/fsck.ubifs.h index bb5d1c4..a3b755b 100644 --- a/ubifs-utils/fsck.ubifs/fsck.ubifs.h +++ b/ubifs-utils/fsck.ubifs/fsck.ubifs.h @@ -180,9 +180,11 @@ struct scanned_file { /** * ubifs_rebuild_info - UBIFS rebuilding information. + * @used_lebs: a bitmap used for recording used lebs * @scanned_files: tree of all scanned files */ struct ubifs_rebuild_info { + unsigned long *used_lebs; struct rb_root scanned_files; }; |