Signed-off-by: Grzegorz Blach <grzegorz@blach.pl>
[Thomas: split from the initial patch from Grzegorz, reworded
Config.in help text]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
cold files. The default list includes most of multimedia
file extensions such as jpg, gif, mpeg, mkv, and so on.
+config BR2_TARGET_ROOTFS_F2FS_OVERPROVISION
+ int "overprovision ratio"
+ default 0
+ help
+ The percentage over the volume size for overprovision
+ area. This area is hidden to users, and utilized by F2FS
+ cleaner.
+
+ Leave at 0 to use the default overprovision ratio of
+ mkfs.f2fs.
+
endif # BR2_TARGET_ROOTFS_F2FS
# ")
F2FS_COLD_FILES = $(call qstrip,$(BR2_TARGET_ROOTFS_F2FS_COLD_FILES))
+ifneq ($(BR2_TARGET_ROOTFS_F2FS_OVERPROVISION),0)
+F2FS_OVERPROVISION = $(BR2_TARGET_ROOTFS_F2FS_OVERPROVISION)
+endif
+
F2FS_OPTS = \
-f \
-l "$(F2FS_LABEL)" \
- $(if $(F2FS_COLD_FILES),-e "$(F2FS_COLD_FILES)")
+ $(if $(F2FS_COLD_FILES),-e "$(F2FS_COLD_FILES)") \
+ $(if $(F2FS_OVERPROVISION),-o $(F2FS_OVERPROVISION))
ROOTFS_F2FS_DEPENDENCIES = host-f2fs-tools