git: gpt, disklabel64 - Add storage expansion options

Matthew Dillon dillon at crater.dragonflybsd.org
Wed Sep 2 11:28:49 PDT 2020


commit 35a9ab8af19377d7d13017c9cefc41eb33a342ec
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Wed Sep 2 11:24:47 2020 -0700

    gpt, disklabel64 - Add storage expansion options
    
    * Add gpt expand directive.  For example 'gpt expand /dev/da0' will
      expand the gpt to fill /dev/da0.  This allows the gpt to be enlarged
      to fit a new, larger storage device or expanded storage and can be issued
      on a live gpt if desired.
    
    * Add disklabel64 -x and -xx features.  This expands the disklabel to
      fit the new enlarged slice that it resides in.  If -xx is specified,
      the last partition configured in the disklabel will also be enlarged.
    
    * And we already have 'hammer2 growfs <mountpt>' to grow a live hammer2
      filesystem to fit an enlarged partition.

Summary of changes:
 sbin/disklabel64/disklabel64.8 |  22 +++-
 sbin/disklabel64/disklabel64.c | 115 ++++++++++++++++++++-
 sbin/gpt/Makefile              |   2 +-
 sbin/gpt/expand.c              | 223 +++++++++++++++++++++++++++++++++++++++++
 sbin/gpt/gpt.8                 |   9 ++
 sbin/gpt/gpt.c                 |   1 +
 sbin/gpt/gpt.h                 |   1 +
 sbin/gpt/map.c                 |   2 +-
 sbin/gpt/map.h                 |   1 +
 9 files changed, 365 insertions(+), 11 deletions(-)
 create mode 100644 sbin/gpt/expand.c

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/35a9ab8af19377d7d13017c9cefc41eb33a342ec


-- 
DragonFly BSD source repository



More information about the Commits mailing list