From 297e79153de2d9e2f07c49a394fca8855355ab83 Mon Sep 17 00:00:00 2001 From: neil Date: Wed, 25 Mar 2009 18:51:12 +0000 Subject: [PATCH] Only recognise an RDB virtual disk if it's inside the appropriate partition type. git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@31019 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- workbench/libs/partition/partitionrdb.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/workbench/libs/partition/partitionrdb.c b/workbench/libs/partition/partitionrdb.c index 6a408fbce..de9147dcb 100644 --- a/workbench/libs/partition/partitionrdb.c +++ b/workbench/libs/partition/partitionrdb.c @@ -65,7 +65,21 @@ LONG PartitionRDBCheckPartitionTable UBYTE i; UBYTE space[root->de.de_SizeBlock<<2]; struct RigidDiskBlock *rdb = (struct RigidDiskBlock *)space; +struct PartitionType type; +struct TagItem tags[] = {{PT_TYPE, (IPTR)&type}, {TAG_DONE, 0}}; + if (root->root != NULL) + { + GetPartitionAttrs(root, tags); + if ( + root->root->table->type != PHPTT_MBR && + root->root->table->type != PHPTT_EBR || + type.id[0] != 0x30 + ) + { + return 0; + } + } for (i=0;i