makefs(8): DragonFly porting.
authorSascha Wildner <saw@online.de>
Sun, 10 Feb 2019 09:01:52 +0000 (10:01 +0100)
committerSascha Wildner <saw@online.de>
Sun, 10 Feb 2019 10:59:51 +0000 (11:59 +0100)
commit811c20360d3976dd91a7d45accefc6ccb109f33b
tree7514d9a3d668309522a1a063962ef635cf0ae0f8
parent5978408cff2328494a506cbe167612129b5db833
makefs(8): DragonFly porting.

Some notes:

* UFS2 support has been disabled for now. It would require more UFS2
  related pieces in our UFS kernel headers. I might look at enabling
  this in the future.

* Our CGSIZE() macro causes issues when used in makefs(8), which is
  why I'm using FreeBSD's currently.

* makefs(8) uses a local daddr_t type which is 64 bits wide, since
  ours is 32 bits.

* I added cg_blks() and cg_blktot() calls in a few places because
  our fsck(8) checks them in pass 5. I'm not sure if the associated
  fields are actually needed anymore.
31 files changed:
sbin/newfs/newfs.8
usr.sbin/Makefile
usr.sbin/makefs/Makefile
usr.sbin/makefs/cd9660.c
usr.sbin/makefs/cd9660/Makefile.inc
usr.sbin/makefs/cd9660/cd9660_archimedes.c
usr.sbin/makefs/cd9660/cd9660_conversion.c
usr.sbin/makefs/cd9660/cd9660_debug.c
usr.sbin/makefs/cd9660/cd9660_eltorito.c
usr.sbin/makefs/cd9660/cd9660_strings.c
usr.sbin/makefs/cd9660/cd9660_write.c
usr.sbin/makefs/cd9660/iso9660_rrip.c
usr.sbin/makefs/ffs.c
usr.sbin/makefs/ffs.h
usr.sbin/makefs/ffs/Makefile.inc
usr.sbin/makefs/ffs/buf.c
usr.sbin/makefs/ffs/buf.h
usr.sbin/makefs/ffs/ffs_alloc.c
usr.sbin/makefs/ffs/ffs_balloc.c
usr.sbin/makefs/ffs/ffs_bswap.c
usr.sbin/makefs/ffs/ffs_extern.h
usr.sbin/makefs/ffs/ffs_subr.c
usr.sbin/makefs/ffs/mkfs.c
usr.sbin/makefs/ffs/newfs_extern.h
usr.sbin/makefs/ffs/ufs_bmap.c
usr.sbin/makefs/ffs/ufs_inode.h
usr.sbin/makefs/makefs.8
usr.sbin/makefs/makefs.c
usr.sbin/makefs/makefs.h
usr.sbin/makefs/mtree.c
usr.sbin/makefs/walk.c