NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/59761: dmsetup broken in 10.1 with default GENERIC kernel
The following reply was made to PR kern/59761; it has been noted by GNATS.
From: mlelstv%serpens.de@localhost (Michael van Elst)
To: gnats-bugs%netbsd.org@localhost
Cc:
Subject: Re: kern/59761: dmsetup broken in 10.1 with default GENERIC kernel
Date: Sun, 16 Nov 2025 22:43:34 -0000 (UTC)
gnats-admin%NetBSD.org@localhost ("Mike Edwards via gnats") writes:
> [ksh] root@netbsd02# ls -ld /dev/mapper/control
> crw-rw---- 1 root operator 0, 0 Nov 15 19:50 /dev/mapper/control
>
> 0,0? Oddly, dmsetup doesn't agree with ls here:
0, 0 would be "console". Something is wrong in your /dev directory.
> Why would ls report 0,0, and dmsetup 33,176?
The source reveals utter stupidity:
if (major && buf.st_rdev != MKDEV(major, minor)) {
log_verbose("%s: Wrong device number: (%u, %u) instead of "
"(%u, %u)", control,
MAJOR(buf.st_mode), MINOR(buf.st_mode),
major, minor);
...
The check is correct, but then it prints bits from buf.st_mode instead
of buf.st_rdev.
Home |
Main Index |
Thread Index |
Old Index