v0.58.0: report GuestPath/BoundUnderParent for a registry-sourced /disks row
The Impl-2a registry union row omitted GuestPath + BoundUnderParent, so the controller read a registry-only (raw) drive as "Leválasztva" despite being mounted + bound live. Populate them like the Observe path (StablePathForRaw + boundUnderParent). Last piece of first-class raw-drive support. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -223,12 +223,19 @@ func (s *Server) handleDisks(w http.ResponseWriter, r *http.Request, vmid int) {
|
||||
if d.MountPath == "" || seen[d.MountPath] {
|
||||
continue
|
||||
}
|
||||
out = append(out, DiskInfo{
|
||||
di := DiskInfo{
|
||||
Name: d.Name, Type: d.Type, State: "attached",
|
||||
MountPath: d.MountPath, DurableID: d.DurableID,
|
||||
Role: string(storage.RoleUserData),
|
||||
GuestAttached: boundPaths[d.MountPath],
|
||||
})
|
||||
}
|
||||
// Intermediary model: report the stable in-guest path + whether felhom-data is bound live,
|
||||
// exactly like the Observe path — else the controller reads a registry drive as "Leválasztva".
|
||||
if gp := StablePathForRaw(d.MountPath); gp != "" {
|
||||
di.GuestPath = gp
|
||||
di.BoundUnderParent = s.boundUnderParent(r.Context(), vmid, gp)
|
||||
}
|
||||
out = append(out, di)
|
||||
}
|
||||
} else {
|
||||
s.logger.Warn("disks: registry drive union skipped", "err", derr)
|
||||
|
||||
Reference in New Issue
Block a user