Bring in most of makefs(8) from FreeBSD unchanged

Operating Systems / DragonFlyBSD - Sascha Wildner [online.de] - 10 February 2019 10:59 EST

To create filesystem images without kernel involvement. We can use it to create our initrd without needing vn(4).

Originally from NetBSD.

5978408cff Bring in most of makefs(8) from FreeBSD unchanged.
usr.sbin/makefs/Makefile | 38 +
usr.sbin/makefs/cd9660.c | 2133 ++++++++++++++++++++++++++++
usr.sbin/makefs/cd9660.h | 358 +++++
usr.sbin/makefs/cd9660/Makefile.inc | 9 +
usr.sbin/makefs/cd9660/cd9660_archimedes.c | 126 ++
usr.sbin/makefs/cd9660/cd9660_archimedes.h | 52 +
usr.sbin/makefs/cd9660/cd9660_conversion.c | 202 +++
usr.sbin/makefs/cd9660/cd9660_debug.c | 489 +++++++
usr.sbin/makefs/cd9660/cd9660_eltorito.c | 742 ++++++++++
usr.sbin/makefs/cd9660/cd9660_eltorito.h | 168 +++
usr.sbin/makefs/cd9660/cd9660_strings.c | 122 ++
usr.sbin/makefs/cd9660/cd9660_write.c | 514 +++++++
usr.sbin/makefs/cd9660/iso9660_rrip.c | 841 +++++++++++
usr.sbin/makefs/cd9660/iso9660_rrip.h | 294 ++++
usr.sbin/makefs/ffs.c | 1185 ++++++++++++++++
usr.sbin/makefs/ffs.h | 73 +
usr.sbin/makefs/ffs/Makefile.inc | 9 +
usr.sbin/makefs/ffs/buf.c | 216 +++
usr.sbin/makefs/ffs/buf.h | 77 +
usr.sbin/makefs/ffs/ffs_alloc.c | 683 +++++++++
usr.sbin/makefs/ffs/ffs_balloc.c | 580 ++++++++
usr.sbin/makefs/ffs/ffs_bswap.c | 261 ++++
usr.sbin/makefs/ffs/ffs_extern.h | 79 ++
usr.sbin/makefs/ffs/ffs_subr.c | 184 +++
usr.sbin/makefs/ffs/mkfs.c | 837 +++++++++++
usr.sbin/makefs/ffs/newfs_extern.h | 38 +
usr.sbin/makefs/ffs/ufs_bmap.c | 142 ++
usr.sbin/makefs/ffs/ufs_bswap.h | 83 ++
usr.sbin/makefs/ffs/ufs_inode.h | 99 ++
usr.sbin/makefs/makefs.8 | 428 ++++++
usr.sbin/makefs/makefs.c | 506 +++++++
usr.sbin/makefs/makefs.h | 304 ++++
usr.sbin/makefs/mtree.c | 1112 +++++++++++++++
usr.sbin/makefs/walk.c | 698 +++++++++
34 files changed, 13682 insertions(+)

Upstream: gitweb.dragonflybsd.org


  • Share