Like a simplfied 'dd' with extra security checks!
Find a file
2026-02-04 23:49:13 +01:00
.gitignore Initial 2026-02-04 22:59:39 +01:00
LICENSE BSD 2-Clause 2026-02-04 23:22:53 +01:00
Makefile Initial 2026-02-04 22:59:39 +01:00
README.txt Links 2026-02-04 23:22:58 +01:00
writeimg.c Convert wjob to a singleton of type write_job 2026-02-04 23:49:13 +01:00

Simple dd-like image writer with additional security checks.

dd if=/dev/zero of=./disk.img bs=1M count=1024
losetup -fP ./disk.img
losetup -a
losedup -d /dev/loop0

See:
    https://github.com/landley/toybox/blob/master/toys/posix/dd.c
    https://github.com/illiliti/libudev-zero
    https://github.com/LoupVaillant/Monocypher