Sample block driver for msodsfs file system.

Hi,


I am writing a block driver to handle msdosfs file system read and write calls. But I refered one sample filter scheme driver and it is working for only "Apple_hfs" media type. but not working for msdos fat32 file syste. when i am changeing plist file as media type "DOS_FAT_32" and in below code snippet



if (childMedia->init(

/ base */ 0,

/ size */ media->getSize(),

/ preferredBlockSize */ media->getPreferredBlockSize(),

/ isEjectable */ media->isEjectable(),

/ isWhole */ false,

/ isWritable */ media->isWritable(),

/ contentHint */ "DOS_FAT_32" )) {



getProvider() method goes in a infinite loop. How to make block driver for msdos file system,


Regards,

Bhagaban

Replies

Probably, your driver attaches child media with the same "Content Hint" as in your driver property list.


Once it attach a new media, the kernel matches your driver to be load, and after loading, your driver again attaches new media.