Lines Matching refs:partition

33 	"partition_map",	// the partition map itself
40 "Free", // unused partition
41 "Scratch", // empty partition
46 "Void", // dummy partition map entry (used to align entries for CD-ROM)
58 apple_partition_map &partition)
62 // find first partition map if this is the first call,
66 (void *)&partition, sizeof(apple_partition_map));
71 } while (cookie == 0 && block < 64 && !partition.HasValidSignature());
73 if (!partition.HasValidSignature()) {
77 // we searched for the first partition map entry and failed
81 // the first partition map entry must be of type Apple_partition_map
82 if (!cookie && (strncmp(partition.type, "Apple_", 6)
83 || strcmp(partition.type + 6, kApplePartitionTypes[0])))
111 apple_identify_partition(int fd, partition_data *partition, void **_cookie)
126 TRACE(("apple: valid partition descriptor!\n"));
144 apple_scan_partition(int fd, partition_data *partition, void *_cookie)
150 partition->status = B_PARTITION_VALID;
151 partition->flags |= B_PARTITION_PARTITIONING_SYSTEM
153 partition->content_size = descriptor.BlockSize() * descriptor.BlockCount();
162 TRACE(("apple: found partition: name = \"%s\", type = \"%s\"\n",
165 if (partitionMap.Start(descriptor) + partitionMap.Size(descriptor) > (uint64)partition->size) {
166 TRACE(("apple: child partition exceeds existing space (%lld bytes)\n",
171 partition_data *child = create_child_partition(partition->id, index++,
172 partition->offset + partitionMap.Start(descriptor),
179 child->block_size = partition->block_size;
190 apple_free_identify_partition_cookie(partition_data *partition, void *_cookie)