• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/IOStorageFamily-182.1.1/

Lines Matching refs:media

87     // Determine whether the provider media contains an FDisk partition map.
98 // Scan the provider media for an FDisk partition map.
118 // Publish the new media objects which represent our partitions.
132 // Attach and register the new media objects representing our partitions.
155 // Clean up after the media objects we published before terminating.
165 // Detach the media objects we previously attached to the device tree.
185 // Request that the provider media be re-scanned for partitions.
192 // Scan the provider media for partitions.
221 // Scan the provider media for an FDisk partition map. Returns the set
222 // of media objects representing each of the partitions (the retain for
235 IOMedia * media = getProvider();
236 UInt64 mediaBlockSize = media->getPreferredBlockSize();
241 // Determine whether this media is formatted.
243 if ( media->isFormatted() == false ) goto scanErr;
245 // Determine whether this media has an appropriate block size.
249 // Allocate a buffer large enough to hold one map, rounded to a media block.
257 // Allocate a set to hold the set of media objects representing partitions.
262 // Open the media with read access.
267 // Scan the media for FDisk partition map(s).
273 status = media->read(this, fdiskBlock * mediaBlockSize, buffer);
303 if ( fdiskBlockNext * mediaBlockSize >= media->getSize() )
305 fdiskBlockNext = 0; // (exceeds confines of media)
335 // Create a media object to represent this partition.
425 IOMedia * media = getProvider();
426 UInt64 mediaBlockSize = media->getPreferredBlockSize();
441 // Determine whether the partition starts at (or past) the end-of-media.
443 if ( partitionBase >= media->getSize() ) return true;
454 // Instantiate a new media object to represent the given partition.
457 IOMedia * media = getProvider();
458 UInt64 mediaBlockSize = media->getPreferredBlockSize();
470 // Clip the size of the new partition if it extends past the end-of-media.
472 if ( partitionBase + partitionSize > media->getSize() )
474 partitionSize = media->getSize() - partitionBase;
498 // Create the new media object.
511 /* attributes */ media->getAttributes(),
513 /* isWritable */ media->isWritable(),
552 // Allocate a new media object (called from instantiateMediaObject).
559 bool IOFDiskPartitionScheme::attachMediaObjectToDeviceTree(IOMedia * media)
562 // Attach the given media object to the device tree plane.
565 return super::attachMediaObjectToDeviceTree(media);
568 void IOFDiskPartitionScheme::detachMediaObjectFromDeviceTree(IOMedia * media)
571 // Detach the given media object from the device tree plane.
574 super::detachMediaObjectFromDeviceTree(media);