Plan 9 from Bell Labs’s /usr/web/sources/patch/applied/keep-mkfs-sync/readme
make mkfs cope with growing or shrinking files in the source tree by copying exactly the number of bytes it claimed in the archive header it wrote (as tar does), padding or truncating as necessary.