mirror of
https://gitee.com/openharmony/third_party_f2fs-tools
synced 2025-02-17 01:19:53 +00:00
![Jaegeuk Kim](/assets/img/avatar_default.png)
commit 1d2683f551c6d78c325dac7526dea3571879b845 category: bugfix issue: #I6VAS0 CVE: NA Signed-off-by: DongSenhao <dongsenhao2@huawei.com> --------------------------------------- This patch adds a readonly feature on small partitions by eliminating on-disk layout for data writes such as provisioning/reserved space and SSA. This requires f2fs updates to understand RO feature in superblock. Tested 4 cases: sload.f2fs -c -a lz0 -f kernel/fs $DEV sload.f2fs -c -a lz4 -f kernel/fs $DEV sload.f2fs -c -r -a lz4 -f kernel/fs $DEV sload.f2fs -c -L 3 -r -a lz4 -f kernel/fs $DEV after: mkfs.f2fs -O ro,compression,extra_attr -f $DEV fsck.f2fs $DEV Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org> Signed-off-by: dongsenhao <dongsenhao2@huawei.com>