Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-implement: Qemu Unused Disks #380

Open
Tinyblargon opened this issue Nov 24, 2024 · 0 comments
Open

Re-implement: Qemu Unused Disks #380

Tinyblargon opened this issue Nov 24, 2024 · 0 comments
Labels
type/feature Completely new functionality.

Comments

@Tinyblargon
Copy link
Collaborator

UnusedDisks should use the following structure. When the value is nil we wont change the value in PVE, this means that for updates we need to know the current settings. Modifying the disk when it does not exist should give an error during the Validation phase.

type QemuUnusedDisks map[QemuUnusedDiskID]QemuUnusedDisk

type QemuUnusedDisk struct {
	Delete  bool            `json:"delete"`
	Storage *string         `json:"storage,omitempty"` // Changing migrates the disk to a different storage
	Format  *QemuDiskFormat `json:"format,omitempty"`  // Changing the format of the disk
}

type QemuUnusedDiskID uint8
@Tinyblargon Tinyblargon added type/enhancement An improvement of existing functionality type/feature Completely new functionality. and removed type/enhancement An improvement of existing functionality labels Nov 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/feature Completely new functionality.
Projects
None yet
Development

No branches or pull requests

1 participant