v0.80.0: disk card shows + acts on the stable path, not the raw host mount
The storage card displayed each external drive's raw host PVE mount (/mnt/<name>, which doesn't exist in the guest) instead of the stable in-guest path (/mnt/felhom-drives/<name> = guest_path) the registry/HDD_PATH/FileBrowser use. The eject/wipe buttons also posted the raw path, so they would unmount the drive but leave the stable registry entry orphaned, and the impact warning found no apps. Fix: card sub-line + eject/wipe buttons use the stable path (regKey); type-to-confirm name uses the basename; register keeps the raw path. handleStorageWipe maps to raw via agentWhere() for the agent eject (matching handleStorageEject). Agent ops unchanged (same raw paths); display + registry bookkeeping corrected. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017PsnU2ASocYrvzqE82YDYW
This commit is contained in:
@@ -1,5 +1,19 @@
|
||||
## Changelog
|
||||
|
||||
### v0.80.0 — disk card: show + act on the stable path, not the raw host mount (2026-06-23)
|
||||
- Follow-up to v0.78/0.79. The storage disk card displayed the drive's **raw** host PVE mount
|
||||
(`/mnt/<name>`) — which doesn't exist inside the guest — instead of the **stable** in-guest path
|
||||
(`/mnt/felhom-drives/<name>`, the `guest_path`) the registry, app `HDD_PATH`, and FileBrowser use.
|
||||
- It also passed the **raw** path to the Leválasztás/Törlés buttons, so those would unmount the drive
|
||||
but leave its **stable** registry entry orphaned (`RemoveStoragePath` is keyed on the stable path), and
|
||||
the impact warning (`/api/storage/impact?where=`) found no affected apps (HDD_PATH is the stable path).
|
||||
- Fix (`settings.html`): the card sub-line + the eject/wipe buttons now use the stable path (`regKey(d)`);
|
||||
the type-to-confirm name is derived from the basename so it still matches the server check; **register**
|
||||
keeps posting the raw path (its agent guest-attach operates on raw). `handleStorageWipe` now maps the
|
||||
registered path to raw via `agentWhere()` for the agent eject (matching `handleStorageEject`), so the
|
||||
drive deregisters cleanly. Agent-facing ops are unchanged (same raw paths); only display + the
|
||||
controller's own registry bookkeeping are corrected.
|
||||
|
||||
### v0.79.0 — disk view: key the "registered" check on the stable path (2026-06-23)
|
||||
- Follow-up to v0.78.0. The storage disk-view JS (`settings.html` `regBadge`/`actions`) decided whether
|
||||
a drive was registered by looking up its **raw** `mount_path` (`/mnt/<name>`) in the registry — but
|
||||
|
||||
Reference in New Issue
Block a user