rem: TRACE(("amiga_rdb: file system: %s\n", get_tupel(environment.dos_type)));
add: 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) { TRACE(("amiga_rdb: child partition exceeds existing space (%Ld bytes)\n", environment.Size())); continue; }
context: amiga_rdb_scan_partition(int fd, partition_data *partition, void *_cookie){	rigid_disk_block &rdb = *(rigid_disk_block *)_cookie;	partition->status = B_PARTITION_VALID;	partition->flags |= B_PARTITION_PARTITIONING_SYSTEM						| B_PARTITION_READ_ONLY;	partition->content_size = partition->size;	// scan all children	partition_block partitionBlock;	uint32 index = 0, cookie = 0;	status_t status;	while ((status = get_next_partition(fd, rdb, cookie, partitionBlock)) == B_OK) {		disk_environment &environment = *(disk_environment *)&partitionBlock.environment[0];		TRACE(("amiga_rdb: file system: %s\n", get_tupel(environment.dos_type)));		partition_data *child = create_child_partition(partition->id, index++, -1);		if (child == NULL) {			TRACE(("Creating child at index %ld failed\n", index - 1));			return B_ERROR;		}		child->offset = partition->offset + environment.Start();		child->size = environment.Size();		child->block_size = partition->block_size;	}	if (status == B_ENTRY_NOT_FOUND)		return B_OK;	return status;}