diff options
author | Zhihao Cheng <chengzhihao1@huawei.com> | 2024-11-11 17:01:15 +0800 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2024-11-11 10:32:46 +0100 |
commit | 2c7404fc8fd6c12bb8179147ff47c864819f4b35 (patch) | |
tree | 4f29a0ed09d7a36154ead86abbcdc52cd81a581c /ubifs-utils/libubifs | |
parent | fe2784abac3a0b26ec2ae899156f5c840231d1b6 (diff) |
fsck.ubifs: rebuild_fs: Re-write data
This is the 8/12 step of rebuilding. Re-write data. Read data from
LEB and write back data, make sure that all LEB is ended with empty
data(0xFF). It will prevent failed gc scanning in next mounting.
Signed-off-by: Zhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'ubifs-utils/libubifs')
-rw-r--r-- | ubifs-utils/libubifs/ubifs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ubifs-utils/libubifs/ubifs.h b/ubifs-utils/libubifs/ubifs.h index e6de7ce..c9d582d 100644 --- a/ubifs-utils/libubifs/ubifs.h +++ b/ubifs-utils/libubifs/ubifs.h @@ -337,6 +337,7 @@ enum { * @dirty: amount of dirty space in bytes * @flags: LEB properties flags (see above) * @lnum: LEB number + * @end: the end postition of LEB calculated by the last node * @list: list of same-category lprops (for LPROPS_EMPTY and LPROPS_FREEABLE) * @hpos: heap position in heap of same-category lprops (other categories) */ @@ -345,6 +346,7 @@ struct ubifs_lprops { int dirty; int flags; int lnum; + int end; union { struct list_head list; int hpos; |