Linked clones: base disks are never cleaned up

Aperta
#70 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
42/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
electron, react, typescript
Ambito
desktop, devtools

Direzione di ricerca

Start by tracing linked clone creation and VM removal, then inspect how the app finds disk files and invokes qemu-img info. The issue proposes either offering cleanup after VM removal or adding an unused-base list with size and a Delete button. Done means unused bases can be identified safely, with every remaining disk checked to confirm its backing chain does not reference the base before deletion.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

backend enhancement

A linked clone (#65) renames the source disk to <name>.base-<id>.qcow2 and makes it read-only. Nothing ever deletes it. Remove from library keeps disks on purpose, but once every VM that used a base is gone (or has been fully cloned and removed), the base just sits in disks\ taking the full size of the original disk, and it's read-only so deleting it by hand fails until you change the attribute.

Ideas:

  • When a VM is removed, check whether any remaining VM's disk has that base in its backing chain, and if none does, offer to delete it.
  • Or list unused base files somewhere (Settings, once #14 lands) with their size and a Delete button.

Needs care: only delete a base when qemu-img info on every remaining disk confirms nothing points at it.

Lingua principale
TypeScript
Stelle
3
Fork
0
Merge medio
2m
PR unite (30g)
35

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di A21-devs/Virtual-Machine-Manager

Tutte le issue di A21-devs/Virtual-Machine-Manager

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.