Partitions do now know whether they have already been published and

avoid attempts to publish a second time.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22198 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2007-09-07 00:05:06 +00:00
parent c22ee2bf75
commit 6b6f6b7240
4 changed files with 29 additions and 3 deletions
@@ -46,7 +46,8 @@ KPartition::KPartition(partition_id id)
fChangeCounter(0),
fAlgorithmData(0),
fReferenceCount(0),
fObsolete(false)
fObsolete(false),
fPublished(false)
{
fPartitionData.id = (id >= 0 ? id : _NextID());
fPartitionData.offset = 0;
@@ -164,6 +165,15 @@ KPartition::UnpublishDevice()
return B_ERROR;
}
// IsPublished
bool
KPartition::IsPublished() const
{
return fPublished;
}
// SetBusy
void
KPartition::SetBusy(bool busy)