git: hammer2 - Implement 'growfs' directive

Matthew Dillon dillon at crater.dragonflybsd.org
Tue Sep 1 14:27:11 PDT 2020


commit 4599d71eb994551b666f9bbf7c746393c7c4efbc
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Tue Sep 1 14:25:19 2020 -0700

    hammer2 - Implement 'growfs' directive
    
    * Implement the 'growfs' directive, as in:
    
      hammer2 growfs /mnt
    
    * If you resize the partition a hammer2 filesystem resides on, you
      can grow the filesystem into the partition via this command.
    
      The hammer2 filesystem must be mounted to issue this command.
    
    * Note that disklabel partitions can be made larger in-place, even
      with the filesystem using the partition already mounted, as long
      as the drive actually has room to spare.

Summary of changes:
 sbin/hammer2/Makefile                          |  2 +-
 sbin/hammer2/{cmd_emergency.c => cmd_growfs.c} | 54 ++++++++++++++------------
 sbin/hammer2/hammer2.8                         |  5 +++
 sbin/hammer2/hammer2.h                         |  1 +
 sbin/hammer2/main.c                            |  5 +++
 5 files changed, 42 insertions(+), 25 deletions(-)
 copy sbin/hammer2/{cmd_emergency.c => cmd_growfs.c} (68%)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/4599d71eb994551b666f9bbf7c746393c7c4efbc


-- 
DragonFly BSD source repository



More information about the Commits mailing list