]> www.infradead.org Git - mtd-utils.git/commit
ubifs-utils: Add 'dev_fd' and 'libubi' into 'ubifs_info' structure
authorZhihao Cheng <chengzhihao1@huawei.com>
Mon, 11 Nov 2024 08:36:38 +0000 (16:36 +0800)
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>
Mon, 11 Nov 2024 09:32:45 +0000 (10:32 +0100)
commit0d1c454bfcbbe90f6fe9930f1c68f259bd66b114
tree4d23eef04a83c14adf17f4293ed946bd8e5caace
parentf3bacdcd9cdfbe4f9861767258b359aba4db3f80
ubifs-utils: Add 'dev_fd' and 'libubi' into 'ubifs_info' structure

Embed new members 'dev_fd' and 'libubi' into ubifs_info structure, so
that global variable 'ubi', 'out_fd' and 'out_ubi' could be removed
from mkfs.ubifs.c. Besides, add parameter in check_volume_empty().
Next patch will extract UBI opening/closing/check_volume_empty functions
into a new source file, these functions will be used in fsck.

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