mirror of
https://github.com/opnsense/src.git
synced 2026-06-06 15:22:34 -04:00
bsdinstall: Fix newfs bsddialog menu
The second and third members of struct bsddialog_menuitem are `bool on`
and `unsigned int depth`. The newfs dialog options in bsdinstall's
partition tool had these two swapped, so the default selection did not
work.
PR: 290857
Reviewed by: asiciliano
Fixes: 50e244964e ("bsdinstall/partedit: Replace libdialog with libbsddialog")
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D53639
(cherry picked from commit 4e36942420712c2ab6ebc2c646e61d47b2b68e7b)
This commit is contained in:
parent
92a91c9898
commit
980aa8d4cf
1 changed files with 7 additions and 7 deletions
|
|
@ -139,16 +139,16 @@ newfs_command(const char *fstype, int use_default)
|
|||
} else if (strcmp(fstype, "freebsd-zfs") == 0) {
|
||||
int i;
|
||||
struct bsddialog_menuitem items[] = {
|
||||
{"", 0, true, "fletcher4", "checksum algorithm: fletcher4",
|
||||
{"", true, 0, "fletcher4", "checksum algorithm: fletcher4",
|
||||
"Use fletcher4 for data integrity checking. "
|
||||
"(default)"},
|
||||
{"", 0, false, "fletcher2", "checksum algorithm: fletcher2",
|
||||
{"", false, 0, "fletcher2", "checksum algorithm: fletcher2",
|
||||
"Use fletcher2 for data integrity checking. "
|
||||
"(not recommended)"},
|
||||
{"", 0, false, "sha256", "checksum algorithm: sha256",
|
||||
{"", false, 0, "sha256", "checksum algorithm: sha256",
|
||||
"Use sha256 for data integrity checking. "
|
||||
"(not recommended)"},
|
||||
{"", 0, false, "atime", "Update atimes for files",
|
||||
{"", false, 0, "atime", "Update atimes for files",
|
||||
"Disable atime update"},
|
||||
};
|
||||
|
||||
|
|
@ -188,11 +188,11 @@ newfs_command(const char *fstype, int use_default)
|
|||
strcmp(fstype, "ms-basic-data") == 0) {
|
||||
int i;
|
||||
struct bsddialog_menuitem items[] = {
|
||||
{"", 0, true, "FAT32", "FAT Type 32",
|
||||
{"", true, 0, "FAT32", "FAT Type 32",
|
||||
"Create a FAT32 filesystem (default)"},
|
||||
{"", 0, false, "FAT16", "FAT Type 16",
|
||||
{"", false, 0, "FAT16", "FAT Type 16",
|
||||
"Create a FAT16 filesystem"},
|
||||
{"", 0, false, "FAT12", "FAT Type 12",
|
||||
{"", false, 0, "FAT12", "FAT Type 12",
|
||||
"Create a FAT12 filesystem"},
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue