Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Aug 2000 08:01:59 +0100
From:      Brian Somers <brian@Awfulhak.org>
To:        Mark Murray <mark@grondar.za>
Cc:        brian@FreeBSD.org, current@FreeBSD.org, brian@Awfulhak.org
Subject:   Re: MAKEDEV broken 
Message-ID:  <200008180701.e7I71xF45531@hak.lan.Awfulhak.org>
In-Reply-To: Message from Mark Murray <mark@grondar.za>  of "Fri, 18 Aug 2000 08:04:18 %2B0200." <200008180604.e7I64Im02984@grimreaper.grondar.za> 

next in thread | previous in thread | raw e-mail | index | archive | help
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 <brian@Awfulhak.org>                        <brian@[uk.]FreeBSD.org>
      <http://www.Awfulhak.org>;                   <brian@[uk.]OpenBSD.org>
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200008180701.e7I71xF45531>