mirror of
https://github.com/Telmate/proxmox-api-go.git
synced 2026-04-25 23:45:55 +03:00
[PR #305] [MERGED] Feature: Disk size in Kibibyte #383
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#383
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?
📋 Pull Request Information
Original PR: https://github.com/Telmate/proxmox-api-go/pull/305
Author: @Tinyblargon
Created: 1/31/2024
Status: ✅ Merged
Merged: 2/5/2024
Merged by: @Tinyblargon
Base:
master← Head:Feature#304📝 Commits (9)
189aa8dtest: update for Kibibyte size69e86d5feat: disk size in K M G T651e9e2feat: Resize disk in Kibibyte2bd32a2refactor: extract disk resize loop to func7c468bafeat: build list of disk to resize2dd9a87feat: resize disks that where created with 0 size100a85brefactor: renameSizetoSizeInKibibytesf32d302fix: disk value may not be0917baeffeat: typeQemuDiskSize📊 Changes
8 files changed (+2229 additions, -1391 deletions)
View changed files
📝
proxmox/config_qemu.go(+9 -5)📝
proxmox/config_qemu_disk.go(+128 -43)📝
proxmox/config_qemu_disk_ide.go(+90 -70)📝
proxmox/config_qemu_disk_sata.go(+88 -70)📝
proxmox/config_qemu_disk_scsi.go(+98 -80)📝
proxmox/config_qemu_disk_test.go(+243 -66)📝
proxmox/config_qemu_disk_virtio.go(+93 -75)📝
proxmox/config_qemu_test.go(+1480 -982)📄 Description
Changes the size of all disk to be in Kibibytes instead of Gibibytes. Closes #304
Work done:
Size variable(big commit at the end)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
contextfor all api related calls #433