Changeset 26128

Show
Ignore:
Timestamp:
06/24/08 18:49:34 (5 months ago)
Author:
mmlr
Message:

If the intel partitioning system doesn't detect any children and is not
directly on a device (i.e. has a parent), then don't indicate that we want to
support it at all, but just return -1. Most probably it is actually a
filesystem and not a partition. Indicating that we might support it a bit
could lead to the situation that the partition was associated with the intel
partitioning system in the end because the module for the actually present
filesystem wasn't yet loaded in the first initial device scan (during early
boot when looking for the boot partition).
The later rescan wouldn't touch that partition anymore as it was already
(wrongly) associated with the intel partitioning system, therefore leading to
unrecognized partitions as seen in bug #2424. By not pretending to support the
partition when we most probably don't, a later rescan that has all filesystems
available therefore has a chance of identifying that partition correctly.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • haiku/trunk/src/add-ons/kernel/partitioning_systems/intel/intel.cpp

    r25414 r26128  
    165165                return 0.4; 
    166166 
    167         // No children. Extremely unlikely, that this is a desired. But if no one 
    168         // else claims the partition, we take it anyway. 
    169         return 0.1; 
     167        // No children but a parent. Extremely unlikely that this is desired. 
     168        // Just indicate that we don't support this partition, it's probably a 
     169        // filesystem and not a partition at all. 
     170        *cookie = NULL; 
     171        delete map; 
     172        return -1; 
    170173} 
    171174