Hi,
I would like to know about applying filter scheme to work for HFS and Non-HFS volumes. Is it possible? The current code as from SampleFilterScheme that works with HFS+ volumes:
if (childMedia->init( /* base */ 0, /* size */ media->getSize(), /* preferredBlockSize */ media->getPreferredBlockSize(), /* isEjectable */ media->isEjectable(), /* isWhole */ false, /* isWritable */ media->isWritable(), /* contentHint */ "Apple_HFS" )) { // Set a name for this partition.
UInt32 partitionID = 1;
char name[24]; sprintf(name, "MY_CONTENT %ld", partitionID); childMedia->setName(name);
// Set a location value (the partition number) for this partition.
char location[12]; sprintf(location, "%ld", partitionID); childMedia->setLocation(location);
// Attach the new media to this driver
_childMedia = childMedia;
childMedia->attach(this);
childMedia->registerService();
return true;
}
What should be changed here to support NTFS or FAT as well with HFS? Or to support NTFS and FAT devices do i need to write some other Kernel module and not use IOMedia.
Thanks And Regards, Kumar Gaurav
|