From owner-freebsd-current Mon Oct 13 23:41:44 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id XAA26979 for current-outgoing; Mon, 13 Oct 1997 23:41:44 -0700 (PDT) (envelope-from owner-freebsd-current) Received: from critter.freebsd.dk (critter.freebsd.dk [195.8.129.26]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id XAA26969 for ; Mon, 13 Oct 1997 23:41:40 -0700 (PDT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost.cybercity.dk [127.0.0.1]) by critter.freebsd.dk (8.8.7/8.8.7) with ESMTP id IAA01633; Tue, 14 Oct 1997 08:39:55 +0200 (CEST) To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) cc: freebsd-current@FreeBSD.ORG (FreeBSD-current users) Subject: Re: lockmgr panic In-reply-to: Your message of "Mon, 13 Oct 1997 23:08:18 +0200." <19971013230818.ZB55478@uriah.heep.sax.de> Date: Tue, 14 Oct 1997 08:39:55 +0200 Message-ID: <1631.876811195@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-freebsd-current@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk In message <19971013230818.ZB55478@uriah.heep.sax.de>, J Wunsch writes: >As Poul-Henning Kamp wrote: > >> I hacked this little "genuine ram disk driver" up a couple of days ago, >> if should do everything you would want to have done if this is for release >> building: > >Well, i think this requires quite a number of changes in the release >Makefile... so i'm a little reluctant to bring it in before 2.2.5 >ships. But i get the point. > >> #ifndef RD0_SIZE >> #define RD0_SIZE (80*2*18*512) >> #endif > >That's ugly. My suggestion: provide two minor numbers per >pseudo-device. The first is the actual rd driver, the second is the >control device. For the control device, define an ioctl command that >gets down the desired size, and allocates a (optionally pageable) >buffer for it. Joerg, I spent all of 30 minutes on this ting, and I just hacked it together for a particular experiment, OK ? :-) I offered it here as a bandaid if release building was in trouble, not as a solution for world poverty... :-) -- Poul-Henning Kamp FreeBSD coreteam member phk@FreeBSD.ORG "Real hackers run -current on their laptop."