]> www.infradead.org Git - mtd-utils.git/commit
ubifs-utils: Import UBIFS libs from linux kernel
authorZhihao Cheng <chengzhihao1@huawei.com>
Mon, 11 Nov 2024 08:36:40 +0000 (16:36 +0800)
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>
Mon, 11 Nov 2024 09:32:45 +0000 (10:32 +0100)
commit898499314c7073bbf6851db6542858921aeb6580
tree47d5be2461db6664852ba93deb1800e4d51c9767
parentb88ce3ced2123752f6da25abba119ae117bcc771
ubifs-utils: Import UBIFS libs from linux kernel

Import UBIFS libs from linux kernel. Next patches will replace ubifs
related source code with implementation of linux kernel, which makes
userspace implementation be same with linux kernel, then fsck.ubifs
can resuse the code.

Notice: lpt.c is modified with [1] applied. ubifs.h and orphan.c are
modified with [2] applied, journal.c is modified with [3] reverted(
because fsck runs in a single thread, so waitqueue is not needed to
be implemented in userspace.).
[1] https://lore.kernel.org/linux-mtd/20231228014112.2836317-13-chengzhihao1@huawei.com/
[2] https://lore.kernel.org/linux-mtd/20240410073751.2522830-1-chengzhihao1@huawei.com/
[3] https://lore.kernel.org/linux-mtd/20240122063103.359501-1-chengzhihao1@huawei.com/

Signed-off-by: Zhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
27 files changed:
ubifs-utils/libubifs/auth.c [new file with mode: 0644]
ubifs-utils/libubifs/budget.c [new file with mode: 0644]
ubifs-utils/libubifs/commit.c [new file with mode: 0644]
ubifs-utils/libubifs/debug.c [new file with mode: 0644]
ubifs-utils/libubifs/debug.h [new file with mode: 0644]
ubifs-utils/libubifs/dir.c [new file with mode: 0644]
ubifs-utils/libubifs/find.c [new file with mode: 0644]
ubifs-utils/libubifs/gc.c [new file with mode: 0644]
ubifs-utils/libubifs/io.c [new file with mode: 0644]
ubifs-utils/libubifs/journal.c [new file with mode: 0644]
ubifs-utils/libubifs/key.h [new file with mode: 0644]
ubifs-utils/libubifs/log.c [new file with mode: 0644]
ubifs-utils/libubifs/lprops.c [new file with mode: 0644]
ubifs-utils/libubifs/lpt.c [new file with mode: 0644]
ubifs-utils/libubifs/lpt_commit.c [new file with mode: 0644]
ubifs-utils/libubifs/master.c [new file with mode: 0644]
ubifs-utils/libubifs/misc.h [new file with mode: 0644]
ubifs-utils/libubifs/orphan.c [new file with mode: 0644]
ubifs-utils/libubifs/recovery.c [new file with mode: 0644]
ubifs-utils/libubifs/replay.c [new file with mode: 0644]
ubifs-utils/libubifs/sb.c [new file with mode: 0644]
ubifs-utils/libubifs/scan.c [new file with mode: 0644]
ubifs-utils/libubifs/super.c [new file with mode: 0644]
ubifs-utils/libubifs/tnc.c [new file with mode: 0644]
ubifs-utils/libubifs/tnc_commit.c [new file with mode: 0644]
ubifs-utils/libubifs/tnc_misc.c [new file with mode: 0644]
ubifs-utils/libubifs/ubifs.h [new file with mode: 0644]