* Added get_physical_partition() function, which always retrieves the

physical partition, unlike get_partition() which returns the shadow
  partition, if it exists.
* Added B_PARTITION_SHADOW[_CHILD] partition pseudo operation values for
  the shadow_changed() hook, notifying a disk system, that a shadow
  partition has been created.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22472 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2007-10-07 15:11:37 +00:00
parent 04adb291a6
commit dbef8fc452
2 changed files with 47 additions and 2 deletions
+4 -1
View File
@@ -57,6 +57,8 @@ typedef struct partitionable_space_data {
// operations on partitions
enum {
B_PARTITION_SHADOW, // indicates creation of a shadow partition
B_PARTITION_SHADOW_CHILD, //
B_PARTITION_DEFRAGMENT,
B_PARTITION_REPAIR,
B_PARTITION_RESIZE,
@@ -95,6 +97,7 @@ int32 find_partition(const char *path);
// disk device/partition read access
// (read lock required)
disk_device_data *get_disk_device(partition_id partitionID);
partition_data *get_physical_partition(partition_id partitionID);
partition_data *get_partition(partition_id partitionID);
partition_data *get_parent_partition(partition_id partitionID);
partition_data *get_child_partition(partition_id partitionID, int32 index);
@@ -106,7 +109,7 @@ partition_data *create_child_partition(partition_id partitionID, int32 index,
// childID is an optional input parameter -- -1 to be ignored
bool delete_partition(partition_id partitionID);
void partition_modified(partition_id partitionID);
// tells the disk device manager, that the parition has been modified
// tells the disk device manager, that the partition has been modified
status_t scan_partition(partition_id partitionID);
// Service method for disks systems: Synchronously scans the partition.