v0.59.0: resolve registry-row BackingDevice to the real /dev node

Use ResolveStorageDevice (EvalSymlinks) so a registry drive shows /dev/sdd, not
the /dev/disk/by-uuid/<uuid> symlink path — matching Observe-sourced rows.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-01 21:35:48 +02:00
parent 5ff5f8e0ab
commit 39ec76dc5a
+3 -1
View File
@@ -239,7 +239,9 @@ func (s *Server) handleDisks(w http.ResponseWriter, r *http.Request, vmid int) {
// from the host directly: resolve the device by fs-UUID, and statfs the mount for size — // from the host directly: resolve the device by fs-UUID, and statfs the mount for size —
// else the agent-view shows "—" for the device and no size bar. // else the agent-view shows "—" for the device and no size bar.
if d.UUID != "" { if d.UUID != "" {
if dev, err := storage.ByUUIDDevicePath(d.UUID); err == nil { // Resolve to the real /dev node (e.g. /dev/sdd), not the by-uuid symlink path, to match
// how Observe-sourced rows display the backing device.
if dev, err := storage.ResolveStorageDevice("uuid:" + d.UUID); err == nil {
di.BackingDevice = dev di.BackingDevice = dev
} }
} }