Configure and inspect local storage volumes and directories
Source: target-root/usr/local/libexec/solidgroundux/console-modules/15-storage.sh
Configure and inspect local storage volumes and directories
Public functions
- Provision and validate persistent SolidGroundUX storage
- Call
_storage_run_actionwith theprovisionaction. - Call
_storage_run_actionwith themountaction. - Call
_storage_run_actionwith theunmountaction. - Call
_storage_run_actionwith theexpandaction. - Call
_storage_run_actionwith thereconcileaction. - Call
_storage_run_actionwith thereconcile-persistenceaction. - Call
_storage_run_actionwith thevalidateaction. - Call
_storage_run_actionwith thestatusaction. - Manage directories below a SolidGroundUX storage root
- Call
_storage_run_actionwith theaccess-statusaction. - Call
_storage_run_actionwith theset-accessaction. - Call
_storage_run_actionwith therestore-defaultsaction. - Validate the storage module and record its status for the console.
Internal functions
| Function | Purpose | Arguments | Output |
|---|---|---|---|
_sgnd_lib_guard | Ensure the file is sourced as a library and marked as loaded. | — | (globals) |
_storage_run_action | Dispatch the selected storage-management action to the standalone storage manager. | - $1: Management action to execute. | — |
_storage_run_compound_step | Execute one stage of a multi-step storage workflow via the standalone manager. | - $1: Management action to execute. | — |
_storage_step_provision | Invoke the provision action through the module manager. | — | — |
_storage_step_validate | Invoke the validate action through the module manager. | — | — |
Description
Registers local-storage management actions with the SolidGround Management Console. Persistent storage operations are implemented by manage-storage.sh.
Module validation contract
Return codes: 0 = Passed 1 = Failed 2 = Warning 3 = Skipped / not applicable
Every validator sets SGND_MODULE_VALIDATION_MESSAGE to a concise result summary. Detailed diagnostic output may be written by the validator or delegated action.
Console registration
Storage
! Prepare storage
Provision and validate persistent local storage.
! Provision storage
Provision one or more unused disks as persistent local storage.
! Mount storage
Mount a configured local storage filesystem.
! Unmount storage
Unmount a configured storage filesystem while keeping its persistent configuration.
! Expand storage
Expand the partition and filesystem after enlarging its disk.
! Reconcile storage configuration
Update SolidGroundUX storage configuration from all managed SGND_STORAGE volumes.
! Reconcile storage persistence
Repair stale UUID mappings from detected SGND_STORAGE filesystems or remove stale entries explicitly.
! Validate storage provisioning
Run active checks including configuration reconciliation.
! Show storage status
Show local disks and configured storage status.
! Manage directories
Create, rename, list, or remove directories beneath managed storage roots.
