From owner-freebsd-current Wed Nov 1 13:18:23 2000 Delivered-To: freebsd-current@freebsd.org Received: from critter.freebsd.dk (flutter.freebsd.dk [212.242.40.147]) by hub.freebsd.org (Postfix) with ESMTP id 4D10D37B479 for ; Wed, 1 Nov 2000 13:18:20 -0800 (PST) Received: from critter (localhost [127.0.0.1]) by critter.freebsd.dk (8.11.1/8.9.3) with ESMTP id eA1LEUu23143; Wed, 1 Nov 2000 22:14:30 +0100 (CET) (envelope-from phk@critter.freebsd.dk) To: Marcel Moolenaar Cc: Andrew Gallatin , freebsd-current@FreeBSD.ORG Subject: Re: linux emulation In-Reply-To: Your message of "Wed, 01 Nov 2000 15:54:39 EST." <3A00830F.70D9CC14@cup.hp.com> Date: Wed, 01 Nov 2000 22:14:30 +0100 Message-ID: <23141.973113270@critter> From: Poul-Henning Kamp Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <3A00830F.70D9CC14@cup.hp.com>, Marcel Moolenaar writes: >> In that case, makebdev() has been wrong ever since we changed to >> mount cdevs in FreeBSD. > >In the sense that we would never find the vnode and thus always return >zero stats, right? No, depends on the bmaj <-> cmaj mapping and the truncation. Off the top of my head I think it unlikely that we have found anything. >> You should simply change the makebdev() to makedev() and VBLK to VCHR >> in the vfinddev() right after. > >Right-o :-) > >> It's still mightily bogus though... > >Yes. A more dynamic solution needs to be used that creates mappings (and >dev_t values) on the fly. I guess you're right, but the thought makes me want to barf... -- 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-current" in the body of the message