]> www.infradead.org Git - mtd-utils.git/commit
ubifs-utils: Decouple mkfs.ubifs.h out of other modules
authorZhihao Cheng <chengzhihao1@huawei.com>
Mon, 11 Nov 2024 08:36:33 +0000 (16:36 +0800)
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>
Mon, 11 Nov 2024 09:32:45 +0000 (10:32 +0100)
commit03ec75b9e6ad4cb372f86d1581c2b1b2ef987c72
tree4d5e45faa1772cbb5b07e5dc0a78a4398de11d11
parente7e19cd9d8cc0f54ca463c4aebf7c4ef5e4f84f8
ubifs-utils: Decouple mkfs.ubifs.h out of other modules

Header file mkfs.ubifs.h is included in other modules(eg. compr.c, lpt.c,
fscrypt.h, sign.c), decouple it out of other modules.

There are two parts in mkfs.ubifs.h:
1. common functions, for example dbg_msg, err_msg and write_leb, move
   these functions into common/defs.h and common/ubifs.h.
2. devtable related definations, move them into a new header file
   common/devtable.h.

Splitting common functions from mkfs.ubifs.h is also a preparation for
importing libubifs(from linux kernel) to replace current UBIFS libs.

Signed-off-by: Zhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
14 files changed:
ubifs-utils/Makemodule.am
ubifs-utils/common/compr.c
ubifs-utils/common/compr.h
ubifs-utils/common/crypto.c
ubifs-utils/common/defs.h
ubifs-utils/common/devtable.c
ubifs-utils/common/devtable.h [moved from ubifs-utils/mkfs.ubifs/mkfs.ubifs.h with 53% similarity]
ubifs-utils/common/fscrypt.c
ubifs-utils/common/fscrypt.h
ubifs-utils/common/lpt.c
ubifs-utils/common/lpt.h
ubifs-utils/common/sign.c
ubifs-utils/common/ubifs.h
ubifs-utils/mkfs.ubifs/mkfs.ubifs.c