From owner-freebsd-arch Wed May 23 12:47:10 2001 Delivered-To: freebsd-arch@freebsd.org Received: from critter.freebsd.dk (beachchick.freebsd.dk [212.242.34.253]) by hub.freebsd.org (Postfix) with ESMTP id A07AC37B423 for ; Wed, 23 May 2001 12:47:06 -0700 (PDT) (envelope-from phk@critter.freebsd.dk) Received: from critter (localhost [127.0.0.1]) by critter.freebsd.dk (8.11.3/8.11.3) with ESMTP id f4NJktm50439; Wed, 23 May 2001 21:46:55 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: Brian Somers Cc: Garrett Wollman , freebsd-arch@FreeBSD.ORG Subject: Re: RFC: unit_list routines In-Reply-To: Your message of "Wed, 23 May 2001 20:44:33 BST." <200105231944.f4NJiXF09637@hak.lan.Awfulhak.org> Date: Wed, 23 May 2001 21:46:55 +0200 Message-ID: <50437.990647215@critter> From: Poul-Henning Kamp Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message <200105231944.f4NJiXF09637@hak.lan.Awfulhak.org>, Brian Somers write s: >> > > Using bits when there are large numbers of units gets awkward. >> > >> > Just wrap it in macros. I almost posted an implementation with my >> > last message, but decided that since it was so trivial it would be >> > almost insulting for me to do so. >> >> Not true - I'm too thick skinned to be insulted :oI >> >> I'll look at a macro implementation. > >Ok, I've thought about this :-/ I don't think it's practical to >do this with bits if someone does > > # ppp -unit 16777215 > >I then have to go off and allocate an array of 0x7fffff bytes just to >record the fact that someone's using a silly unit number. If true, the rman code should have a big "XXX: rewrite" on top of it. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message