Lines Matching refs:partition

208 	info.partition = ID();
220 dprintf("KPartition::PublishDevice(): Failed to publish partition "
242 "partition %" B_PRId32 ": %s\n", ID(), strerror(error));
248 dprintf("KPartition::UnpublishDevice(): Failed to unpublish partition "
289 dprintf("KPartition::RepublishDevice(): Failed to republish partition "
332 virtual bool VisitPre(KPartition* partition)
334 return partition->IsBusy();
359 virtual bool VisitPre(KPartition* partition)
361 partition->AddFlags(B_PARTITION_BUSY);
377 virtual bool VisitPre(KPartition* partition)
379 partition->ClearFlags(B_PARTITION_BUSY);
583 virtual bool VisitPre(KPartition* partition)
585 return partition->IsMounted();
689 // If the parent is the device, the name is the index of the partition.
696 // The partition has a non-device parent, so we append the index to the
697 // parent partition's name.
722 // replace the leaf name with the partition's file name
864 KPartition::AddChild(KPartition* partition, int32 index)
870 if (index < 0 || index > count || !partition)
873 // add partition
876 status_t error = fChildren.Insert(partition, index);
879 if (!manager->PartitionAdded(partition)) {
884 partition->SetIndex(index);
888 partition->SetParent(this);
889 partition->SetDevice(Device());
890 partition->SetPhysicalBlockSize(PhysicalBlockSize());
893 partition->PublishDevice();
896 FireChildAdded(partition, index);
914 // create and add partition
942 KPartition* partition = fChildren.ElementAt(index);
943 PartitionRegistrar _(partition);
944 if (!partition || !manager->PartitionRemoved(partition)
949 partition->SetIndex(-1);
951 partition->SetParent(NULL);
952 partition->SetDevice(NULL);
954 FireChildRemoved(partition, index);
1043 // update concerned partition flags