Lines Matching refs:partition

268 	The supplied visitor's Visit(BPartition*) is invoked for each partition.
270 returns the respective partition.
275 \return The respective partition, if the iteration was terminated early,
283 if (BPartition *partition = device->VisitEachDescendant(visitor))
284 return partition;
294 partition.
296 returns the respective partition.
301 \return The respective partition, if the iteration was terminated early,
307 BPartition *partition = NULL;
311 virtual bool Filter(BPartition *partition, int32 level)
312 { return partition->IsMounted(); }
315 partition = VisitEachPartition(&filterVisitor);
317 return partition;
324 partition.
326 returns the respective partition.
331 \return The respective partition, if the iteration was terminated early,
337 BPartition *partition = NULL;
341 virtual bool Filter(BPartition *partition, int32 level)
342 { return partition->ContainsFileSystem(); }
345 partition = VisitEachPartition(&filterVisitor);
347 return partition;
367 /*! \brief Retrieves a partition by ID.
371 \param id The ID of the partition to be returned.
372 \return The partition with ID \a id, or \c NULL, if the list is not
373 locked or no partition with ID \a id is in the list.
383 /*! \brief Invoked, when the mount point of a partition has been moved.
387 \param partition The concerned partition.
390 BDiskDeviceList::MountPointMoved(BPartition *partition)
392 PartitionChanged(partition, B_DEVICE_MOUNT_POINT_MOVED);
396 /*! \brief Invoked, when a partition has been mounted.
400 \param partition The concerned partition.
403 BDiskDeviceList::PartitionMounted(BPartition *partition)
405 PartitionChanged(partition, B_DEVICE_PARTITION_MOUNTED);
409 /*! \brief Invoked, when a partition has been unmounted.
413 \param partition The concerned partition.
416 BDiskDeviceList::PartitionUnmounted(BPartition *partition)
418 PartitionChanged(partition, B_DEVICE_PARTITION_UNMOUNTED);
422 /*! \brief Invoked, when a partition has been initialized.
426 \param partition The concerned partition.
429 BDiskDeviceList::PartitionInitialized(BPartition *partition)
431 PartitionChanged(partition, B_DEVICE_PARTITION_INITIALIZED);
435 /*! \brief Invoked, when a partition has been resized.
439 \param partition The concerned partition.
442 BDiskDeviceList::PartitionResized(BPartition *partition)
444 PartitionChanged(partition, B_DEVICE_PARTITION_RESIZED);
448 /*! \brief Invoked, when a partition has been moved.
452 \param partition The concerned partition.
455 BDiskDeviceList::PartitionMoved(BPartition *partition)
457 PartitionChanged(partition, B_DEVICE_PARTITION_MOVED);
461 /*! \brief Invoked, when a partition has been created.
465 \param partition The concerned partition.
468 BDiskDeviceList::PartitionCreated(BPartition *partition)
473 /*! \brief Invoked, when a partition has been deleted.
475 The method is called twice for a deleted partition. The first time
476 before the BDiskDevice the partition belongs to has been updated. The
477 \a partition parameter will point to a still valid BPartition object.
479 the partition object will have been deleted -- \a partition will be
484 \param partition The concerned partition. Only non- \c NULL on the first
486 \param partitionID The ID of the concerned partition.
489 BDiskDeviceList::PartitionDeleted(BPartition *partition,
495 /*! \brief Invoked, when a partition has been defragmented.
499 \param partition The concerned partition.
502 BDiskDeviceList::PartitionDefragmented(BPartition *partition)
504 PartitionChanged(partition, B_DEVICE_PARTITION_DEFRAGMENTED);
508 /*! \brief Invoked, when a partition has been repaired.
512 \param partition The concerned partition.
515 BDiskDeviceList::PartitionRepaired(BPartition *partition)
517 PartitionChanged(partition, B_DEVICE_PARTITION_REPAIRED);
524 If you're interested only in the fact, that something about the partition
528 \param partition The concerned partition.
532 BDiskDeviceList::PartitionChanged(BPartition *partition, uint32 event)
617 if (BPartition *partition = _FindPartition(message))
618 MountPointMoved(partition);
623 /*! \brief Handles a "partition mounted" message.
630 if (BPartition *partition = _FindPartition(message))
631 PartitionMounted(partition);
636 /*! \brief Handles a "partition unmounted" message.
643 if (BPartition *partition = _FindPartition(message))
644 PartitionUnmounted(partition);
649 /*! \brief Handles a "partition initialized" message.
656 if (BPartition *partition = _FindPartition(message))
657 PartitionInitialized(partition);
662 /*! \brief Handles a "partition resized" message.
669 if (BPartition *partition = _FindPartition(message))
670 PartitionResized(partition);
675 /*! \brief Handles a "partition moved" message.
682 if (BPartition *partition = _FindPartition(message))
683 PartitionMoved(partition);
688 /*! \brief Handles a "partition created" message.
695 if (BPartition *partition = _FindPartition(message))
696 PartitionCreated(partition);
701 /*! \brief Handles a "partition deleted" message.
707 if (BPartition *partition = _FindPartition(message)) {
708 partition_id id = partition->ID();
709 PartitionDeleted(partition, id);
716 /*! \brief Handles a "partition defragmented" message.
723 if (BPartition *partition = _FindPartition(message))
724 PartitionDefragmented(partition);
729 /*! \brief Handles a "partition repaired" message.
736 if (BPartition *partition = _FindPartition(message))
737 PartitionRepaired(partition);
801 /*! \brief Returns the partition for the ID contained in a motification
804 \return The partition with the ID, or \c NULL, if the ID or the partition
809 BPartition *partition = NULL;
812 partition = PartitionWithID(id);
813 return partition;