]> www.infradead.org Git - mtd-utils.git/commit
ubiattach: introduce disable_fm in UBI_IOCATT
authorZhihao Cheng <chengzhihao1@huawei.com>
Mon, 13 Nov 2023 09:48:11 +0000 (17:48 +0800)
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>
Mon, 20 Nov 2023 06:43:30 +0000 (07:43 +0100)
commitb4b45994a9ba02d575625e3b1076c337be7d4861
treebf7c3baa93f77236d33b4369523583af911fd7dc
parent71edfe3b5a51ea9a7fac9760804db328ea1ec8a0
ubiattach: introduce disable_fm in UBI_IOCATT

The ioctl UBI_IOCATT has been extended with disable_fm parameter after
[1].

This parameter is used for disabling fastmap for target ubi device.
If 'disable_fm' is set, ubi doesn't create new fastmap even the module
param 'fm_autoconvert' is set, and existed old fastmap will be destroyed
after attaching process.

A simple test case in [2].

[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=669d204469c46e91d99da24914130f78277a71d3
[2] https://bugzilla.kernel.org/show_bug.cgi?id=216278

Signed-off-by: Zhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
include/libubi.h
include/mtd/ubi-user.h
lib/libubi.c
ubi-utils/ubiattach.c