git: kernel: Don't siliently ignore EINVAL from mbrinit() and gptinit()
Aaron LI
aly at crater.dragonflybsd.org
Wed Feb 18 05:49:12 PST 2026
commit 8cf8601ebae6a54f01fe9a7aed045832fc6a903b
Author: Aaron LI <aly at aaronly.me>
Date: Thu Aug 28 19:30:47 2025 +0800
kernel: Don't siliently ignore EINVAL from mbrinit() and gptinit()
This EINVAL ignoring code was come from FreeBSD since the initial
import. The main intention of this change is to make the code a bit
more understandable.
I only see one valid case to ignore EINVAL from mbrinit() and that's for
VN(4) to have no MBR and fallback to use the COMPATIBILITY_SLICE
generated by the kernel on default. I'll restore this behavior in a
later commit.
ok by dillon.
Summary of changes:
sys/kern/subr_diskgpt.c | 5 ++---
sys/kern/subr_diskmbr.c | 4 +---
2 files changed, 3 insertions(+), 6 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/8cf8601ebae6a54f01fe9a7aed045832fc6a903b
--
DragonFly BSD source repository
More information about the Commits
mailing list