mirror of
https://github.com/Telmate/proxmox-api-go.git
synced 2026-04-25 15:35:51 +03:00
[GH-ISSUE #380] Re-implement: Qemu Unused Disks #96
Labels
No labels
good first issue
issue/confirmed
issue/critical
proposal/accepted
pull-request
type/bug
type/enhancement
type/feature
type/question
type/refactoring
type/testing
type/testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/proxmox-api-go#96
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Tinyblargon on GitHub (Nov 24, 2024).
Original GitHub issue: https://github.com/Telmate/proxmox-api-go/issues/380
Requirements:
UnusedDisksshould use the structure specified below (some deviations might be needed).nilordelete = falseno action will be takenSome known unknowns about the implementation:
The
UnusedDisksstructure:@angyaljanos commented on GitHub (Jun 24, 2025):
Hello @Tinyblargon!
If this issue is still open i would like to start work on it.
Can you explain the fields in a little more detail? The current version separates the the volume name, the file of the unused disk and the numerical id of the unused disk, if get that correct.
Also do you know why is the following line repeated 3 times:
@Tinyblargon commented on GitHub (Jun 24, 2025):
@angyaljanos It's still open.
Honestly I'm not too sure about the current implementation.
The current version forces the user to know these
"slot","storage","file". The idea is to put them in an object instead.It exposes the
finalDiskConfMapto the user of this library, which is bad.The current implementation is also missing tests.
The idea is that the new version will be a map indexed by the disks numerical id/slot. The index type will have a comment explaining it's range.
I'll update the original post with a better picture of the requirements.