Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 01 Nov 2000 22:14:30 +0100
From:      Poul-Henning Kamp <phk@critter.freebsd.dk>
To:        Marcel Moolenaar <marcel@cup.hp.com>
Cc:        Andrew Gallatin <gallatin@cs.duke.edu>, freebsd-current@FreeBSD.ORG
Subject:   Re: linux emulation 
Message-ID:  <23141.973113270@critter>
In-Reply-To: Your message of "Wed, 01 Nov 2000 15:54:39 EST." <3A00830F.70D9CC14@cup.hp.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
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




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