From 602e32bd3b63fa7978ae4f33dc428cf1e71a952b Mon Sep 17 00:00:00 2001 From: Tony MÃ¥nsson Date: Thu, 19 May 2011 13:11:49 +0200 Subject: Fix for Snowball --- disk/part_toc.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'disk') diff --git a/disk/part_toc.c b/disk/part_toc.c index 82bb1bc95..d0d872a43 100644 --- a/disk/part_toc.c +++ b/disk/part_toc.c @@ -13,6 +13,7 @@ #include #include +#include #include "part_toc.h" static int toc_location = NO_TOC; @@ -480,8 +481,10 @@ void print_part_toc(block_dev_desc_t *dev_desc) int test_part_toc(block_dev_desc_t *dev_desc) { debug("test_part_toc\n"); - if (toc_init(dev_desc, &toc_main_toc[0]) == 0) - return 0; + if (toc_init(dev_desc, &toc_main_toc[0]) == 0) { + /* If Snowball ignore TOC */ + return u8500_is_snowball(); + } else return 1; } -- cgit v1.2.3