common: fix mbr filetype detection
Sometimes mbr is erroneously recocognised as FAT partion. Due to this the mbr
partition parser is not being called and the partitions on the media are not
detected. This patch should  fix the problem. The checking is done as in the
linux kernel.

I have seen the problem using usb sticks. Although partitioning and formatting
them under linux. The file system type field in the mbr remains there which
causes the wrong detections as FAT32 type and not as mbr.

Signed-off-by: Zahari Doychev <zahari.doychev@linux.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent c0d6aa0 commit f95ce0fff0775c04954ae2e4542308baaa434ac8
@Zahari Doychev Zahari Doychev authored on 4 Nov 2014
Sascha Hauer committed on 5 Nov 2014
Showing 3 changed files
View
common/filetype.c
View
common/partitions.c
View
include/filetype.h