git: hammer2 - buildworld components, boot2 and loader support

Matthew Dillon dillon at
Fri Aug 18 01:03:09 PDT 2017

commit 01aea3fd80f7628a3ecbdbd246f0747800900fbb
Author: Matthew Dillon <dillon at>
Date:   Fri Aug 18 00:53:40 2017 -0700

    hammer2 - buildworld components, boot2 and loader support
    * Compile hammer2 components unconditionally in buildworld now.
      Leave conditionals commented out for the moment, they will be
      removed entirely later on.
    * Finish revamping the boot code to properly handle H2 DIRENTs.
      The boot code can now boot from a HAMMER2 'a' partition if desired.
      UFS is no longer required.
    * Change newfs_hammer2, mount_hammer2, and the hammer2 vfs to supply
      a default super-root label if none specified.  Supply "@BOOT" when
      mounting from the 'a' partition, "@ROOT" when mounting from the 'd'
      partition, and "@DATA" when mounting from any other partition.
      mount_hammer2 no longer defaults to using @LOCAL for the label when
      none is specified.  Instead we want hammer2 mounts that fail to supply
      a label to behave in a manner that is more likely to be expected by
      the superuser.
    * Do not yet include hammer2 in X86_64_GENERIC.  At the moment it must
      be supplied in /boot/loader.conf if the user wishes to boot from it.

Summary of changes:
 lib/Makefile                       |  4 ++--
 lib/libstand/hammer2.c             | 10 +++++++---
 sbin/Makefile                      |  4 ++--
 sbin/mount_hammer2/mount_hammer2.c | 32 ++++++++++++++++++++++++++------
 sbin/newfs_hammer2/newfs_hammer2.c |  8 +++-----
 sys/vfs/Makefile                   |  4 ++--
 sys/vfs/hammer2/hammer2_vfsops.c   | 26 +++++++++++++++++++++++---
 7 files changed, 65 insertions(+), 23 deletions(-)

DragonFly BSD source repository

More information about the Commits mailing list