]> www.infradead.org Git - mtd-utils.git/commit
mkfs.ubifs: Clear direct_write property when closing target
authorZhihao Cheng <chengzhihao1@huawei.com>
Wed, 7 Feb 2024 01:29:43 +0000 (09:29 +0800)
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>
Wed, 25 Sep 2024 07:08:41 +0000 (09:08 +0200)
commit1ffb962afe2239ac02e3890df29653d84f07b104
tree17129f528be977bdd21294a1bc0c444f1ce41e21
parentde1386406f5130876be25d9fbee685fb9f0b3020
mkfs.ubifs: Clear direct_write property when closing target

Direct writing is not allowd on an UBI volume, unless the volume is set
with direct_write property. The open_target sets direct_write property,
don't forget to clear direct_write property for UBI volume when closing
target.

Fixes: a48340c335dab ("mkfs.ubifs: use libubi to format UBI volume")
Signed-off-by: Zhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
ubifs-utils/mkfs.ubifs/mkfs.ubifs.c