Missed to commit that change recently. Try to publish a partition only,

if it hasn't been published yet.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22201 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2007-09-08 16:14:45 +00:00
parent 13310304ea
commit 08dd9e7f3c

View File

@ -88,9 +88,12 @@ KScanPartitionJob::_ScanPartition(KPartition *partition)
)
// publish the partition
status_t error = partition->PublishDevice();
if (error != B_OK)
return error;
status_t error;
if (!partition->IsPublished()) {
error = partition->PublishDevice();
if (error != B_OK)
return error;
}
// find the disk system that returns the best priority for this partition
float bestPriority = -1;