NetBSD Problem Report #72
From gnats Thu Jan 13 12:40:21 1994
Received: from forte (forte.mathematik.uni-Bremen.de [134.102.232.1]) by sun-lamp.cs.berkeley.edu (8.6.4/8.6.4) with ESMTP id MAA24819 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Thu, 13 Jan 1994 12:38:21 -0800
Message-Id: <199401132037.VAA09342@forte>
Date: Thu, 13 Jan 1994 21:37:45 +0100
From: thomas@mathematik.uni-Bremen.de
Reply-To: thomas@mathematik.uni-Bremen.de
To: gnats-bugs@sun-lamp.cs.berkeley.edu
Subject: minor numbers for vn devices in etc.i386/MAKEDEV are wrong
X-Send-Pr-Version: 3.01.6
>Number: 72
>Category: misc
>Synopsis: minor numbers for vn devices in etc.i386/MAKEDEV are wrong
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: gnats-admin
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Jan 13 12:50:10 +0000 1994
>Closed-Date: Thu Jan 13 21:23:17 +0000 1994
>Last-Modified: Thu Jan 02 18:15:34 +0000 2014
>Originator: Thomas Eberhardt
>Release:
>Organization:
CeVis, University of Bremen, Germany
>Environment:
System: NetBSD ed209 0.9a ED209#0 i386
Machine: i386
>Description:
The minor numbers for vn devices in etc.i386/MAKEDEV are wrong.
The vn driver uses the same numbering scheme as the disk
drivers (i.e. the lower 3 bits are for the partition).
The '+ 2' in the fix below is superfluous since the vn driver
ignores the lower 3 bits. I've added it just for consistency
with the c partitions of real disks.
>How-To-Repeat:
>Fix:
*** MAKEDEV- Tue Jan 11 11:22:51 1994
--- MAKEDEV Thu Jan 13 21:28:02 1994
***************
*** 260,267 ****
vnd*)
umask 2 ; unit=`expr $i : '...\(.*\)'`
name=vnd; blk=14; chr=41
! mknod ${name}${unit}c b $blk $unit
! mknod r${name}${unit}c c $chr $unit
chown root.operator ${name}${unit}c r${name}${unit}c
chmod 640 ${name}${unit}c r${name}${unit}c
umask 77
--- 260,268 ----
vnd*)
umask 2 ; unit=`expr $i : '...\(.*\)'`
name=vnd; blk=14; chr=41
! rm -f ${name}${unit}c r${name}${unit}c
! mknod ${name}${unit}c b $blk `expr $unit '*' 8 + 2`
! mknod r${name}${unit}c c $chr `expr $unit '*' 8 + 2`
chown root.operator ${name}${unit}c r${name}${unit}c
chmod 640 ${name}${unit}c r${name}${unit}c
umask 77
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: mycroft
State-Changed-When: Thu Jan 13 13:23:17 PST 1994
State-Changed-Why:
Fixed this, and a couple of other minor bogons.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.