* Added functions FindPartitionByVolume() and FindPartitionByMountPoint()

that conveniently bridge BVolumes/mount points with BPartitions.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28346 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2008-10-27 15:33:37 +00:00
parent 2ec100b72e
commit a58e2ed8f8
2 changed files with 66 additions and 8 deletions
@@ -18,6 +18,7 @@ class BDiskDeviceVisitor;
class BDiskScannerPartitionAddOn;
class BDiskSystem;
class BPartition;
class BVolume;
namespace BPrivate {
class AddOnImage;
@@ -115,6 +116,13 @@ public:
BDiskDevice* device = NULL,
BPartition** _partition = NULL);
status_t FindPartitionByVolume(BVolume* volume,
BDiskDevice* device,
BPartition** _partition);
status_t FindPartitionByMountPoint(const char* mountPoint,
BDiskDevice* device,
BPartition** _partition);
status_t GetDeviceWithID(partition_id id,
BDiskDevice* device) const;
status_t GetPartitionWithID(partition_id id,