From owner-freebsd-current Fri Aug 18 0: 3:42 2000 Delivered-To: freebsd-current@freebsd.org Received: from Awfulhak.org (tun.AwfulHak.org [194.242.139.173]) by hub.freebsd.org (Postfix) with ESMTP id 03A5437B424; Fri, 18 Aug 2000 00:03:37 -0700 (PDT) Received: from hak.lan.Awfulhak.org (root@hak.lan.awfulhak.org [172.16.0.12]) by Awfulhak.org (8.9.3/8.9.3) with ESMTP id IAA13917; Fri, 18 Aug 2000 08:02:06 +0100 (BST) (envelope-from brian@hak.lan.Awfulhak.org) Received: from hak.lan.Awfulhak.org (brian@localhost [127.0.0.1]) by hak.lan.Awfulhak.org (8.11.0/8.11.0) with ESMTP id e7I71xF45531; Fri, 18 Aug 2000 08:01:59 +0100 (BST) (envelope-from brian@hak.lan.Awfulhak.org) Message-Id: <200008180701.e7I71xF45531@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.1.1 10/15/1999 To: Mark Murray Cc: brian@FreeBSD.org, current@FreeBSD.org, brian@Awfulhak.org Subject: Re: MAKEDEV broken In-Reply-To: Message from Mark Murray of "Fri, 18 Aug 2000 08:04:18 +0200." <200008180604.e7I64Im02984@grimreaper.grondar.za> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 18 Aug 2000 08:01:59 +0100 From: Brian Somers Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Oops, I meant unit2minor for ugen & urio :-/ > Hi > > It looks like a function got left out of MAKEDEV. > > This seems to fix it: > > Index: /usr/src/etc/MAKEDEV > =================================================================== > RCS file: /home/ncvs/src/etc/MAKEDEV,v > retrieving revision 1.268 > diff -u -d -r1.268 MAKEDEV > --- /usr/src/etc/MAKEDEV 2000/08/16 16:42:50 1.268 > +++ /usr/src/etc/MAKEDEV 2000/08/18 06:01:10 > @@ -221,6 +221,12 @@ > echo $(((($1 >> 8) << 16) | ($1 % 256))) > } > > +# Convert a minor number to a unit number. > +minor2unit() > +{ > + echo $(((($1 >> 16) << 8) | ($1 % 256))) > +} > + > # Raw partition for disks > dkrawpart=2 > > M > -- Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message