* FAT-like pseudo-header.
*/
if ((memcmp(ms->ms_magic, "JFS ", 8) == 0) ||
- (memcmp(ms->ms_magic, "HPFS ", 8) == 0))
+ (memcmp(ms->ms_magic, "HPFS ", 8) == 0)) {
+ DBG(LOWPROBE, ul_debug("\tJFS/HPFS detected"));
return 0;
+ }
}
/* fat counts(Linux kernel expects at least 1 FAT table) */
* etc..) before MBR. Let's make sure that there is no MBR with
* usable partition. */
unsigned char *buf = (unsigned char *) ms;
+
if (mbr_is_valid_magic(buf)) {
struct dos_partition *p0 = mbr_get_partition(buf, 0);
+
if (dos_partition_get_size(p0) != 0 &&
- (p0->boot_ind == 0 || p0->boot_ind == 0x80))
+ (p0->boot_ind == 0 || p0->boot_ind == 0x80)) {
+ DBG(LOWPROBE, ul_debug("\tMBR detected"));
return 0;
+ }
}
}