git: hammer2 - Require a @label in the device path

Matthew Dillon dillon at crater.dragonflybsd.org
Wed Aug 26 22:22:12 PDT 2015


commit fd8fd3dffce18563283a72d0a28216594479ad69
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Wed Aug 26 20:49:18 2015 -0700

    hammer2 - Require a @label in the device path
    
    * If the user forgets to specify an @label in a hammer2 mount, complain
      in a way that does not leave the user confused.
    
    * newfs_hammer2 no longer creates a "BOOT" and "ROOT" PFS by default.
      It still always creates the "LOCAL" PFS which we may use later to hold
      hammer2 configuration data.
    
      Now hammer2 creates one additional label by default, when no -L option is
      specified, based on the partition from the device path:
    
      'a' - newfs_hammer2 will create a "BOOT" PFS
      'd' - newfs_hammer2 will create a "ROOT" PFS
       *  - newfs_hammer2 will create a "DATA" PFS
    
    * When -L is specified to indicate label(s) to create, newfs_hammer2 no longer
      creates any default labels other than "LOCAL" (which must always be
      created).
    
    * Adjust manual page.

Summary of changes:
 sbin/mount_hammer2/mount_hammer2.c | 10 ++++++++-
 sbin/newfs_hammer2/newfs_hammer2.8 | 42 ++++++++++++++++++++++------------
 sbin/newfs_hammer2/newfs_hammer2.c | 46 ++++++++++++++++++++++++--------------
 3 files changed, 66 insertions(+), 32 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/fd8fd3dffce18563283a72d0a28216594479ad69


-- 
DragonFly BSD source repository



More information about the Commits mailing list