• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Regarding IOMedia init function...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Regarding IOMedia init function...


  • Subject: Regarding IOMedia init function...
  • From: Kumar Gaurav <email@hidden>
  • Date: Fri, 19 Jul 2013 19:24:56 +0530

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





 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Regarding IOMedia init function...
      • From: Chris Suter <email@hidden>
    • Re: Regarding IOMedia init function...
      • From: Kevin Elliott <email@hidden>
  • Next by Date: AuthorizationRightSet unexpectedly fails on os x 10.9 DP1; authd logs strange error
  • Next by thread: Re: Regarding IOMedia init function...
  • Index(es):
    • Date
    • Thread