Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add dnodesize #2713

Merged
merged 6 commits into from
Dec 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion disk/format-chosen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ while
done
[[ -z "${devtype_present+x}" ]]
do
printf "${BRed}$DEVTYPE is not a valid disk. Please try again.${Color_Off}\n"
print_text_in_color "$BRed" "$DEVTYPE is not a valid disk. Please try again."
:
done

Expand Down Expand Up @@ -183,6 +183,11 @@ then
check_command zfs set atime=off "$POOLNAME"
check_command zfs set recordsize=128k "$POOLNAME"
check_command zfs set logbias=latency "$POOLNAME"
if [ -d /sys/firmware/efi ]
then
# dnodesize can't boot on BIOS, only UEFI mode
check_command zfs set dnodesize=auto "$POOLNAME"
fi

else
msg_box "It seems like /dev/$DEVTYPE does not exist.
Expand Down
5 changes: 5 additions & 0 deletions disk/format-sdb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,11 @@ then
check_command zfs set atime=off "$POOLNAME"
check_command zfs set recordsize=128k "$POOLNAME"
check_command zfs set logbias=latency "$POOLNAME"
if [ -d /sys/firmware/efi ]
then
# dnodesize can't boot on BIOS, only UEFI mode
check_command zfs set dnodesize=auto "$POOLNAME"
fi

else
msg_box "It seems like /dev/$DEVTYPE does not exist.
Expand Down