git: kernel: Fix disk_probe() to find device by the same name as creation
Aaron LI
aly at crater.dragonflybsd.org
Wed Feb 18 05:49:12 PST 2026
commit a252a8c857e32c69b53bcf78267aa580b1382650
Author: Aaron LI <aly at aaronly.me>
Date: Tue Feb 17 16:44:38 2026 +0800
kernel: Fix disk_probe() to find device by the same name as creation
The name passed to devfs_find_device_by_name() previously did not check
for DSO_DEVICEMAPPER, which might be different from the name passed to
make_dev_covering(). Introduce the 'name_buf' to store the name with
DSO_DEVICEMAPPER accounted, and pass it to both functions.
Summary of changes:
sys/kern/subr_disk.c | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/a252a8c857e32c69b53bcf78267aa580b1382650
--
DragonFly BSD source repository
More information about the Commits
mailing list