Linked clones: base disks are never cleaned up

Đang mở
#70 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
42/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
electron, react, typescript
Lĩnh vực
desktop, devtools

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
TypeScript
Star
3
Fork
0
Merge trung bình
2 phút
Pull request đã merge (30 ngày)
35

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của A21-devs/Virtual-Machine-Manager

Tất cả issue của A21-devs/Virtual-Machine-Manager

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.