git: makefs(8): DragonFly porting.

Sascha Wildner swildner at crater.dragonflybsd.org
Sun Feb 10 03:07:16 PST 2019


commit 811c20360d3976dd91a7d45accefc6ccb109f33b
Author: Sascha Wildner <saw at online.de>
Date:   Sun Feb 10 10:01:52 2019 +0100

    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.

Summary of changes:
 sbin/newfs/newfs.8                         |   3 +-
 usr.sbin/Makefile                          |   1 +
 usr.sbin/makefs/Makefile                   |  29 ++++-----
 usr.sbin/makefs/cd9660.c                   |   6 +-
 usr.sbin/makefs/cd9660/Makefile.inc        |   4 +-
 usr.sbin/makefs/cd9660/cd9660_archimedes.c |   5 +-
 usr.sbin/makefs/cd9660/cd9660_conversion.c |   5 +-
 usr.sbin/makefs/cd9660/cd9660_debug.c      |   4 +-
 usr.sbin/makefs/cd9660/cd9660_eltorito.c   |   5 +-
 usr.sbin/makefs/cd9660/cd9660_strings.c    |   4 +-
 usr.sbin/makefs/cd9660/cd9660_write.c      |   5 +-
 usr.sbin/makefs/cd9660/iso9660_rrip.c      |   5 +-
 usr.sbin/makefs/ffs.c                      |  51 +++++++++++++--
 usr.sbin/makefs/ffs.h                      |  60 +++++++++++++++++
 usr.sbin/makefs/ffs/Makefile.inc           |   2 +-
 usr.sbin/makefs/ffs/buf.c                  |   9 ++-
 usr.sbin/makefs/ffs/buf.h                  |  10 +--
 usr.sbin/makefs/ffs/ffs_alloc.c            |  67 +++++++++++--------
 usr.sbin/makefs/ffs/ffs_balloc.c           |  14 ++--
 usr.sbin/makefs/ffs/ffs_bswap.c            |  16 ++++-
 usr.sbin/makefs/ffs/ffs_extern.h           |  16 +++--
 usr.sbin/makefs/ffs/ffs_subr.c             |   4 +-
 usr.sbin/makefs/ffs/mkfs.c                 | 100 ++++++++++++++++++++++++++---
 usr.sbin/makefs/ffs/newfs_extern.h         |   4 +-
 usr.sbin/makefs/ffs/ufs_bmap.c             |   8 +--
 usr.sbin/makefs/ffs/ufs_inode.h            |   8 +++
 usr.sbin/makefs/makefs.8                   |   9 +--
 usr.sbin/makefs/makefs.c                   |   5 +-
 usr.sbin/makefs/makefs.h                   |   6 ++
 usr.sbin/makefs/mtree.c                    |   5 +-
 usr.sbin/makefs/walk.c                     |   5 +-
 31 files changed, 346 insertions(+), 129 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/811c20360d3976dd91a7d45accefc6ccb109f33b


-- 
DragonFly BSD source repository


More information about the Commits mailing list