98.16. f3-10.0
Tests a flash drive's real capacity, detecting counterfeit drives
10.0-1 · GPL-3.0-only · 0.1 SBU · 454.3 KiB, 8 files · 41_system, 397 of 1047 · ports/core/disk/f3
Homepage: https://fight-flash-fraud.readthedocs.io/
Why it is in KDOS. The comment above it in script/phases/41_system/packages.d/disk.txt:
A counterfeit stick wraps its writes over the same cells: every copy completes, every checksum at write time passes, and the corpus is gone months later. On a distro whose medium IS the library that is the failure mode f3 exists for.
Depends on: pkgconf, parted, eudev, argp-standalone.
Required by: no port names it.
Sources: f3-10.0.tar.gz (81.0 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 f3'
build.sh:
export LDFLAGS="$LDFLAGS -largp"
f3_cflags="$CFLAGS -std=c17 -Wall -Wextra -pedantic -MMD"
make CFLAGS="$f3_cflags"
make DESTDIR=$PKG PREFIX=/usr CFLAGS="$f3_cflags" install
make extra CFLAGS="$f3_cflags"
make DESTDIR=$PKG PREFIX=/usr CFLAGS="$f3_cflags" install-extra
Programs: f3brew, f3fix, f3probe, f3read, f3write.
Directories: /usr/share/licenses/f3.