In message <[EMAIL PROTECTED]>, 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
[EMAIL PROTECTED]         | 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 [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to