Subject: MAKEDEV md* on non-sparc
To: None <gnats-bugs@gnats.netbsd.org, current-users@NetBSD.ORG>
From: None <salvet@ics.muni.cz>
List: current-users
Date: 12/15/1997 21:59:03
>Submitter-Id: net
>Originator: Zdenek Salvet
>Organization: Masaryk University
>Confidential: no
>Synopsis: md devices are created incorrectly by MAKEDEV
>Severity: non-critical
>Priority: medium
>Category: misc
>Class: sw-bug
>Release: 1.3_BETA
>Environment: NetBSD 1.3_BETA and -current
>Description:
/dev/MAKEDEV creates md* devices incorrectly on i386,alpha and other
architectures (only sparc is OK)
>How-To-Repeat:
Try to use mdconfig example from its manpage.
>Fix:
for i386 the code should be something like
mknod md${unit} b 17 $(($unit * 8))
mknod rmd${unit} c 24 $((($unit + 16) * 8))
chown root.operator md$unit rmd$unit
chmod 640 md$unit rmd$unit
Unit ($unit + 16) is control device, see sys/dev/md.c