]> git.proxmox.com Git - pve-installer.git/commit
tui: bootdisk zfs config: add a maximum value to the `copies` option
authorStefan Sterz <s.sterz@proxmox.com>
Fri, 17 Nov 2023 16:32:18 +0000 (17:32 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 17 Nov 2023 16:40:30 +0000 (17:40 +0100)
commit851a1e98b29ea208192307f44d463ed15053edb6
tree2e04a4b3fe8b80ff657360caf3751edf510583e2
parent28a55aea9ac107b683b4c6a450ae65142f68f85b
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 <s.sterz@proxmox.com>
 [ TL: fleece in note that we already limit this in the GTK UI ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
proxmox-tui-installer/src/views/bootdisk.rs