The partition-is-big-enough-for-child test did not work correctly; the
partition offset doesn't belong there (caused it to hide nested partitions) git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4718 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -180,8 +180,7 @@ amiga_rdb_scan_partition(int fd, partition_data *partition, void *_cookie)
|
||||
disk_environment &environment = *(disk_environment *)&partitionBlock.environment[0];
|
||||
TRACE(("amiga_rdb: file system: %s\n", get_tupel(B_BENDIAN_TO_HOST_INT32(environment.dos_type))));
|
||||
|
||||
if ((uint64)partition->offset + environment.Start()
|
||||
+ environment.Size() > (uint64)partition->size) {
|
||||
if (environment.Start() + environment.Size() > (uint64)partition->size) {
|
||||
TRACE(("amiga_rdb: child partition exceeds existing space (%Ld bytes)\n", environment.Size()));
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -157,8 +157,7 @@ apple_scan_partition(int fd, partition_data *partition, void *_cookie)
|
||||
TRACE(("apple: found partition: name = \"%s\", type = \"%s\"\n",
|
||||
partitionMap.name, partitionMap.type));
|
||||
|
||||
if ((uint64)partition->offset + partitionMap.Start(descriptor)
|
||||
+ partitionMap.Size(descriptor) > (uint64)partition->size) {
|
||||
if (partitionMap.Start(descriptor) + partitionMap.Size(descriptor) > (uint64)partition->size) {
|
||||
TRACE(("apple: child partition exceeds existing space (%Ld bytes)\n",
|
||||
partitionMap.Size(descriptor)));
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user