]> www.infradead.org Git - mtd-utils.git/commit
ubifs-utils: Define PROGRAM_NAME as variable
authorZhihao Cheng <chengzhihao1@huawei.com>
Mon, 11 Nov 2024 08:36:34 +0000 (16:36 +0800)
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>
Mon, 11 Nov 2024 09:32:45 +0000 (10:32 +0100)
commitbc85302b02f8a1af351d05050f9de8a54c68ba09
treee1437e4509aa7184ca76e9db2213e2630b3965e6
parent03ec75b9e6ad4cb372f86d1581c2b1b2ef987c72
ubifs-utils: Define PROGRAM_NAME as variable

PROGRAM_NAME is defined as a const string "mkfs.ubifs", which won't be
suitable for fsck.ubifs. Add 'program_name' member in ubifs_info
structure, define PROGRAM_NAME as ubifs_info.program_name. Then, error
messages will display right program name if fsck.ubifs is supported.
Besides, add 'program_type' member in ubifs_info structure to identify
which current program type is, without comparing program name.

Signed-off-by: Zhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
ubifs-utils/common/crypto.c
ubifs-utils/common/defs.h
ubifs-utils/common/fscrypt.c
ubifs-utils/common/hashtable/hashtable.c
ubifs-utils/common/lpt.c
ubifs-utils/common/ubifs.h
ubifs-utils/mkfs.ubifs/mkfs.ubifs.c