From 851a1e98b29ea208192307f44d463ed15053edb6 Mon Sep 17 00:00:00 2001 From: Stefan Sterz Date: Fri, 17 Nov 2023 17:32:18 +0100 Subject: [PATCH] tui: bootdisk zfs config: add a maximum value to the `copies` option according to `man zfsprops` the copies option can only be 1, 2, or 3. limit the field to 3 just like we do for the GTK based UI, as setting higher options can't work anyway. Signed-off-by: Stefan Sterz [ TL: fleece in note that we already limit this in the GTK UI ] Signed-off-by: Thomas Lamprecht --- proxmox-tui-installer/src/views/bootdisk.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxmox-tui-installer/src/views/bootdisk.rs b/proxmox-tui-installer/src/views/bootdisk.rs index 00e6ade..7e13e91 100644 --- a/proxmox-tui-installer/src/views/bootdisk.rs +++ b/proxmox-tui-installer/src/views/bootdisk.rs @@ -592,7 +592,7 @@ impl ZfsBootdiskOptionsView { .unwrap_or_default(), ), ) - .child("copies", IntegerEditView::new().content(options.copies)) + .child("copies", IntegerEditView::new().content(options.copies).max_value(3)) .child_conditional( is_pve, "ARC max size",