File system image builder

NetBSD includes a tool -- makefs -- for creating a filesystem image from a directory tree. This was written by Luke Mewburn as part of the "build.sh" cross-building system.

This tool is useful for any application where one might want to build ffs images, so I've extracted the necessary code from the NetBSD source tree.

This code should build on pretty much any POSIX-ish operating system, and on pretty much any platform; the NetBSD codebase from which this originates is a study in portability.

The latest version is available here with MD5 hash 13e70822316c61d3d85eed3ccff404c5, and in the FreeBSD ports tree as sysutils/makefs.

      This product includes software developed by Christos Zoulas.
      This product includes software developed by Manuel Bouyer.
      This product includes software developed by the University of
      California, Berkeley and its contributors.
      This product includes software developed by the NetBSD
      Foundation, Inc. and its contributors.
      This product includes software developed for the NetBSD Project by
      Wasabi Systems, Inc.