Added offset and size parameters to create_child_partition() and

KPartition::CreateChild(). CreateChild() calls AddChild(), which publishes
the new partition, though at that point offset and size were not set, so that
the published devices would not be usable.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31463 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2009-07-08 20:26:43 +00:00
parent 967294dbd8
commit 1cc5e46925
12 changed files with 74 additions and 63 deletions
@@ -75,7 +75,7 @@ public:
void SetStatus(uint32 status);
uint32 Status() const;
bool IsUninitialized() const;
void SetFlags(uint32 flags); // comprises the ones below
void AddFlags(uint32 flags);
void ClearFlags(uint32 flags);
@@ -135,7 +135,7 @@ public:
KPartition *Parent() const;
status_t AddChild(KPartition *partition, int32 index = -1);
virtual status_t CreateChild(partition_id id, int32 index,
status_t CreateChild(partition_id id, int32 index, off_t offset, off_t size,
KPartition **child = NULL);
bool RemoveChild(int32 index);
bool RemoveChild(KPartition *child);