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

Lines Matching defs:partition

42 //       and a valid partition entry exists at a 512 byte offset into the disk,
43 // in which case, assume a 512 byte block size, except for the partition
47 // byte block size (for the one partition)
88 // Determine whether the provider media contains an Apple partition map.
99 // Scan the provider media for an Apple partition map.
112 IOMedia * partition;
128 while ( (partition = (IOMedia *) partitionIterator->getNextObject()) )
130 if ( partition->attach(this) )
132 attachMediaObjectToDeviceTree(partition);
134 partition->registerService();
149 IOMedia * partition;
162 while ( (partition = (IOMedia *) partitionIterator->getNextObject()) )
164 detachMediaObjectFromDeviceTree(partition);
212 // Scan the provider media for an Apple partition map. Returns the set
214 // the set is passed to the caller), or null should no partition map be
270 // Determine the official block size to use to scan the partition entries.
285 // Determine whether we have an old school partition map, where there is
286 // a partition entry at a 512 byte offset into the disk, even though the
297 // Read the partition entry at byte offset 512 into our buffer.
307 // Determine whether the partition entry signature is present.
316 // Scan the media for Apple partition entries.
326 // Read the next partition entry into our buffer.
337 // Determine whether the partition entry signature is present.
344 // Obtain an accurate number of entries in the partition map.
358 // Obtain an accurate block size for an old school partition map.
373 // Determine whether the partition is corrupt (fatal).
376 /* partition */ dpmeMap,
383 // Determine whether the partition is invalid (skipped).
386 /* partition */ dpmeMap,
393 // Create a media object to represent this partition.
396 /* partition */ dpmeMap,
407 // Determine whether we ever came accross an Apple_partition_map partition.
429 bool IOApplePartitionScheme::isPartitionCorrupt( dpme * partition,
434 // Ask whether the given partition appears to be corrupt. A partition that
435 // is corrupt will cause the failure of the Apple partition map recognition
439 if ( !strncmp(partition->dpme_type, "CD_ROM_Mode_1", sizeof(partition->dpme_type)) ) return true;
444 bool IOApplePartitionScheme::isPartitionInvalid( dpme * partition,
449 // Ask whether the given partition appears to be invalid. A partition that
451 // failure of the Apple partition map recognition.
458 // Compute the relative byte position and size of the new partition.
460 partitionBase = OSSwapBigToHostInt32(partition->dpme_pblock_start);
461 partitionSize = OSSwapBigToHostInt32(partition->dpme_pblocks);
465 // Determine whether the partition is a placeholder.
469 // Determine whether the partition starts at (or past) the end-of-media.
477 dpme * partition,
482 // Instantiate a new media object to represent the given partition.
493 strncpy(partitionHint, partition->dpme_type, DPISTRLEN);
494 strncpy(partitionName, partition->dpme_name, DPISTRLEN);
499 // Compute the relative byte position and size of the new partition.
501 partitionBase = OSSwapBigToHostInt32(partition->dpme_pblock_start);
502 partitionSize = OSSwapBigToHostInt32(partition->dpme_pblocks);
506 // Clip the size of the new partition if it extends past the end-of-media.
513 // Determine whether the new partition type is Apple_Free, which we choose
514 // not to publish because it is an internal concept to the partition map.
516 if ( !strncmp(partition->dpme_type, "Apple_Free", sizeof(partition->dpme_type)) ) return 0;
518 // Determine whether the new partition is read-only.
523 if ( !strncmp(partition->dpme_type, "Apple_partition_map", sizeof(partition->dpme_type)) ||
524 !strncmp(partition->dpme_type, "Apple_Partition_Map", sizeof(partition->dpme_type)) ||
525 !strncmp(partition->dpme_type, "Apple_patition_map", sizeof(partition->dpme_type)) ||
526 ( OSSwapBigToHostInt32(partition->dpme_flags) &
535 /* partition */ partition,
550 // Set a name for this partition.
556 // Set a location value (the partition number) for this partition.
562 // Set the "Base" key for this partition.
566 // Set the "Partition ID" key for this partition.
581 dpme * partition,