v0.64.0: additive storage discovery (A1) + internal-SSD label (A2)
A1: AutoDiscoverStoragePaths no longer bails on a non-empty registry; registers only deployed-app paths missing from the registry. Never mutates/removes existing entries, never re-adds or reactivates a path present in ANY state (incl. Decommissioned), never flips IsDefault. A2: InferStorageLabel maps base==felhom-data namespace dir to 'Belső SSD (rendszer)' to disambiguate the internal system volume. Table-driven tests incl. a companion that fails without the skip-by-presence guard. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -666,6 +666,17 @@ not just those with HDD data. Non-HDD apps can configure destination, method, an
|
||||
> `FormatResult.{role,needs_confirmation,durable_id}`; `ErrNeedsConfirmation` (user-data) vs
|
||||
> `ErrFormatRefused` (system/backup). `FormatResult.PendingOp.OpsignCommand()` for the operator path.
|
||||
> - The **`StoragePath` registry** (`settings.go`: `AddStoragePath`/default/schedulable/label) is unchanged.
|
||||
> - **(v0.64.0) `AutoDiscoverStoragePaths` is now ADDITIVE** — it no longer bails when the registry is
|
||||
> non-empty; instead it registers only deployed-app paths missing from the registry. It never removes
|
||||
> or mutates an existing entry, never re-adds or reactivates a path already present in ANY state
|
||||
> (incl. `Decommissioned`), and never flips `IsDefault` (a new path defaults only if the registry has
|
||||
> no default at all). This is NOT auto-register-on-attach (that recommendation was rejected — manual
|
||||
> enrollment is by design); it only picks up drives that deployed apps already reference.
|
||||
> - **(v0.64.0) `InferStorageLabel` disambiguates the internal SSD** — a path whose basename is the
|
||||
> `felhom-data` namespace dir (the internal system volume, e.g. `/mnt/sys_drive/felhom-data`) now reads
|
||||
> **"Belső SSD (rendszer)"** instead of the colliding "Tárhely (felhom-data)". Model-A user drives
|
||||
> register their MOUNT ROOT (e.g. `/mnt/felhom-usb`), never `.../felhom-data`, so this can't mislabel a
|
||||
> user drive. Still overridable via `SetStorageLabel`.
|
||||
> - **Migration** (drive + per-stack) is **deferred** to its own slice (buttons disabled "Hamarosan").
|
||||
>
|
||||
> The privileged controller-side disk subsections **below are historical** (the `internal/storage/*` scan/
|
||||
|
||||
Reference in New Issue
Block a user