mirror of
https://git.proxmox.com/git/pve-installer
synced 2025-04-29 18:24:45 +00:00
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>
This commit is contained in:
parent
28a55aea9a
commit
851a1e98b2
@ -592,7 +592,7 @@ impl ZfsBootdiskOptionsView {
|
|||||||
.unwrap_or_default(),
|
.unwrap_or_default(),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
.child("copies", IntegerEditView::new().content(options.copies))
|
.child("copies", IntegerEditView::new().content(options.copies).max_value(3))
|
||||||
.child_conditional(
|
.child_conditional(
|
||||||
is_pve,
|
is_pve,
|
||||||
"ARC max size",
|
"ARC max size",
|
||||||
|
Loading…
Reference in New Issue
Block a user