Discussion:
A block-device driver problem - unknown number of BPBs
(too old to reply)
R.Wieser
2008-07-22 21:27:57 UTC
Permalink
Hello All,

I'm trying to write a block-device driver, and stumbeled upon a bit I
can't place : In the both the initialisation and createbpb functions I have
to return an array of BPBs.

The problem is that I can't seem to find *how many* BPBs I should return. I
can make a few wild guesses, but can't seem to find any info about it.

I've got the highly-praised book of Robert S. Lai about "Writing MS-DOS
Device drivers", but alas, that one stops where the real fun seems to start
...

In short, I'm looking for a bit more complete info about building a
block-device driver, especially about the above-mentioned.

Regards,
Rudy Wieser
Patrick Klos
2008-07-23 16:45:16 UTC
Permalink
Post by R.Wieser
Hello All,
I'm trying to write a block-device driver, and stumbeled upon a bit I
can't place : In the both the initialisation and createbpb functions I have
to return an array of BPBs.
The problem is that I can't seem to find *how many* BPBs I should return. I
can make a few wild guesses, but can't seem to find any info about it.
I've got the highly-praised book of Robert S. Lai about "Writing MS-DOS
Device drivers", but alas, that one stops where the real fun seems to start
...
In short, I'm looking for a bit more complete info about building a
block-device driver, especially about the above-mentioned.
Regards,
Rudy Wieser
Hi Rudy,

If I remember correctly (and it's been quite a while since I worked on
my last MSDOS block device driver), I thought the 'init' function returned
how many block devices your driver handled, and the call to BuildBPB would
only build a BPB that represented the current media (and only one)? I'd
have to dust off my old floppies or the MSDOS Reference Guide to confirm
that.

Patrick
========= For LAN/WAN Protocol Analysis, check out PacketView Pro! =========
Patrick Klos Email: ***@klos.com
Klos Technologies, Inc. Web: http://www.klos.com/
============================================================================
Loading...