diff options
author | Zhihao Cheng <chengzhihao1@huawei.com> | 2024-11-11 16:36:37 +0800 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2024-11-11 10:32:45 +0100 |
commit | f3bacdcd9cdfbe4f9861767258b359aba4db3f80 (patch) | |
tree | cb4c23426f9259cd6a8f796992f41b37774c2654 /ubifs-utils/common | |
parent | 6a4a0c16329b6649d5eb00d318d8a95503e3597a (diff) |
ubifs-utils: Add 'dev_name' into 'ubifs_info' structure
Embed new member 'dev_name' into 'ubifs_info' structure, then global
variable 'output' can be removed from mkfs.ubifs.c. Next patches will
import UBIFS libs from linux kernel, which could print messages that
contain device information, so this patch can distinguish different
devices according to messages.
Signed-off-by: Zhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'ubifs-utils/common')
-rw-r--r-- | ubifs-utils/common/ubifs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ubifs-utils/common/ubifs.h b/ubifs-utils/common/ubifs.h index 58aaba9..502a39a 100644 --- a/ubifs-utils/common/ubifs.h +++ b/ubifs-utils/common/ubifs.h @@ -277,6 +277,7 @@ struct ubifs_znode * 2 - files, 3 - more details * @program_type: used to identify the type of current program * @program_name: program name + * @dev_name: device name * * @jhead_cnt: count of journal heads * @max_bud_bytes: maximum number of bytes allowed in buds @@ -368,6 +369,7 @@ struct ubifs_info int debug_level; int program_type; const char *program_name; + char *dev_name; int jhead_cnt; long long max_bud_bytes; |