Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

99.9. f2fs-tools-1.16.0

Tools to create, check and resize an F2FS filesystem

1.16.0-1 · GPL-2.0-only AND (GPL-2.0-only OR LGPL-2.1-only) · 0.5 SBU · 737.5 KiB, 29 files · 41_system, 509 of 1047 · ports/core/filesystem/f2fs-tools

Homepage: https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-tools.git/

Why it is in KDOS. The comment above the 5 ports from exfatprogs to xfsprogs in script/phases/41_system/packages.d/filesystem.txt:

The kernel mounts btrfs, xfs, f2fs, ntfs3 and exfat, and these are what create them. kinstall's filesystem menu depends on them.

Depends on: autoconf, automake, libtool, pkgconf, util-linux, lz4, lzo, libbsd.

Required by (3): gparted, kpmcore, libblockdev.

Sources: f2fs-tools-1.16.0.tar.gz (259.3 KiB). Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install f2fs-tools'

build.sh:

autoreconf -f -i -s

export CPPFLAGS="${CPPFLAGS:-} -DHAVE_LSEEK64=1"

export CFLAGS="${CFLAGS:-} -std=gnu17"

./configure \
	ac_cv_lib_uuid_uuid_clear=yes \
	--prefix=/usr \
	--libdir=/usr/lib \
	--sbindir=/usr/sbin \
	--disable-static \
	--with-blkid \
	--with-lz4 \
	--with-lzo2 \
	--without-selinux
make
make DESTDIR=$PKG install

Programs: defrag.f2fs, dump.f2fs, f2fs_io, f2fscrypt, f2fslabel, fibmap.f2fs, fsck.f2fs, mkfs.f2fs, parse.f2fs, resize.f2fs, sload.f2fs.

Libraries: libf2fs.so, libf2fs_format.so.

Directories: /usr/share/licenses/f2fs-tools.