]> www.infradead.org Git - mtd-utils.git/commit
ubifs-utils: Adapt sb.c in libubifs
authorZhihao Cheng <chengzhihao1@huawei.com>
Mon, 11 Nov 2024 08:37:03 +0000 (16:37 +0800)
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>
Mon, 11 Nov 2024 09:32:45 +0000 (10:32 +0100)
commita2662a10e53c132f3a74ba960308fe22c53b0625
treef5d4861e306a75813072a24dea0de40ee04c4bd3
parentf3dc08f6d88e89262433f0582a7750f6ff6791ae
ubifs-utils: Adapt sb.c in libubifs

Adapt sb.c in libubifs, compared with linux kernel implementations:
 1. Remove authentication related implementations
    (eg. authenticate_sb_node), authentication is not supported in fsck
    for now.
 2. Remove some functions(eg. create_default_filesystem) which won't be
    used in fsck/mkfs.
 3. Modify ubifs_read_superblock(), remove some assignments which won't
    be used in mkfs/fsck.
 4. Apapt fixup_leb to ignore %-EBADMSG, subsequent steps will check
    all areas carefully.

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