Lines Matching refs:child

51 		partition_data* child, off_t childOffset, partition_data** prec,
77 // creating child
94 partition_data* child, uint32 mask)
107 // primary partition map doesn't naturally live in any other child partition
167 // no child has to be over the new size of the parent partition
169 // If child->offset is relative to parent, then yes!
172 partition_data* child = get_child_partition(partition->id, i);
173 if (child && child->offset + child->size > currentEnd)
174 currentEnd = child->offset + child->size;
205 partition_data* child, off_t childOffset, partition_data** previous,
214 if (sibling && sibling != child) {
246 partition_data* child, off_t childOffset, partition_data** previous,
255 if (sibling && sibling != child) {
281 validate_resize_child(partition_data* partition, partition_data* child,
297 // child must completely lie within the parent partition
301 // child must not intersect with sibling partitions
307 getSiblingPartitions(partition, child, childOffset, &previousSibling,
319 pm_validate_resize_child(partition_data* partition, partition_data* child,
324 if (!partition || !child || !size)
327 return validate_resize_child(partition, child, child->offset,
328 child->size, size, get_sibling_partitions_pm);
347 validate_move_child(partition_data* partition, partition_data* child,
365 getSiblingPartitions(partition, child, childOffset, &previousSibling,
368 // we cannot move child over sibling partition
389 pm_validate_move_child(partition_data* partition, partition_data* child,
394 if (!partition || !child || !start)
396 if (*start == child->offset)
399 return validate_move_child(partition, child, child->offset,
400 child->size, start, get_sibling_partitions_pm);
407 child can be NULL
411 PrimaryPartition* child = NULL)
426 if (primary && primary->IsExtended() && primary != child)
446 PrimaryPartition* child = (PrimaryPartition*)partition->cookie;
447 if (!child)
451 return is_type_valid_pm(type, parent, child);
488 // child must completely lie within the parent partition
494 // new child must not intersect with sibling partitions
596 const partition_data* child = get_child_partition(partition->id, i);
597 if (child) {
598 positions[partition_count].offset = child->offset;
599 positions[partition_count].size = child->size;
618 const partition_data* child = get_child_partition(partition->id, i);
619 if (child) {
620 positions[partition_count].offset = child->offset;
621 positions[partition_count].size = child->size;
753 pm_shadow_changed(partition_data* partition, partition_data* child,
757 child, operation));
798 // get the physical child partition
799 partition_data* physical = get_partition(child->id);
802 "no physical partition with ID %" B_PRId32 "\n", child->id);
809 child->id);
831 "%" B_PRId32 "\n", child->id, index);
835 child->cookie = primary;
882 type.SetType(child->type);
894 child->cookie = primary;
972 // get out partition, child and partition map structure
974 partition_data* child = get_partition(partitionID);
975 if (!partition || !child)
978 PrimaryPartition* primary = (PrimaryPartition*)child->cookie;
985 if (!pm_validate_resize_child(partition, child, &validatedSize))
987 if (child->size == validatedSize)
1000 primary->SetSize(child->size);
1004 child->size = validatedSize;
1131 // get partition, child and partition map structure
1133 partition_data* child = get_partition(childID);
1134 if (!partition || !child)
1137 PrimaryPartition* primary = (PrimaryPartition*)child->cookie;
1143 if (!pm_validate_move_child(partition, child, &validatedOffset))
1147 if (child->offset == validatedOffset)
1161 error = move_partition(fd, child->offset, validatedOffset, child->size,
1169 child->offset = validatedOffset;
1200 // get parent partition, child and partition map structure
1202 partition_data* child = get_partition(partitionID);
1203 if (!partition || !child)
1206 PrimaryPartition* primary = (PrimaryPartition*)child->cookie;
1211 if (!pm_validate_set_type(child, type))
1215 if (child->type && !strcmp(type, child->type))
1240 free(child->type);
1241 child->type = strdup(type);
1242 if (!child->type)
1270 // get parent partition, child and partition map structure
1272 partition_data* child = get_partition(partitionID);
1273 if (partition == NULL || child == NULL)
1276 PrimaryPartition* primary = (PrimaryPartition*)child->cookie;
1439 partition_data* child = create_child_partition(partition->id, index,
1441 if (!child)
1477 delete_partition(child->id);
1481 *childID = child->id;
1483 child->block_size = primary->BlockSize();
1485 child->type = strdup(type);
1487 child->parameters = strdup(parameters);
1488 child->cookie = primary;
1490 if (!child->type || !child->parameters)
1523 partition_data* child = get_partition(childID);
1524 if (!partition || !child)
1528 PrimaryPartition* primary = (PrimaryPartition*)child->cookie;
1532 // deleting child
1573 // creating child
1588 partition_data* child, uint32 mask)
1608 // Intel Extended Partition can live in child partition of Intel Partition
1633 ep_validate_resize_child(partition_data* partition, partition_data* child,
1638 if (!partition || !child || !_size)
1643 if (!validate_resize_child(partition, child, child->offset,
1644 child->size, &size, get_sibling_partitions_ep))
1666 ep_validate_move_child(partition_data* partition, partition_data* child,
1671 if (!partition || !child || !_start)
1673 if (*_start == child->offset)
1678 if (!validate_move_child(partition, child, child->offset,
1679 child->size, &start, get_sibling_partitions_ep))
1805 ep_shadow_changed(partition_data* partition, partition_data* child,
1911 // get out partition, child and LogicalPartition structure
1913 partition_data* child = get_partition(partitionID);
1914 if (!partition || !child)
1916 LogicalPartition* logical = (LogicalPartition*)child->cookie;
1924 if (!ep_validate_resize_child(partition, child, &validatedSize))
1926 if (child->size == validatedSize)
1938 logical->SetSize(child->size);
1948 child->size = validatedSize;
1999 // get partition, child and LogicalPartition structure
2001 partition_data* child = get_partition(childID);
2002 if (!partition || !child)
2004 LogicalPartition* logical = (LogicalPartition*)child->cookie;
2011 if (!ep_validate_move_child(partition, child, &validatedOffset))
2015 if (child->offset == validatedOffset)
2018 off_t diffOffset = validatedOffset - child->offset;
2032 error = move_partition(fd, child->offset - pts_offset,
2033 validatedOffset - pts_offset, child->size + pts_offset, buffer,
2041 child->offset = validatedOffset;
2081 // get partition, child and LogicalPartition structure
2083 partition_data* child = get_partition(partitionID);
2084 if (!partition || !child)
2086 LogicalPartition* logical = (LogicalPartition*)child->cookie;
2092 if (!ep_validate_set_type(child, type))
2096 if (child->type && !strcmp(type, child->type))
2119 free(child->type);
2120 child->type = strdup(type);
2121 if (!child->type)
2159 // partition init (we have no child partition)
2240 partition_data* child = create_child_partition(partition->id,
2242 if (!child)
2291 *childID = child->id;
2293 child->block_size = logical->BlockSize();
2294 child->type = strdup(type);
2295 child->parameters = strdup(parameters);
2296 child->cookie = logical;
2298 if (!child->type || !child->parameters)
2324 partition_data* child = get_partition(childID);
2325 if (partition == NULL || parent == NULL || child == NULL)
2329 LogicalPartition* logical = (LogicalPartition*)child->cookie;
2333 // deleting child