Lines Matching defs:child

149 	for (int32 i = 0; KPartition *child = partition->ChildAt(i); i++)
150 move_descendants(child, moveBy);
168 for (int32 i = 0; KPartition *child = partition->ChildAt(i); i++) {
169 status_t error = move_descendants_contents(child);
667 // register child
668 KPartition* child = manager->RegisterPartition(childID);
669 if (child == NULL)
672 PartitionRegistrar registrar3(child, true);
676 || childChangeCounter != child->ChangeCounter()) {
685 // child must indeed be a child of partition
686 if (child->Parent() != partition)
696 if (partition->IsBusy() || child->IsBusy())
699 child->SetBusy(true);
703 if (child->DiskSystem() && contentSize < child->ContentSize())
704 error = child->DiskSystem()->Resize(child, contentSize, DUMMY_JOB_ID);
707 if (error == B_OK && size != child->Size())
708 error = diskSystem->ResizeChild(child, size, DUMMY_JOB_ID);
711 if (error == B_OK && child->DiskSystem()
712 && contentSize > child->ContentSize()) {
713 error = child->DiskSystem()->Resize(child, contentSize, DUMMY_JOB_ID);
719 child->SetBusy(false);
727 error = copy_to_user_value(_childChangeCounter, child->ChangeCounter());
800 // register child
801 KPartition* child = manager->RegisterPartition(childID);
802 if (child == NULL)
805 PartitionRegistrar registrar3(child, true);
809 || childChangeCounter != child->ChangeCounter()) {
818 // child must indeed be a child of partition
819 if (child->Parent() != partition)
823 if (partition->IsBusy() || child->IsBusy())
826 child->SetBusy(true);
829 // set the child name
830 error = diskSystem->SetName(child, name.value, DUMMY_JOB_ID);
835 child->SetBusy(false);
843 error = copy_to_user_value(_childChangeCounter, child->ChangeCounter());
929 // register child
930 KPartition* child = manager->RegisterPartition(childID);
931 if (child == NULL)
934 PartitionRegistrar registrar3(child, true);
938 || childChangeCounter != child->ChangeCounter()) {
947 // child must indeed be a child of partition
948 if (child->Parent() != partition)
952 if (partition->IsBusy() || child->IsBusy())
955 child->SetBusy(true);
958 // set the child type
959 error = diskSystem->SetType(child, type.value, DUMMY_JOB_ID);
964 child->SetBusy(false);
972 error = copy_to_user_value(_childChangeCounter, child->ChangeCounter());
1005 // register child
1006 KPartition* child = manager->RegisterPartition(childID);
1007 if (child == NULL)
1010 PartitionRegistrar registrar3(child, true);
1014 || childChangeCounter != child->ChangeCounter()) {
1023 // child must indeed be a child of partition
1024 if (child->Parent() != partition)
1028 if (partition->IsBusy() || child->IsBusy())
1031 child->SetBusy(true);
1034 // set the child parameters
1035 error = diskSystem->SetParameters(child, parameters.value, DUMMY_JOB_ID);
1040 child->SetBusy(false);
1048 error = copy_to_user_value(_childChangeCounter, child->ChangeCounter());
1307 // create the child
1308 KPartition *child = NULL;
1310 name.value, parameters.value, DUMMY_JOB_ID, &child, -1);
1319 if (child == NULL)
1322 child->UnmarkBusy(true);
1324 // return change counter and child ID
1327 error = copy_to_user_value(childID, child->ID());
1353 // register child
1354 KPartition* child = manager->RegisterPartition(childID);
1355 if (child == NULL)
1358 PartitionRegistrar registrar3(child, true);
1362 || childChangeCounter != child->ChangeCounter()) {
1371 // child must indeed be a child of partition
1372 if (child->Parent() != partition)
1375 // mark the partition and child busy and unlock
1376 if (partition->IsBusy() || !child->CheckAndMarkBusy(true))
1381 // delete the child
1382 error = diskSystem->DeleteChild(child, DUMMY_JOB_ID);
1387 child->UnmarkBusy(true);