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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user