[pve-devel] [PATCH installer 6/7] tui: add min/max contraints for Btrfs bootdisk parameters
Christoph Heiss
c.heiss at proxmox.com
Wed Oct 4 16:42:17 CEST 2023
Signed-off-by: Christoph Heiss <c.heiss at proxmox.com>
---
proxmox-tui-installer/src/views/bootdisk.rs | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/proxmox-tui-installer/src/views/bootdisk.rs b/proxmox-tui-installer/src/views/bootdisk.rs
index bb421a1..66d909c 100644
--- a/proxmox-tui-installer/src/views/bootdisk.rs
+++ b/proxmox-tui-installer/src/views/bootdisk.rs
@@ -470,7 +470,11 @@ impl BtrfsBootdiskOptionsView {
let view = MultiDiskOptionsView::new(
disks,
&options.selected_disks,
- FormView::new().child("hdsize", DiskSizeEditView::new().content(options.disk_size)),
+ FormView::new().child(
+ "hdsize",
+ DiskSizeEditView::with_range(MINIMUM_DISK_SIZE, options.disk_size)
+ .content(options.disk_size),
+ ),
)
.top_panel(TextView::new("Btrfs integration is a technology preview!").center());
--
2.42.0
More information about the pve-devel
mailing list