Lines Matching defs:partition

83 "into the first two sectors. It doesn't mark the partition(s) active.\n"
85 "If a given <file> refers to a directory, the partition/device on which the\n"
226 const Partition* partition = map.PartitionAt(i);
228 if (partition == NULL) {
233 if (partition->IsEmpty()) {
239 ", type: %x%s\n", partition->Offset(), partition->Size(),
240 partition->Type(), partition->IsExtended() ? " (extended)" : "");
254 Partition *partition = map.PartitionAt(partitionIndex - 1);
255 if (!partition || partition->IsEmpty()) {
256 fprintf(stderr, "Error: Invalid partition index %d.\n",
262 if (partition->IsExtended()) {
264 "partition.\n", partitionIndex);
269 _partitionOffset = partition->Offset();
275 gpt_partition_entry partition = gptHeader.EntryAt(partitionIndex - 1);
280 if (!(bfs_uuid == partition.partition_type)) {
286 _partitionOffset = partition.StartBlock() * blockSize;
288 fprintf(stderr, "Error: Parsing partition table on device "
406 // character special: a device or partition under BeOS
429 // Remove de 's' from 'ad2s2' slice device (partition for DOS
440 // get base device name and partition index
464 // parse the partition map
476 // block device: a device or partition under Linux or Darwin
496 // get base device name and partition index
527 // parse the partition map
541 // get base device name and partition index
574 // parse the partition map
602 // get a partition info
611 fprintf(stderr, "Error: Failed to get partition info: %s\n",
619 // adjust the partition offset in the boot code data
625 printf("Writing boot code to \"%s\" (partition offset: %" B_PRId64
636 // check if this partition is mounted
638 BPartition* partition;
641 &partition);
645 partition = &device;
647 if (status == B_OK && partition->IsMounted() && !dryRun) {
648 // This partition is mounted, we need to tell BFS to update its
651 status = partition->GetMountPoint(&path);
667 "partition is mounted!\n");