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:
parent
13310304ea
commit
08dd9e7f3c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user