Lines Matching defs:partition
45 partition_entry* partition = new partition_entry;
46 memset(partition, 0, sizeof(partition_entry));
47 partition->id = sNextID++;
48 strlcpy(partition->path, path, sizeof(partition->path));
51 device->id = partition->id;
52 device->path = partition->path;
59 delete partition;
79 partition->offset = 0;
80 partition->size = 1LL * device->geometry.head_count
83 partition->block_size = device->geometry.bytes_per_sector;
85 sDiskDevices.insert(std::make_pair(partition->id, device));
86 sPartitions.insert(std::make_pair(partition->id, partition));
89 *_id = partition->id;
122 printf("partition ID %ld\n", id);
246 partition_entry* partition = found->second;
248 if (index < 0 || index >= (int32)partition->children.size())
251 return partition->children[index];
284 printf(" new partition ID %ld (child of %ld)\n", child->id, parent->id);
316 partition_entry* partition = found->second;
317 int fd = open(partition->path, O_RDONLY);