Disabled support for nested partition maps for the time being. Since
we're quite lenient parsing the partition descriptors, we recognized pretty much any partition that by accident has a PTS signature and that no other disk system supports. Should fix bug #2668. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27215 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -159,6 +159,9 @@ pm_identify_partition(int fd, partition_data *partition, void **cookie)
|
|||||||
return 0.5;
|
return 0.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// NOTE: It seems supporting nested partition maps makes more trouble than it
|
||||||
|
// has useful applications ATM. So it is disabled for the time being.
|
||||||
|
#if 0
|
||||||
// We have a parent. That's a very unlikely setup.
|
// We have a parent. That's a very unlikely setup.
|
||||||
if (hasChildren)
|
if (hasChildren)
|
||||||
return 0.4;
|
return 0.4;
|
||||||
@@ -166,6 +169,8 @@ pm_identify_partition(int fd, partition_data *partition, void **cookie)
|
|||||||
// No children. Extremely unlikely, that this is desired. But if no one
|
// No children. Extremely unlikely, that this is desired. But if no one
|
||||||
// else claims the partition, we take it anyway.
|
// else claims the partition, we take it anyway.
|
||||||
return 0.1;
|
return 0.1;
|
||||||
|
#endif
|
||||||
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// pm_scan_partition
|
// pm_scan_partition
|
||||||
|
|||||||
Reference in New Issue
Block a user