storage_expand

SolidGroundUX DocumentationSolidGroundUX
NL

fn: storage_expand

Purpose

Expand the configured storage partition and filesystem to use a larger disk.

Behavior

  • Resolves the configured storage source from the active mount or /etc/fstab.
  • Requires a normal disk partition created by the Storage module.
  • Expands the partition to fill the resized virtual or physical disk.
  • Grows ext4 with resize2fs or XFS with xfs_growfs.
  • Mounts XFS storage first when required.
  • Honors console dry-run mode.

Inputs

(globals): FLAG_DRYRUN

Returns

  • 0 when the partition and filesystem are expanded, otherwise non-zero.

Usage

  storage_expand