From 39ec76dc5a74cb4ad1b04181768cdca99c080e5f Mon Sep 17 00:00:00 2001 From: kisfenyo Date: Wed, 1 Jul 2026 21:35:48 +0200 Subject: [PATCH] v0.59.0: resolve registry-row BackingDevice to the real /dev node MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use ResolveStorageDevice (EvalSymlinks) so a registry drive shows /dev/sdd, not the /dev/disk/by-uuid/ symlink path — matching Observe-sourced rows. Co-Authored-By: Claude Opus 4.8 (1M context) --- internal/localapi/disks.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/localapi/disks.go b/internal/localapi/disks.go index 9c2c0aa..6caee5e 100644 --- a/internal/localapi/disks.go +++ b/internal/localapi/disks.go @@ -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 — // else the agent-view shows "—" for the device and no size bar. 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 } }