]> www.infradead.org Git - mtd-utils.git/commit
fsck.ubifs: rebuild_fs: Build LPT
authorZhihao Cheng <chengzhihao1@huawei.com>
Mon, 11 Nov 2024 09:01:18 +0000 (17:01 +0800)
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>
Mon, 11 Nov 2024 09:32:46 +0000 (10:32 +0100)
commit63d20acc274acfb7eadc23a9d87bce5497fda8bb
treec79efea1b09e82fd5e881550a29bc9f172c5843d
parent13a0efb2217ead2cf5c62b5f195284fa26de9bd8
fsck.ubifs: rebuild_fs: Build LPT

This is the 10/12 step of rebuilding. All LEBs' properties can be
calculated in previous steps according to all nodes' position, then
construct LPT just like mkfs does, and write LPT on flash.

Signed-off-by: Zhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
ubifs-utils/fsck.ubifs/fsck.ubifs.h
ubifs-utils/fsck.ubifs/rebuild_fs.c
ubifs-utils/libubifs/ubifs.h